Gentoo Archives: gentoo-portage-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Christoph Junghans <christoph.junghans@×××××.com>, 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: Mon, 08 Dec 2014 08:45:29
Message-Id: 21637.25887.563300.395858@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-alt] Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types by Zac Medico
1 >>>>> On Sun, 07 Dec 2014, Zac Medico wrote:
2
3 > On 12/07/2014 07:06 PM, Christoph Junghans wrote:
4 >> I know, I am late to the party, I just wanted to say that in
5 >> unpacker.eclass I implemented a variant which uses neither deb2tags
6 >> nor ar on prefix, but just bash's read and head.
7
8 The code uses "head -c" which is a GNU extension:
9
10 $ man 1p head
11 HEAD(1P) POSIX Programmer's Manual HEAD(1P)
12 [...]
13 SYNOPSIS
14 head [−n number] [file...]
15 [...]
16
17 For example, on OpenBSD and HPUX there is no -c option, or it is used
18 differently. Also Busybox doesn't have it.
19
20 Are we better off by requiring GNU head instead of GNU ar?
21
22 > Very nice. We should borrow that code and use it to eliminate the
23 > need for deb2targz in portage.
24
25 In PMS, this would have to go into EAPI 6, I suppose?
26
27 Ulrich

Replies