[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: cross-libc: Resurrect cross-building for the
From: |
guix-commits |
Subject: |
branch master updated: gnu: cross-libc: Resurrect cross-building for the Hurd. |
Date: |
Sun, 17 Nov 2024 06:38:41 -0500 |
This is an automated email from the git hooks/post-receive script.
janneke pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new d108a7aac2 gnu: cross-libc: Resurrect cross-building for the Hurd.
d108a7aac2 is described below
commit d108a7aac2c51f21c55cb8ea8801629a97f5242a
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Wed Nov 6 12:26:47 2024 +0100
gnu: cross-libc: Resurrect cross-building for the Hurd.
* gnu/packages/base.scm (glibc)[arguments]: When building for the Hurd, in
phase "create-machine-symlink", only create symlink if it is missing.
* gnu/packages/cross-base.scm (cross-libc*)[arguments]: Likewise.
Change-Id: Ib009b7bd301b543b8629382330cca9d963b7a812
---
gnu/packages/base.scm | 11 ++++++-----
gnu/packages/cross-base.scm | 11 ++++++-----
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 4e8121ae2c..90c25b54e1 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1088,11 +1088,12 @@ the store.")
" libmachuser.so
libhurduser.so"))))))
(add-after 'install 'create-machine-symlink
(lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (cpu "i386"))
- (symlink cpu
- (string-append out
-
"/include/mach/machine"))))))
+ (let* ((out (assoc-ref outputs "out"))
+ (cpu "i386")
+ (machine (string-append
+ out "/include/mach/machine")))
+ (unless (file-exists? machine)
+ (symlink cpu machine))))))
'()))))
(inputs `(("static-bash" ,static-bash)))
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index cecc21083e..5781341a87 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -747,11 +747,12 @@ returned."
" libmachuser.so
libhurduser.so"))))))
(add-after 'install 'create-machine-symlink
(lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (cpu "i386"))
- (symlink cpu
- (string-append out
-
"/include/mach/machine"))))))
+ (let* ((out (assoc-ref outputs "out"))
+ (cpu "i386")
+ (machine (string-append
+ out "/include/mach/machine")))
+ (unless (file-exists? machine)
+ (symlink cpu machine))))))
'())))))
;; Shadow the native "kernel-headers" because glibc's recipe expects the
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: cross-libc: Resurrect cross-building for the Hurd.,
guix-commits <=