Source: spacezero Version: 0.80.06-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
spacezero fails to cross build from source, because it does not pass cross tools to make. The easiest way of fixing that - using dh_auto_build - does not entirely fix the build. The upstream Makefile hard codes the build architecture pkg-config. The attached patch makes spacezero cross buildable. Please consider applying it. Helmut
diff --minimal -Nru spacezero-0.80.06/debian/changelog spacezero-0.80.06/debian/changelog --- spacezero-0.80.06/debian/changelog 2011-12-19 15:17:28.000000000 +0100 +++ spacezero-0.80.06/debian/changelog 2019-05-23 15:40:49.000000000 +0200 @@ -1,3 +1,12 @@ +spacezero (0.80.06-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + cross.patch: Make pkg-config substitutable. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 23 May 2019 15:40:49 +0200 + spacezero (0.80.06-1) unstable; urgency=low * New upstream release. diff --minimal -Nru spacezero-0.80.06/debian/patches/cross.patch spacezero-0.80.06/debian/patches/cross.patch --- spacezero-0.80.06/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ spacezero-0.80.06/debian/patches/cross.patch 2019-05-23 15:40:49.000000000 +0200 @@ -0,0 +1,16 @@ +--- spacezero-0.80.06.orig/Makefile ++++ spacezero-0.80.06/Makefile +@@ -23,10 +23,11 @@ + + + ++PKG_CONFIG ?= pkg-config + OPENALFLAGS= -lopenal -lalut +-GTKFLAGS=`pkg-config --cflags gtk+-2.0` ++GTKFLAGS=`$(PKG_CONFIG) --cflags gtk+-2.0` + #GTKFLAGS= -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo +-GTKLIBS=`pkg-config --libs gtk+-2.0` ++GTKLIBS=`$(PKG_CONFIG) --libs gtk+-2.0` + #GTKLIBS= -lgtk-x11-2.0 -lgdk-x11-2.0 -lglib-2.0 + GTKLIBS12=`gtk-config --cflags` + diff --minimal -Nru spacezero-0.80.06/debian/patches/series spacezero-0.80.06/debian/patches/series --- spacezero-0.80.06/debian/patches/series 2011-12-19 15:17:28.000000000 +0100 +++ spacezero-0.80.06/debian/patches/series 2019-05-23 15:40:49.000000000 +0200 @@ -1 +1,2 @@ fixgtkflags +cross.patch diff --minimal -Nru spacezero-0.80.06/debian/rules spacezero-0.80.06/debian/rules --- spacezero-0.80.06/debian/rules 2011-12-19 15:17:28.000000000 +0100 +++ spacezero-0.80.06/debian/rules 2019-05-23 15:40:48.000000000 +0200 @@ -23,8 +23,7 @@ -o debian/ \ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \ debian/spacezero.6.xml - $(MAKE) all DATADIR=/usr/share/spacezero/ -# dh_auto_build + dh_auto_build -- all DATADIR=/usr/share/spacezero/ override_dh_fixperms: dh_fixperms