GNU bug report logs - #50201
[PATCH core-updates-frozen 0/52] Support cross-compilation in glib-or-gtk-build-system and fix cross-compilation errors

Previous Next

Package: guix-patches;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Wed, 25 Aug 2021 17:59:01 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: 50201 <at> debbugs.gnu.org
Cc: Maxime Devos <maximedevos <at> telenet.be>
Subject: [bug#50201] [PATCH 24/52] gnu: heimdal: Fix linking error when cross-compiling.
Date: Wed, 25 Aug 2021 20:03:04 +0200
* gnu/packages/kerberos.scm (heimdal)[arguments]<#:configure-flags>:
  Set ac_cv_func_getpwnam_r_posix=yes when cross-compiling.
---
 gnu/packages/kerberos.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/kerberos.scm b/gnu/packages/kerberos.scm
index 6f3491acf6..54dd5dffc1 100644
--- a/gnu/packages/kerberos.scm
+++ b/gnu/packages/kerberos.scm
@@ -207,7 +207,7 @@ After installation, the system administrator should generate keys using
                   #t))))
     (build-system gnu-build-system)
     (arguments
-     '(#:configure-flags (list
+     `(#:configure-flags (list
                           ;; Avoid 7 MiB of .a files.
                           "--disable-static"
 
@@ -222,8 +222,13 @@ After installation, the system administrator should generate keys using
                           ;; Do not build sqlite.
                           (string-append
                            "--with-sqlite3="
-                           (assoc-ref %build-inputs "sqlite")))
+                           (assoc-ref %build-inputs "sqlite"))
 
+                          ;; The configure script is too pessimistic.
+                          ;; Setting this also resolves a linking error.
+                          ,@(if (%current-target-system)
+                                '("ac_cv_func_getpwnam_r_posix=yes")
+                                '()))
        #:phases (modify-phases %standard-phases
                   (add-before 'configure 'pre-configure
                     (lambda _
-- 
2.33.0





This bug report was last modified 3 years and 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.