summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-03-19 18:15:33 +0100
committerAndreas Enge <andreas@enge.fr>2026-07-18 10:40:37 +0200
commit67e4641b3cf8f8d8c1a35e2c9ef0a944a0002c1b (patch)
tree3af28412d0c7dd96622967cf69ab4652221aec15
parent980de53db4133731816c93d0b6199659d3494e85 (diff)
gnu: glibc-final: Improve style.
* gnu/packages/commencement.scm (glibc-final): [arguments, inputs]: Refactor using final instead of glibc-final-with-bootstrap-bash. [arguments]: Relocate, avoid quotes. Change-Id: Ieb23328393d20d97a9aae81d1e01ac39e38ba306 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/commencement.scm39
1 files changed, 20 insertions, 19 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 79e7b7b3af8..6b48570db76 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3183,37 +3183,38 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
3183(define/system-dependent glibc-final 3183(define/system-dependent glibc-final
3184 ;; The final glibc, which embeds the statically-linked Bash built above. 3184 ;; The final glibc, which embeds the statically-linked Bash built above.
3185 ;; Use 'package/inherit' so we get the 'replacement' of 'glibc', if any. 3185 ;; Use 'package/inherit' so we get the 'replacement' of 'glibc', if any.
3186 (let ((libc (libc-for-target (%current-system)))) 3186 (let ((libc (libc-for-target (%current-system)))
3187 (final glibc-final-with-bootstrap-bash))
3187 (package/inherit libc 3188 (package/inherit libc
3188 (name "glibc") 3189 (name "glibc")
3189 (source (bootstrap-origin (package-source libc))) 3190 (source (bootstrap-origin (package-source libc)))
3191 ;; The final libc only refers to itself, but the 'debug' output contains
3192 ;; references to GCC-BOOT0 and to the Linux headers. XXX: Would be great
3193 ;; if 'allowed-references' were per-output.
3194 (arguments
3195 (cons*
3196 #:allowed-references
3197 (append (list (gexp-input gcc-boot0 "lib")
3198 (kernel-headers-boot0)
3199 static-bash-for-glibc)
3200 (if (system-hurd?)
3201 (list gnumach-headers-boot0 hurd-headers-boot0)
3202 '())
3203 (package-outputs final))
3204 (package-arguments final)))
3205
3190 (inputs 3206 (inputs
3191 (modify-inputs (package-inputs glibc-final-with-bootstrap-bash) 3207 (modify-inputs (package-inputs final)
3192 (delete "bash-mesboot") 3208 (delete "bash-mesboot")
3193 (prepend static-bash-for-glibc))) 3209 (prepend static-bash-for-glibc)))
3194 3210
3195 ;; This time we need 'msgfmt' to install all the libc.mo files. 3211 ;; This time we need 'msgfmt' to install all the libc.mo files.
3196 (native-inputs 3212 (native-inputs
3197 (modify-inputs (package-native-inputs glibc-final-with-bootstrap-bash) 3213 (modify-inputs (package-native-inputs final)
3198 (append gettext-boot0))) 3214 (append gettext-boot0)))
3199 3215
3200 (propagated-inputs 3216 (propagated-inputs
3201 (package-propagated-inputs glibc-final-with-bootstrap-bash)) 3217 (package-propagated-inputs final)))))
3202
3203 ;; The final libc only refers to itself, but the 'debug' output contains
3204 ;; references to GCC-BOOT0 and to the Linux headers. XXX: Would be great
3205 ;; if 'allowed-references' were per-output.
3206 (arguments
3207 `(#:allowed-references
3208 (,(gexp-input gcc-boot0 "lib")
3209 ,(kernel-headers-boot0)
3210 ,static-bash-for-glibc
3211 ,@(if (system-hurd?)
3212 `(,gnumach-headers-boot0
3213 ,hurd-headers-boot0)
3214 '())
3215 ,@(package-outputs glibc-final-with-bootstrap-bash))
3216 ,@(package-arguments glibc-final-with-bootstrap-bash))))))
3217 3218
3218(define/system-dependent gcc-boot0-wrapped 3219(define/system-dependent gcc-boot0-wrapped
3219 ;; Make the cross-tools GCC-BOOT0 and BINUTILS-BOOT0 available under the 3220 ;; Make the cross-tools GCC-BOOT0 and BINUTILS-BOOT0 available under the