guix-commits
[Top][All Lists]
Advanced

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

02/04: gnu: polkit: Fix cross-compilation.


From: guix-commits
Subject: 02/04: gnu: polkit: Fix cross-compilation.
Date: Tue, 30 Aug 2022 14:12:28 -0400 (EDT)

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

commit d54e53739004daf7eec0629fedadf054fb7f010d
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Aug 29 15:58:44 2022 +0200

    gnu: polkit: Fix cross-compilation.
    
    This is a follow-up to commit e8f4e1808563eb3c1cd28d419a1f349412af4a0d.
    
    * gnu/packages/polkit.scm (polkit)[arguments]: Pass -Dintrospection instead 
of
    -Dos-type when cross-compiling.
---
 gnu/packages/polkit.scm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/polkit.scm b/gnu/packages/polkit.scm
index abbe878b79..620c22022f 100644
--- a/gnu/packages/polkit.scm
+++ b/gnu/packages/polkit.scm
@@ -82,11 +82,14 @@
       #~(list "--sysconfdir=/etc"
               "-Dman=true"
               "-Dtests=true"
-              ;; ERROR: Pkg-config binary for machine
-              ;; MachineChoice.BUILD not found, giving up.  Just
-              ;; disable introspection for now.
+              ;; Work around cross-compilation failure.  The build system
+              ;; probes for the _target_ gobject-introspection, but if we
+              ;; change it to native, Meson fails with:
+              ;;   ERROR: Pkg-config binary for machine
+              ;;   MachineChoice.BUILD not found, giving up.
+              ;; Just disable introspection for now.
               #$@(if (%current-target-system)
-                     '("-Dos-type=unknown")
+                     '("-Dintrospection=false")
                      '()))
       #:phases
       #~(modify-phases %standard-phases



reply via email to

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