On 12/07/2014 11:23 AM, Fabian Groffen wrote:
> On 07-12-2014 10:49:30 -0800, Zac Medico wrote:
>> On 12/07/2014 10:47 AM, Ulrich Mueller wrote:
>>>>>>>> On Sun, 07 Dec 2014, Zac Medico wrote:
>>>
>>>> On 12/07/2014 10:37 AM, Ulrich Mueller wrote:
>>>>> It's sort of trivial, but here is a patch:
>>>>>
>>>>> From c53e7057f94728d6e0c7d16c675702ca831b9a5a Mon Sep 17 00:00:00 2001
>>>>> From: Ulrich Müller <u...@gentoo.org>
>>>>> Date: Sun, 7 Dec 2014 19:33:52 +0100
>>>>> Subject: [PATCH] Prefer GNU ar when unpacking .deb packages.
>>>>>
>>>>> [...]
>>>
>>>> LGTM.
>>>
>>> So shall I push it?
>>
>> Yes, please do.
> 
> FYI:
> 
> % portageq envvar CHOST
> x86_64-apple-darwin13
> % ar --version
> ar: illegal option -- -
> usage:  ar -d [-TLsv] archive file ...
>         ar -m [-TLsv] archive file ...
>         ar -m [-abiTLsv] position archive file ...
>         ar -p [-TLsv] archive [file ...]
>         ar -q [-cTLsv] archive file ...
>         ar -r [-cuTLsv] archive file ...
>         ar -r [-abciuTLsv] position archive file ...
>         ar -t [-TLsv] archive [file ...]
>         ar -x [-ouTLsv] archive [file ...]
> % ar x $EPREFIX/usr/portage/distfiles/realpath_1.16_i386.deb
> % ls
> control.tar.gz  data.tar.gz  debian-binary
> 
> deb2targz should work (but I don't have it installed, so not sure if tested).
> 
> Fabian
> 

It's hard to whitelist it if doesn't support --version, so it seems
reasonable to require deb2targz whenever ar is not GNU ar.
-- 
Thanks,
Zac

Reply via email to