Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, prefix@g.o, gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types
Date: Sun, 07 Dec 2014 19:30:40
Message-Id: 5484AAD9.4030206@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types by Fabian Groffen
1 On 12/07/2014 11:23 AM, Fabian Groffen wrote:
2 > On 07-12-2014 10:49:30 -0800, Zac Medico wrote:
3 >> On 12/07/2014 10:47 AM, Ulrich Mueller wrote:
4 >>>>>>>> On Sun, 07 Dec 2014, Zac Medico wrote:
5 >>>
6 >>>> On 12/07/2014 10:37 AM, Ulrich Mueller wrote:
7 >>>>> It's sort of trivial, but here is a patch:
8 >>>>>
9 >>>>> From c53e7057f94728d6e0c7d16c675702ca831b9a5a Mon Sep 17 00:00:00 2001
10 >>>>> From: Ulrich Müller <ulm@g.o>
11 >>>>> Date: Sun, 7 Dec 2014 19:33:52 +0100
12 >>>>> Subject: [PATCH] Prefer GNU ar when unpacking .deb packages.
13 >>>>>
14 >>>>> [...]
15 >>>
16 >>>> LGTM.
17 >>>
18 >>> So shall I push it?
19 >>
20 >> Yes, please do.
21 >
22 > FYI:
23 >
24 > % portageq envvar CHOST
25 > x86_64-apple-darwin13
26 > % ar --version
27 > ar: illegal option -- -
28 > usage: ar -d [-TLsv] archive file ...
29 > ar -m [-TLsv] archive file ...
30 > ar -m [-abiTLsv] position archive file ...
31 > ar -p [-TLsv] archive [file ...]
32 > ar -q [-cTLsv] archive file ...
33 > ar -r [-cuTLsv] archive file ...
34 > ar -r [-abciuTLsv] position archive file ...
35 > ar -t [-TLsv] archive [file ...]
36 > ar -x [-ouTLsv] archive [file ...]
37 > % ar x $EPREFIX/usr/portage/distfiles/realpath_1.16_i386.deb
38 > % ls
39 > control.tar.gz data.tar.gz debian-binary
40 >
41 > deb2targz should work (but I don't have it installed, so not sure if tested).
42 >
43 > Fabian
44 >
45
46 It's hard to whitelist it if doesn't support --version, so it seems
47 reasonable to require deb2targz whenever ar is not GNU ar.
48 --
49 Thanks,
50 Zac

Replies