aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/hurd-boot.scm
diff options
context:
space:
mode:
authorSören Tempel <soeren@soeren-tempel.net>2023-09-17 17:21:49 +0200
committerLudovic Courtès <ludo@gnu.org>2023-10-23 11:56:54 +0200
commit54e6788267c0dac43ec9cb234c711eaa73a3d92b (patch)
treebd6590094eee3708b057b8e4a5ae6ff53564f380 /gnu/build/hurd-boot.scm
parent48c1a74b2461d42dc0df202d8353640b3b64ac62 (diff)
downloadguix-54e6788267c0dac43ec9cb234c711eaa73a3d92b.tar.gz
guix-54e6788267c0dac43ec9cb234c711eaa73a3d92b.zip
syscalls: Add support for musl libc.
This commit allows using Guix on a foreign distro which uses musl libc, for example, Alpine Linux. Usage of musl libc is detected via a new musl-libc? variable using the Guile %host-type. Using the new musl-libc? variable, we can now implement musl-specific quirks. The two compatibility problems I encountered in this regard are that musl dose not export a readdir64 and statfs64 symbol. On musl, these two functions are implemented as CPP macros that expand to readdir/statfs. To workaround that, a case-distinction was added. The existing linux? variable has been modified to return true if the %host-system contains "linux-" in order to ensure it is true for both linux-gnu as well as linux-musl host systems. The patch has been tested on Alpine Linux and is already used for the downstream Guix package shipped in Alpine Linux's package repository. * guix/build/syscalls.scm (musl-libc?): New variable. (linux?): Truth value on any linux system. (statfs, readdir-procedure): Support musl libc. Signed-off-by: Sören Tempel <soeren@soeren-tempel.net> Signed-off-by: Ludovic Courtès <ludo@gnu.org> Change-Id: Icc4101a062381240f977f4550344bde696513c52
Diffstat (limited to 'gnu/build/hurd-boot.scm')
0 files changed, 0 insertions, 0 deletions
>Tobias Geerinckx-Rice 2022-05-18services: Make <service-type> 'description' field mandatory....* gnu/services.scm (<service-type>)[description]: Remove default value. * tests/services.scm: Add 'description' field to each 'service-type' form. Ludovic Courtès 2022-05-18services: Add more description fields....* gnu/services.scm (simple-service): Add 'description' field. * gnu/services/base.scm (udev-rules-service): Likewise. * gnu/system/install.scm (configuration-template-service-type): Likewise. * gnu/tests.scm (marionette-service-type): Likewise. Ludovic Courtès 2022-03-10services: startup: Add description....* gnu/services.scm (hurd-startup-service-type)[description]: New field. Ludovic Courtès