Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] unpacker.eclass extensions
Date: Wed, 19 Jun 2013 21:15:19
Message-Id: 201306191715.12035.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] unpacker.eclass extensions by "Rick \\\"Zero_Chaos\\\" Farina"
1 On Monday 17 June 2013 16:37:06 Rick "Zero_Chaos" Farina wrote:
2 > On 06/17/2013 04:19 PM, Diego Elio Pettenò wrote:
3 > > On 17/06/2013 17:54, Rick "Zero_Chaos" Farina wrote:
4 > >> I make all my files with "tar cJf"
5 > >>
6 > >> zero@ozzie ~ % file /usr/portage/distfiles/gr-osmosdr-0.0.2.tar.xz
7 > >> /usr/portage/distfiles/gr-osmosdr-0.0.2.tar.xz: XZ compressed data
8 > >
9 > > cJ with _current_ tar will generate XZ
10 > > cJ with _past_ tar could generate lzma
11 > > xJ with _current_ tar will extract both XZ and lzma
12 > > zJ with _past_ tar will only extract lzma
13 >
14 > tar for the last several years properly and automatically detects the
15 > format of the input using just 'x'. This is true for gnu and bsd tar
16 > which should cover all of gentoo.
17
18 and that relies on the magic being in the output format which, as we pointed
19 out, wasn't the case. it's one of the reasons why the XZ format came to be.
20
21 build lzma-utils and compress some files and see how well tar & file handle it:
22 http://tukaani.org/lzma/
23 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature