diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-09-16 10:06:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-09-16 10:13:55 +0200 |
commit | 79726a0507e09d31a838d1a42ab734dfa9fff3d0 (patch) | |
tree | 786d8ad1179d3f898e18692128d3076de070f40e /gnu/packages/admin.scm | |
parent | c0d4bd52ee266c86a58d8fbe2d5859313e09ba21 (diff) | |
download | guix-79726a0507e09d31a838d1a42ab734dfa9fff3d0.tar guix-79726a0507e09d31a838d1a42ab734dfa9fff3d0.tar.gz |
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
Diffstat (limited to 'gnu/packages/admin.scm')
-rw-r--r-- | gnu/packages/admin.scm | 11 |
1 files changed, 10 insertions, 1 deletions
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 |