Source: gnome-recipes
Version: 2.0.4-3
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

gnome-recipes fails to cross build from source, because it needs to run
tools/recipe-extract.c during build. Presently, it compiles it as a host
executable and expects an exe_wrapper to run it. That tends to be qemu.
In this case, we can avoid that qemu dependency by compiling it as a
native executable instead. Doing so incurs and extra Build-Depends on
libglib2.0-dev:native, but I think that's the better option. I'm
attaching the patch to turn recipe-extract native. Please consider
forwarding it upstream and applying it.

Helmut
--- gnome-recipes-2.0.4.orig/tools/meson.build
+++ gnome-recipes-2.0.4/tools/meson.build
@@ -1,3 +1,6 @@
+native_deps = [ dependency('glib-2.0', native: true) ]
+
 recipe_extract = executable('recipe-extract', 'recipe-extract.c',
            include_directories : top_inc,
-           dependencies: deps)
+           dependencies: native_deps,
+           native: true)
--- gnome-recipes-2.0.4.orig/tools/recipe-extract.c
+++ gnome-recipes-2.0.4/tools/recipe-extract.c
@@ -18,8 +18,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "config.h"
-
 #include <locale.h>
 
 #include <glib.h>

Reply via email to