From d1bc0b93c77c30dd7c47904c96a47856492be8f9 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Sun, 20 Jan 2019 02:43:08 +0100 Subject: [PATCH] spice-gtk: fix cross --- srcpkgs/spice-gtk/patches/fix-cross.patch | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 srcpkgs/spice-gtk/patches/fix-cross.patch diff --git a/srcpkgs/spice-gtk/patches/fix-cross.patch b/srcpkgs/spice-gtk/patches/fix-cross.patch new file mode 100644 index 00000000000..ee160318b73 --- /dev/null +++ b/srcpkgs/spice-gtk/patches/fix-cross.patch @@ -0,0 +1,41 @@ +diff --git a/src/meson.build b/src/meson.build +index c55db44..667582b 100644 +--- src/meson.build ++++ src/meson.build +@@ -203,8 +203,8 @@ spice_client_glib_dep = declare_dependency(sources : [spice_marshals[1], spice_c + # + # SpiceClientGLib-2.0.gir + # ++if spice_gtk_has_introspection + spice_client_glib_gir = gnome.generate_gir(spice_client_glib_lib, +- build_by_default : spice_gtk_has_introspection, + export_packages : 'spice-client-glib-2.0', + extra_args : ['--accept-unprefixed'], + header : 'spice-client.h', +@@ -217,7 +217,7 @@ spice_client_glib_gir = gnome.generate_gir(spice_client_glib_lib, + namespace : 'SpiceClientGLib', + nsversion : '2.0', + sources : spice_client_glib_introspection_sources) +- ++endif + # + # spice-client-glib-usb-acl-helper + # +@@ -340,11 +340,11 @@ if spice_gtk_has_gtk + link_with : spice_client_gtk_lib, + dependencies : [spice_client_glib_dep, spice_gtk_deps]) + ++if spice_gtk_has_introspection + # + # SpiceClientGtk-3.0.gir + # + spice_client_gtk_gir = gnome.generate_gir(spice_client_gtk_lib, +- build_by_default : spice_gtk_has_introspection, + export_packages : 'spice-client-gtk-3.0', + extra_args : ['--accept-unprefixed'], + header : 'spice-widget.h', +@@ -358,3 +358,4 @@ if spice_gtk_has_gtk + nsversion : '3.0', + sources : spice_client_gtk_introspection_sources) + endif ++endif