guix-commits
[Top][All Lists]
Advanced

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

06/06: gnu: gusb: Don't build introspection data when cross-compiling.


From: guix-commits
Subject: 06/06: gnu: gusb: Don't build introspection data when cross-compiling.
Date: Mon, 27 Sep 2021 14:37:39 -0400 (EDT)

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

commit 02c43445544426aa4eebfd08289161509bc21460
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Thu Sep 23 23:50:28 2021 +0200

    gnu: gusb: Don't build introspection data when cross-compiling.
    
    This fixes a configure error when cross-compiling and doesn't
    cause any rebuilds.
    
    * gnu/packages/gnome.scm (gusb)[arguments]<#:configure-flags>:
      Set 'introspection' and 'vapi' to false.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/gnome.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 497713c..47eb552 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6573,7 +6573,14 @@ DAV, and others.")
      `(("glib" ,glib)
        ("libusb" ,libusb)))
     (arguments
-     `(#:tests? #f)) ;libusb fails to initialize.  Wonder what that is.
+     `(#:tests? #f ;libusb fails to initialize.  Wonder what that is.
+       #:configure-flags
+       ,(if (%current-target-system)
+            ;; Introspection data cannot currently be cross-compiled.
+            ''("-Dintrospection=false"
+               ;; Requires introspection data.
+               "-Dvapi=false")
+            ''())))
     (home-page "https://github.com/hughsie/libgusb";)
     (synopsis "GLib binding for libusb1")
     (description



reply via email to

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