From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DA7481389E2 for ; Mon, 8 Dec 2014 15:28:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA930E08D9; Mon, 8 Dec 2014 15:28:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 377C1E08D5; Mon, 8 Dec 2014 15:28:36 +0000 (UTC) Received: from [192.168.42.128] (ip70-181-96-121.oc.oc.cox.net [70.181.96.121]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 30DDD340341; Mon, 8 Dec 2014 15:28:35 +0000 (UTC) Message-ID: <5485C39E.6040605@gentoo.org> Date: Mon, 08 Dec 2014 07:28:30 -0800 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org CC: Christoph Junghans , prefix@gentoo.org, gentoo-alt@lists.gentoo.org Subject: Re: [gentoo-alt] Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types References: <20141206165201.0dc3ea1c.dolsen@gentoo.org> <5483AF70.5010203@gentoo.org> <21636.13369.46014.480745@a1i15.kph.uni-mainz.de> <5484939C.3090603@gentoo.org> <21636.38607.313282.924087@a1i15.kph.uni-mainz.de> <54849B2B.3010108@gentoo.org> <21636.40525.5635.532908@a1i15.kph.uni-mainz.de> <54849FF0.9080606@gentoo.org> <21636.41145.377984.142343@a1i15.kph.uni-mainz.de> <5484A13A.6080301@gentoo.org> <20141207192331.GD1222@gentoo.org> <5484AAD9.4030206@gentoo.org> <21636.44413.707977.421091@a1i15.kph.uni-mainz.de> <5484AE80.5080008@gentoo.org> <54852000.2000007@gentoo.org> <21637.25887.563300.395858@a1i15.kph.uni-mainz.de> In-Reply-To: <21637.25887.563300.395858@a1i15.kph.uni-mainz.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: ae96d37b-12d1-48a1-ace8-71abbabe21a1 X-Archives-Hash: 7bc9602faa92a414d19a83339c87a3b6 On 12/08/2014 12:45 AM, Ulrich Mueller wrote: >>>>>> On Sun, 07 Dec 2014, Zac Medico wrote: > >> On 12/07/2014 07:06 PM, Christoph Junghans wrote: >>> I know, I am late to the party, I just wanted to say that in >>> unpacker.eclass I implemented a variant which uses neither deb2tags >>> nor ar on prefix, but just bash's read and head. > > The code uses "head -c" which is a GNU extension: > > $ man 1p head > HEAD(1P) POSIX Programmer's Manual HEAD(1P) > [...] > SYNOPSIS > head [−n number] [file...] > [...] > > For example, on OpenBSD and HPUX there is no -c option, or it is used > differently. Also Busybox doesn't have it. > > Are we better off by requiring GNU head instead of GNU ar? That's a good question. We might use dd instead of head, or port the shell code to python. >> Very nice. We should borrow that code and use it to eliminate the >> need for deb2targz in portage. > > In PMS, this would have to go into EAPI 6, I suppose? Yes, I suppose so, since PMS currently says deb2targz is required when ar is not compatible with GNU ar. However, earlier you said that other package managers currently use ar unconditionally. Also, I have to wonder if any of the other package managers are used on AIX. So, maybe a retroactive change to PMS would be acceptable? Maybe it's not worth the trouble, and we should simply keep the deb2targz usage for AIX. -- Thanks, Zac