[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: sudo: Fix cross-compilation.
From: |
guix-commits |
Subject: |
01/06: gnu: sudo: Fix cross-compilation. |
Date: |
Mon, 16 Sep 2024 05:16:49 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 79726a0507e09d31a838d1a42ab734dfa9fff3d0
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Sep 16 10:06:01 2024 +0200
gnu: sudo: Fix cross-compilation.
Fixes a regression introduced in
be50b25b7b093f3879623f2252ebfae5db7fc5cd.
* gnu/packages/admin.scm (sudo)[arguments]: Define ‘ac_cv_*’ when
cross-compiling.
Change-Id: Iaa6f856c902ff8e06d790f8b1bc49ecda66ce5f2
---
gnu/packages/admin.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index cb0ef85c54..f842abea78 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2072,7 +2072,16 @@ system administrator.")
;; provide it.
(string-append "CPPFLAGS=-D_PATH_MV=\\\""
(assoc-ref %build-inputs "coreutils")
- "/bin/mv\\\""))
+ "/bin/mv\\\"")
+
+ ;; When cross-compiling, assume we have a working 'snprintf' and
+ ;; 'vsnprintf' (which we do, when using glibc). The default
+ ;; choice fails with undefined references to 'sudo_snprintf' &
+ ;; co. when linking.
+ ,@(if (%current-target-system)
+ '("ac_cv_have_working_snprintf=yes"
+ "ac_cv_have_working_vsnprintf=yes")
+ '()))
;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
#:parallel-build? #f
- branch master updated (c0d4bd52ee -> 034eb1b0b6), guix-commits, 2024/09/16
- 06/06: gnu: perl-critic: Make the perlcritic command available., guix-commits, 2024/09/16
- 02/06: gnu: sudo: Use gexps and remove input labels., guix-commits, 2024/09/16
- 04/06: gnu: kokkos: Update to 4.4.00., guix-commits, 2024/09/16
- 01/06: gnu: sudo: Fix cross-compilation.,
guix-commits <=
- 05/06: gnu: openpmix: Do not keep a reference to GCC and other build tools., guix-commits, 2024/09/16
- 03/06: gnu: oksh: Update to 7.5., guix-commits, 2024/09/16