From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Extra files in build container Date: Mon, 19 Jun 2017 13:26:37 +0200 Message-ID: <87r2ygz09e.fsf@gnu.org> References: <20170615072917.4ogzt24ginrkgqx3@zaehlwerk.net> <87y3ssicsg.fsf@gnu.org> <20170617065848.cfevrq6bpgsa2vlt@zaehlwerk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMupO-0004OW-VT for help-guix@gnu.org; Mon, 19 Jun 2017 07:26:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMupL-0000ZT-TY for help-guix@gnu.org; Mon, 19 Jun 2017 07:26:43 -0400 In-Reply-To: <20170617065848.cfevrq6bpgsa2vlt@zaehlwerk.net> (Gregor Giesen's message of "Sat, 17 Jun 2017 08:58:48 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Gregor Giesen Cc: help-guix@gnu.org Hi Gregor, Gregor Giesen skribis: > On Fri, Jun 16, 2017 at 09:58:55AM +0200, Ludovic Court=C3=A8s wrote: >> In cases like the one you describe, we usually end up modifying tests to >> use the numerical values for services and protocols rather than their >> names. > Unfortunately, this turns out to be quite cumbersome since in my case > (unittests for unbound) there is a lot of test data to be modified and > in many cases not only plain text but also encrypted records (DNSSEC=20 > tests). On the other hand the values to be looked up are mostly =E2=80=9C= udp=E2=80=9D > and =E2=80=9Ctcp=E2=80=9D in /etc/protocols and =E2=80=9Cdomain=E2=80=9D = in /etc/services, so I decided=20 > that using a preload library for these few glibc calls just in case of=20 > the unittest should do the trick rather than no checks at all. I think it would be easier to just use =E2=80=98substitute*=E2=80=99 to rep= lace all the occurrences of =E2=80=9Ctcp=E2=80=9D, etc., wouldn=E2=80=99t it? > However, it is an ugly hack and bloats the package definition. I agree, but it=E2=80=99s hard to improve on it without compromising reproducibility. Thanks, Ludo=E2=80=99.