Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525950 - Unable to decompress all bz2 installed by portage
Summary: Unable to decompress all bz2 installed by portage
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-20 08:06 UTC by Agostino Sarubbo
Modified: 2014-10-20 08:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2014-10-20 08:06:55 UTC
While I'm trying to decompress some bz2 installed from portage:

ago@willoughby ~ $ file /usr/share/doc/ntp-4.2.6_p5-r10/README.bz2
/usr/share/doc/ntp-4.2.6_p5-r10/README.bz2: bzip2 compressed data, block size = 900k

ago@willoughby ~ $ tar xjf /usr/share/doc/ntp-4.2.6_p5-r10/README.bz2 -C /tmp/
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

When I try to do it with another bz2 archive (it works):

ago@willoughby ~ $ file /usr/portage/distfiles/akonadi-1.12.1.tar.bz2
/usr/portage/distfiles/akonadi-1.12.1.tar.bz2: bzip2 compressed data, block size = 900k
ago@willoughby ~ $ tar xjf /usr/portage/distfiles/akonadi-1.12.1.tar.bz2 -C /tmp/
ago@willoughby ~ $ 


So, file confirms that the archives are the same, but tar is  unable to decompress the bz2 installed by portage. Is it a bug or I am missing something?
Comment 1 Zac Medico gentoo-dev 2014-10-20 08:14:36 UTC
(In reply to Agostino Sarubbo from comment #0)
> While I'm trying to decompress some bz2 installed from portage:
> 
> ago@willoughby ~ $ file /usr/share/doc/ntp-4.2.6_p5-r10/README.bz2
> /usr/share/doc/ntp-4.2.6_p5-r10/README.bz2: bzip2 compressed data, block
> size = 900k
> 
> ago@willoughby ~ $ tar xjf /usr/share/doc/ntp-4.2.6_p5-r10/README.bz2 -C
> /tmp/
> tar: This does not look like a tar archive
> tar: Skipping to next header
> tar: Exiting with failure status due to previous errors

You should use bzcat instead, because it's not a tar file.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-20 08:40:37 UTC
tar doesn't unpack things that are not tar archives.