guix_mirror_bot pushed a commit to branch core-packages-team
in repository guix.

commit 6af624fe1d5961d375d1eb2282223522c391bb1d
Author: Yelninei <[email protected]>
AuthorDate: Tue Nov 11 15:07:08 2025 +0000

    gnu: coreutils-boot0: Remove linux/fs.h
    
    * gnu/packages/commencement.scm (coreutils-boot0)[arguments]
    <#:phases>: Add fix-gnulib-test phase.
    
    Change-Id: I2d27712e8879bc03db085db466668e7561897841
---
 gnu/packages/commencement.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 35084cc5b68..1e301d98cdd 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2101,7 +2101,15 @@ exec " gcc-bin "/" program
      `(#:tests? #f
        #:implicit-inputs? #f
        #:guile ,%bootstrap-guile
-       ,@(package-arguments coreutils)
+       ,@(substitute-keyword-arguments (package-arguments coreutils)
+           ((#:phases phases)
+            `(modify-phases ,phases
+               (add-after 'unpack 'fix-gnulib-test
+                 (lambda _
+                    ;; vma-iter test needs <linux/fs.h> which is not public
+                    ;; in %bootstrap-linux-libre-headers
+                    (substitute* '("gnulib-tests/vma-iter.c")
+                      (("# include <linux/fs.h>") "")))))))
        ;; The %bootstrap-glibc for aarch64 and armhf doesn't have
        ;; $output/include/linux/prctl.h which causes some binaries
        ;; to fail to build with coreutils-9.0+.

Reply via email to