[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extra files in build container
From: |
Ludovic Courtès |
Subject: |
Re: Extra files in build container |
Date: |
Fri, 16 Jun 2017 09:58:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hi Gregor,
Gregor Giesen <address@hidden> 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
> 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
> 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-Setup.html
The code that populates it can be found at:
https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/build.cc#n1852
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’.
- Extra files in build container, Gregor Giesen, 2017/06/15
- Re: Extra files in build container,
Ludovic Courtès <=
- Re: Extra files in build container, Gregor Giesen, 2017/06/17
- Re: Extra files in build container, Ludovic Courtès, 2017/06/19
- Re: Extra files in build container, Gregor Giesen, 2017/06/19
- Re: Extra files in build container, Ludovic Courtès, 2017/06/19
- Re: Extra files in build container, Gregor Giesen, 2017/06/19
- Re: Extra files in build container, Ludovic Courtès, 2017/06/19