Source: supertransball2
Version: 1.5-8
Tags: patch
User: [email protected]
Usertags: rebootstrap

supertransball2 fails to cross build from source, because it uses the
build architecture compiler. The easiest way of passing cross tools to
make is using dh_auto_build. For supertransball2, we can eliminate the
need for an override using --sourcedirectory. After doing so, it cross
builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru supertransball2-1.5/debian/changelog 
supertransball2-1.5/debian/changelog
--- supertransball2-1.5/debian/changelog        2016-07-08 00:38:04.000000000 
+0200
+++ supertransball2-1.5/debian/changelog        2018-06-27 16:03:42.000000000 
+0200
@@ -1,3 +1,10 @@
+supertransball2 (1.5-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 27 Jun 2018 16:03:42 +0200
+
 supertransball2 (1.5-8) unstable; urgency=medium
 
   * Declare compliance with Debian Policy 3.9.8.
diff --minimal -Nru supertransball2-1.5/debian/rules 
supertransball2-1.5/debian/rules
--- supertransball2-1.5/debian/rules    2016-07-08 00:38:04.000000000 +0200
+++ supertransball2-1.5/debian/rules    2018-06-27 16:03:20.000000000 +0200
@@ -2,17 +2,14 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
-       dh $@
-
-override_dh_auto_build:
-       cd sources && $(MAKE)
+       dh $@ --sourcedirectory=sources
 
 override_dh_auto_install-arch:
-       cd sources && $(MAKE) install \
+       dh_auto_install -- install \
                DESTDIR=$(CURDIR)/debian/supertransball2
 
 override_dh_auto_install-indep:
-       cd sources && $(MAKE) install-data \
+       dh_auto_install -- install-data \
                DESTDIR=$(CURDIR)/debian/supertransball2-data
        find $(CURDIR)/debian/supertransball2-data -name "WS_FTP.LOG" -delete
 

Reply via email to