From b68db7b327b4c0f372efbb7fb39791230adb54c9 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Thu, 23 Sep 2021 23:50:28 +0200 Subject: [PATCH 6/6] gnu: gusb: Don't build introspection data when cross-compiling. This fixes a configure error when cross-compilation and doesn't cause any rebuilds. * gnu/packages/gnome.scm (gusb)[arguments]<#:configure-flags>: Set 'introspection' and 'vapi' to false. --- 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 497713cddc..47eb552603 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 -- 2.33.0