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: Fri, 16 Jun 2017 09:58:55 +0200 Message-ID: <87y3ssicsg.fsf@gnu.org> References: <20170615072917.4ogzt24ginrkgqx3@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]:33847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLm9m-0002kt-7u for help-guix@gnu.org; Fri, 16 Jun 2017 03:59:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLm9i-00019x-Bf for help-guix@gnu.org; Fri, 16 Jun 2017 03:59:02 -0400 In-Reply-To: <20170615072917.4ogzt24ginrkgqx3@zaehlwerk.net> (Gregor Giesen's message of "Thu, 15 Jun 2017 09:29:17 +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: > I'm trying to pack unbound, however its unittests require /etc/protocols > and /etc/services. Now, I have found them in the net-base package=20 > which I included in native-inputs, but that is not sufficient for > glibc's getprotoent and getservent to find them. Can I symlink the > net-base ones to the build container's /etc? Adding an extra phase=20 > before 'check does not allow me to write /etc in the container. Indeed, /etc is read-only in the build container, and it contains only the bare minimum: https://www.gnu.org/software/guix/manual/html_node/Build-Environment-Setu= p.html The code that populates it can be found at: https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/build.cc#n18= 52 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. It would probably make sense to allow derivations to populate /etc though. HTH, Ludo=E2=80=99.