Subject: [bug#75051] [PATCH 05/14] gnu: %glibc-stripped: Fix cross-compiling to loongarch64.

From: Zheng Junjie <[email-masked]>
Date: Tue, 24 Dec 2024 01:11:09 +0800

gnu/packages/make-bootstrap.scm (%glibc-stripped)[inputs]: When target
loongarch64, Use linux-libre-headers-5.19.17.

Change-Id: I4b2b9168aa3716445d1b88b4db3dcf4ad038a45d
---
 gnu/packages/make-bootstrap.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 59c117f2260..adbd2f4ef70 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -475,11 +475,12 @@ (define (%glibc-stripped)
                         glibc)))))
       (inputs
        `(("kernel-headers"
-          ,(if (or (and (%current-target-system)
+          ,(cond ((or (and (%current-target-system)
                         (target-hurd? (%current-target-system)))
                    (string-suffix? "-hurd" (%current-system)))
-               gnumach-headers
-               linux-libre-headers))))
+                  gnumach-headers)
+                 ((target-loongarch64?) linux-libre-headers-5.19.17)
+                 (else linux-libre-headers)))))
       (propagated-inputs '())
 
       ;; Only one output.
-- 
2.46.0