Source: gav
Version: 0.9.0-3
Tags: patch
User: [email protected]
Usertags: ftcbfs

gav fails to cross build from source, because it does not pass any cross
tools to make. The easiest way of fixing that - using dh_auto_build -
mostly fixes that except for not supplying LD. That needs to be done
manually. Please consider applying the attached patch.

Helmut
diff -u gav-0.9.0/debian/control gav-0.9.0/debian/control
--- gav-0.9.0/debian/control
+++ gav-0.9.0/debian/control
@@ -2,7 +2,7 @@
 Section: games
 Priority: extra
 Maintainer: Ari Pollak <[email protected]>
-Build-Depends: debhelper (>> 5.0.0), libsdl1.2-dev, libsdl-mixer1.2-dev, 
libsdl-net1.2-dev, libsdl-image1.2-dev
+Build-Depends: debhelper (>= 7), libsdl1.2-dev, libsdl-mixer1.2-dev, 
libsdl-net1.2-dev, libsdl-image1.2-dev
 Standards-Version: 3.7.3
 Homepage: http://gav.sf.net
 
diff -u gav-0.9.0/debian/rules gav-0.9.0/debian/rules
--- gav-0.9.0/debian/rules
+++ gav-0.9.0/debian/rules
@@ -5,6 +5,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/buildtools.mk
+LD ?= ld
+
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -27,7 +30,7 @@
        dh_testdir
 
        # Add here commands to compile the package.
-       CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)" $(MAKE)
+       CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)" dh_auto_build -- LD=$(LD)
        #/usr/bin/docbook-to-man debian/gav.sgml > gav.1
 
        touch build-stamp
diff -u gav-0.9.0/debian/changelog gav-0.9.0/debian/changelog
--- gav-0.9.0/debian/changelog
+++ gav-0.9.0/debian/changelog
@@ -1,3 +1,12 @@
+gav (0.9.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + In addition, pass a LD supplied by dpkg's buildtools.mk.
+
+ -- Helmut Grohne <[email protected]>  Sun, 15 Dec 2019 17:25:32 +0100
+
 gav (0.9.0-3) unstable; urgency=low
 
   * Include <cstring> to fix FTBFS with GCC 4.3 (Closes: #455172)

Reply via email to