Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163837 - app-portage/getdelta fails with bzip2-1.0.4
Summary: app-portage/getdelta fails with bzip2-1.0.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicolai Lissner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-25 23:14 UTC by Thomas Kear
Modified: 2007-02-10 18:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild for deltup fixes the problem (deltup-0.4.3_pre2-r1.ebuild,1.44 KB, text/plain)
2007-01-30 14:50 UTC, Nicolai Lissner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kear 2007-01-25 23:14:08 UTC
# FETCHCOMMAND="/usr/bin/getdelta.sh \${URI}" emerge -f gimp
Calculating dependencies  ..... ..... ..... ..... ........ done!

>>> Emerging (1 of 1) media-gfx/gimp-2.3.14 to /
>>> Downloading 'http://ftp.citylink.co.nz/gentoo/distfiles/gimp-2.3.14.tar.bz2'
Searching for a previously downloaded file in /usr/portage/distfiles

We have the following candidates to choose from
gimp-2.2.10.tar.bz2
gimp-2.3.10.tar.bz2
gimp-2.3.11.tar.bz2
gimp-2.3.12.tar.bz2
gimp-2.3.13.tar.bz2

The best of all is ... gimp-2.3.13.tar.bz2

Checking if this file is OK.

Trying to download gimp-2.3.13.tar.bz2-gimp-2.3.14.tar.bz2.dtu

--11:48:49--  http://linux01.gwdg.de/~nlissne/deltup.php?have=gimp-2.3.13.tar.bz2&want=gimp-2.3.14.tar.bz2&url=ftp://unix.hensa.ac.uk/mirrors/ftp.gimp.org/pub/gimp/v2.3/gimp-2.3.14.tar.bz2&version=0.7&time=1169765329
           => `deltup.php?have=gimp-2.3.13.tar.bz2&want=gimp-2.3.14.tar.bz2&url=ftp:%2F%2Funix.hensa.ac.uk%2Fmirrors%2Fftp.gimp.org%2Fpub%2Fgimp%2Fv2.3%2Fgimp-2.3.14.tar.bz2&version=0.7&time=1169765329'
Resolving linux01.gwdg.de... 134.76.13.21
Connecting to linux01.gwdg.de|134.76.13.21|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://dev.gentooexperimental.org/deltup/gimp-2.3.13.tar.bz2-gimp-2.3.14.tar.bz2.dtu [following]
--11:48:52--  http://dev.gentooexperimental.org/deltup/gimp-2.3.13.tar.bz2-gimp-2.3.14.tar.bz2.dtu
           => `gimp-2.3.13.tar.bz2-gimp-2.3.14.tar.bz2.dtu'
Resolving dev.gentooexperimental.org... 81.93.240.53
Connecting to dev.gentooexperimental.org|81.93.240.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 735,234 (718K) [application/octet-stream]

100%[====================================================================================>] 735,234        2.47K/s    ETA 00:00

11:54:14 (2.28 KB/s) - `gimp-2.3.13.tar.bz2-gimp-2.3.14.tar.bz2.dtu' saved [735234/735234]

GOT gimp-2.3.13.tar.bz2-gimp-2.3.14.tar.bz2.dtu

Successfully fetched the dtu-file - let's build gimp-2.3.14.tar.bz2...

gimp-2.3.13.tar.bz2 -> gimp-2.3.14.tar.bz2: found bzip2 compressors/decompressors:
  /usr/bin/bzip2_old
found compatible bzip2 compressor: /usr/bin/bzip2_old
OK
cleaning up
This dtu-file saved 14 MB (95%) download size.

('Filesize does not match recorded size', 16035491, 16035467)
!!! Fetched file: gimp-2.3.14.tar.bz2 VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      16035491
!!! Expected: 16035467
Removing corrupt distfile...


At which point it tries (and fails) again.
After downgrading bzip2 to 1.0.3-r6, /bin/bzip2 is detected as a compatible compressor/decompressor (where it wasn't before) and the file is created successfully, as below.


gimp-2.3.13.tar.bz2 -> gimp-2.3.14.tar.bz2: found bzip2 compressors/decompressors:
  /usr/bin/bzip2_old
  /bin/bzip2
found compatible bzip2 compressor: /bin/bzip2
OK
cleaning up
This dtu-file saved 14 MB (95%) download size.

 * gimp-2.3.14.tar.bz2 MD5 ;-) ...                         [ ok ]
 * gimp-2.3.14.tar.bz2 RMD160 ;-) ...                      [ ok ]
 * gimp-2.3.14.tar.bz2 SHA1 ;-) ...                        [ ok ]
 * gimp-2.3.14.tar.bz2 SHA256 ;-) ...                      [ ok ]
 * gimp-2.3.14.tar.bz2 size ;-) ...                        [ ok ]
 * checking ebuild checksums ;-) ...                       [ ok ]
 * checking auxfile checksums ;-) ...                      [ ok ]
 * checking miscfile checksums ;-) ...                     [ ok ]
 * checking gimp-2.3.14.tar.bz2 ;-) ...                    [ ok ]
Comment 1 Nicolai Lissner 2007-01-26 10:41:36 UTC
Thanks for your report.
I'm going to fix this. Until I fixed the ebuilds, this workaround will probably work:

rename /usr/bin/bzip2   (version 1.0.2) to /usr/bin/bzip-1.0.2
update bzip2 then.
So, after this you should have 3 versions of bzip2:
bzip2, bzip2-1.0.2 and bzip2_old

Since deltup accepts any binary starting with bzip2 as possible version, 
I expect this to work.
Comment 2 Nicolai Lissner 2007-01-26 10:45:02 UTC
oh pardon... should work with renaming bzip2 to bzip2_1.0.3, too 
Comment 3 Nicolai Lissner 2007-01-30 14:50:55 UTC
Created attachment 108614 [details]
new ebuild for deltup fixes the problem

This new ebuild installs bzip2_1.0.2 (instead bzip2_old) and bzip2_1.0.3 statically linked and should solve the problem
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2007-02-10 18:20:07 UTC
was already fixed, thanks