guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

13/52: gnu: polkit: Prevent cross-compilation build error.


From: guix-commits
Subject: 13/52: gnu: polkit: Prevent cross-compilation build error.
Date: Mon, 20 Sep 2021 07:19:30 -0400 (EDT)

mothacehe pushed a commit to branch core-updates-frozen
in repository guix.

commit a1b3597ab8538376be0e9bbbe49882c21e78b6df
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Tue Aug 24 11:27:47 2021 +0200

    gnu: polkit: Prevent cross-compilation build error.
    
    Alternative ‘os types’ include RedHat and Gentoo, which
    don't seem applicable.
    
    * gnu/packages/polkit.scm (polkit)[arguments]<#:configure-flags>:
      Set "--with-os-type" to "unknown".
---
 gnu/packages/polkit.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/polkit.scm b/gnu/packages/polkit.scm
index f495d51..585e0d8 100644
--- a/gnu/packages/polkit.scm
+++ b/gnu/packages/polkit.scm
@@ -101,7 +101,12 @@
        ("gobject-introspection" ,gobject-introspection)))
     (arguments
      `(#:configure-flags '("--sysconfdir=/etc"
-                           "--enable-man-pages")
+                           "--enable-man-pages"
+                           ;; Prevent ‘configure: error: cannot check for
+                           ;; file existence when cross compiling’.
+                           ,@(if (%current-target-system)
+                                 '("--with-os-type=unknown")
+                                 '()))
        #:phases
        (modify-phases %standard-phases
          (add-after



reply via email to

[Prev in Thread] Current Thread [Next in Thread]