| Summary: | trailing garbage after EOF with portage buildpkg | ||
|---|---|---|---|
| Product: | Portage Development | Reporter: | Rajiv Aaron Manglani (RETIRED) <rajiv> |
| Component: | Unclassified | Assignee: | Portage team <dev-portage> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Rajiv Aaron Manglani (RETIRED)
2003-10-21 12:03:21 UTC
I think it was fixed in -r7 or so, reopen if it's still happening with a version later than -r10. yup, worked fine after -r13. thanks. quickpkg gives broken tarball # quickpkg --include-config=y bind-tools # tar -tf /usr/portage/packages/All/bind-tools-9.7.0_p1.tbz2 > /dev/null bzip2: (stdin): trailing garbage after EOF ignored app-arch/bzip2-1.0.6-r1 (so on stable 1.0.6) sys-apps/portage-2.2.0_alpha24 (so on stable 2.1.9.25) dev-lang/python-2.5.4-r3 (so on 2.6.6-r2) Bugs related: http://bugs.gentoo.org/show_bug.cgi?id=320313 (In reply to comment #3) > quickpkg gives broken tarball > > # quickpkg --include-config=y bind-tools > # tar -tf /usr/portage/packages/All/bind-tools-9.7.0_p1.tbz2 > /dev/null > > bzip2: (stdin): trailing garbage after EOF ignored This is intended normal behavior. Our tbz2 files have an uncompressed xpak segment appended to the tail of the file. It should not interfere with extraction by tar. Bzip2 reports it as "trailing garbage after EOF ignored", with the key word being "ignored", meaning that it's only a warning and not an error. See `man 5 xpak`. first box # quickpkg --include-config=y media-gfx/imagemagick * Building package for media-gfx/imagemagick-6.6.1.7 ... [ ok ] * Packages now in '/usr/portage/packages': * media-gfx/imagemagick-6.6.1.7: 5.1M second box # emerge -K media-gfx/imagemagick .. . done! >>> Emerging binary (1 of 1) media-gfx/imagemagick-6.6.1.7 * imagemagick-6.6.1.7.tbz2 MD5 SHA1 size ;-) ... [ ok ] >>> Extracting info * Package: media-gfx/imagemagick-6.6.1.7 * Repository: gentoo * USE: bzip2 cxx jpeg2k zlib jpeg fontconfig truetype tiff openmp perl png * FEATURES: preserve-libs sandbox >>> Extracting media-gfx/imagemagick-6.6.1.7 tar: Skipping to next header tar: Exiting with failure status due to previous errors tar failed with status 2 !!! Error Extracting '/usr/portage/packages/All/imagemagick-6.6.1.7.tbz2' >>> Failed to emerge media-gfx/imagemagick-6.6.1.7, Log file: >>> '/var/tmp/portage/media-gfx/imagemagick-6.6.1.7/temp/build.log' My next steps to debug: # cd /tmp && cp /usr/portage/packages/All/imagemagick-6.6.1.7.tbz2 . # qtbz2 -s imagemagick-6.6.1.7.tbz2 # tar -tvf imagemagick-6.6.1.7.tbz2 > log 2&>1 # grep tar -C2 log -rw-r--r-- root/root 809 2010-05-11 18:40 usr/include/ImageMagick/wand/magick-wand.h hrw-r--r-- root/root 0 2010-05-11 18:40 usr/include/ImageMagick/wand/magick_wand.h link to usr/include/ImageMagick/wand/magick-wand.h tar: Skipping to next header -rw-r--r-- root/root 1502 2010-05-11 18:40 usr/include/ImageMagick/wand/mogrify.h -rw-r--r-- root/root 968 2010-05-11 18:40 usr/include/ImageMagick/wand/montage.h -- drwxr-xr-x root/root 0 2011-02-23 12:59 usr/share/man/man3/ -r--r--r-- root/root 2387 2010-05-11 18:41 usr/share/man/man3/Image::Magick.3pm.bz2 Then I delete /usr/include/ImageMagick/wand/magick-wand.h, then quickpkg and test tar.bz2 - everything is working correctly. Why hard link in this archive get "tar: Skipping to next header". Archive gets broken? Other package are work properly, may simply not contain hard links? What should I do next to debug? (In reply to comment #5) > Why hard link in this archive get "tar: Skipping to next header". Archive gets > broken? Other package are work properly, may simply not contain hard links? > What should I do next to debug? It may be related to changes from bug #338509. Please file a new bug, since bug 31696 seems to be a different issue. open new bug http://bugs.gentoo.org/show_bug.cgi?id=359193 |