Gentoo Archives: gentoo-dev

From: "Rick \\\"Zero_Chaos\\\" Farina" <zerochaos@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] unpacker.eclass extensions
Date: Mon, 17 Jun 2013 20:35:32
Message-Id: 51BF7372.8040608@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] unpacker.eclass extensions by "Diego Elio Pettenò"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 06/17/2013 04:19 PM, Diego Elio Pettenò wrote:
5 > On 17/06/2013 17:54, Rick "Zero_Chaos" Farina wrote:
6 >> I make all my files with "tar cJf"
7 >>
8 >> zero@ozzie ~ % file /usr/portage/distfiles/gr-osmosdr-0.0.2.tar.xz
9 >> /usr/portage/distfiles/gr-osmosdr-0.0.2.tar.xz: XZ compressed data
10 >
11 > cJ with _current_ tar will generate XZ
12 > cJ with _past_ tar could generate lzma
13 > xJ with _current_ tar will extract both XZ and lzma
14 > zJ with _past_ tar will only extract lzma
15 >
16 >
17 tar for the last several years properly and automatically detects the
18 format of the input using just 'x'. This is true for gnu and bsd tar
19 which should cover all of gentoo. We should be passing "tar xf" to
20 extract things unless we want to hijack the decompression command like
21 is possible in portage with BZIP2_COMMAND=lbzip2 in which case we want
22 to pass "tar -I $BZIP2_COMMAND -xf" or (not yet in portage) "tar -I pixz
23 - -xf". Some good examples of how this are handled are in catalyst but
24 I'll let dolson talk about his own work as he is much more qualified
25 than I am.
26
27 - -Zero
28 -----BEGIN PGP SIGNATURE-----
29 Version: GnuPG v2.0.19 (GNU/Linux)
30 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
31
32 iQIcBAEBAgAGBQJRv3NyAAoJEKXdFCfdEflKTYIP/ifbrOuhtEW2W3NRnUNImOmn
33 YfRuRt+50OpEeHbniAp32zOhg0l6nYCgZ4CqzoUDTUm106EyAbyQSNheBC1d6DL6
34 eRFbuV41+B1cPDFB5FJMHrhapvKQmciGxyfgpPLrVnIHXQhNUvM+3h7qPq2SOnog
35 tF8gQ3J3umfcJa3NMEqRRrWNkiytTniKZ537fLT0vxVvtOXSXswe3o3TJPNLpNVO
36 BAyHNvZz3TKPy3gsHtvedo1iz37yUxUxAPnI0R0ccLRnPEGlnnNcseaQvCLGBvZP
37 a7xqPMnM1gRv4xH9deWvh//mCSvIBjGoaeQLEP5ztjinrWalkFDikUk8xx8YZRev
38 YYlQbj1n3NgKk7Io/fyXjaNmZGXHkdT0kYosT2w+uzwHMQVSbwIsdR24dUIxXrcp
39 SG37KNB/wtPzOWpUYkV13wJgkLc1mVmEj92F47dSgGt4EKtSUng3sudDs2bPz4ds
40 7Z0lV4xLiG36ITZidBIIpjIWAKIQbQWIW+mIC25g40WGJ+qJtSz5bivwJa2a9PAx
41 Zqhja3pQFbYz+YhIUidM/rkcy1XINicaL1lUbpaHZqzy8z/ivWAh6iXMLmulqdfa
42 BjfPHVj0JcJs+ySbHMP/W3DN823BCzxOdc8cvHhLOG/Vhdysr+t5ga0yAQOawJsz
43 fWqUGz1tNiKLU3uBs+20
44 =2YDM
45 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] [RFC] unpacker.eclass extensions Brian Dolbec <dolsen@g.o>
Re: [gentoo-dev] [RFC] unpacker.eclass extensions Mike Frysinger <vapier@g.o>