On Tue, May 19, 2015 at 06:19:48PM -0300, Fernando de Oliveira wrote:
> I am cross-sending to dev, because a discussion may be necessary.
> 
And I am replying for a second time (this address is not subscribed
to -book, I keep forgetting that).  So, I'll take this to -dev
because that is where it actually started, on 7th April.

For anybody on -dev missing the context, we are discussing unzip.

> On 19-05-2015 14:07, [email protected] wrote:
> > Author: fernando
> > Date: Tue May 19 10:07:32 2015
> > New Revision: 15999
> > 
> > Log:
> > Revert modification by Douglas: there is a test suite for unzip.
> 
> I want to ask apologies to Douglas.
> 
> My script is different from the book, so I have the tests, he doesn't
> 
> 
> I never noticed somebody modified the instructions.
> 
Yeah, things change under us all.

Fernando, if you had used 'svn blame | less' you would probably have
spotted that I changed this in r15811.

In the commit message, I wrote:

"unzip: Use the generic target (new in unzip60, apparently) : this
fixes unzipping to files larger than 2GiB - e.g. raspberry pi images
- on i686.It also mean we do the same for i686 and x86_64. The
previous commented option might have also worked, but I guess nobody
used to have any reason to unzip such large files."

And in the book, it explains the use of the generic target (and that
is why you would have associated the change with me):

"This target begins by running a configure script (unlike the older
targets such as linux and linux_noasm) which creates a flags file
that is then used in the build. This ensures that the 32-bit x86
build receives the right flags to unzip files which which are larger
than 2GB when extracted."
> 
> Why the change was made? IIRC I even had a not very pleasant incident
> with git developers, before needing to change the book for that.
> 

In April, somebody tried to unzip a Pi image on i686, and failed.
He reported it to -dev :
http://lists.linuxfromscratch.org/pipermail/blfs-dev/2015-April/030007.html

When I tried to fix that on i686, I looked at fedora's specfile and
saw that they had a fix.  But when I tried to use what I _thought_
they were doing, it failed to compile.  So, I googled, probably for
the error message that trying to unzip on i686 used to produce, and
found a different fix at Pardus - it worked for me, so I copied it
and added an explanation.

> We are working with linux, not *generic*
> 

First, this is a new, improved, target in unzip60 and it does the
right thing.  On an i486, using asm in unzip was perhaps a good
idea.  On a modern machine, where zip files are mostly only used for
obscure sources such as fonts, I see no particular reason why any
possible runtime improvement from using asm would be important.
Even on x86_64, unzipping that raspbian image takes a long time.
Unfortunately, it appears that many Pi users probably run third-rate
OS's - that is the only reason I can think of for using a zipped
file ;-)

Second, it means what we have identical instructions for i686 and
x86_64.  I reagard that as a Good Thing.™

But, if the name of the target offends you, feel free to spend time
downloading the Pi image mentioned in the archive and trying to unzip
it on a recent i686 system, and then come up with whatever different
changes you want to make.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to