Bug#853011: irrlicht FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Sat Jan 28 21:30:57 UTC 2017


Source: irrlicht
Version: 1.8.4+dfsg1-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

irrlicht fails to cross build from source, because it uses the build
architecture compiler. Fortunately, dh_auto_build knows how to pass
cross compilers for the makefile buildsystem, so indirecting the
explicit $(MAKE) invocations through dh_auto_build is sufficient for
making cross builds succeed. Please consider applying the attached
patch.

Helmut
-------------- next part --------------
diff --minimal -Nru irrlicht-1.8.4+dfsg1/debian/changelog irrlicht-1.8.4+dfsg1/debian/changelog
--- irrlicht-1.8.4+dfsg1/debian/changelog	2016-09-21 07:54:13.000000000 +0200
+++ irrlicht-1.8.4+dfsg1/debian/changelog	2017-01-28 22:24:15.000000000 +0100
@@ -1,3 +1,10 @@
+irrlicht (1.8.4+dfsg1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 28 Jan 2017 22:24:15 +0100
+
 irrlicht (1.8.4+dfsg1-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru irrlicht-1.8.4+dfsg1/debian/rules irrlicht-1.8.4+dfsg1/debian/rules
--- irrlicht-1.8.4+dfsg1/debian/rules	2016-09-21 07:54:13.000000000 +0200
+++ irrlicht-1.8.4+dfsg1/debian/rules	2017-01-28 22:24:12.000000000 +0100
@@ -13,7 +13,7 @@
 scripts_svn_rev=5339
 
 %:
-	dh $@
+	dh $@ --sourcedirectory=source/Irrlicht
 
 override_dh_clean:
 	# clean documentation
@@ -31,9 +31,7 @@
 	
 	# build irrlicht shared and static lib
 	NDEBUG="true" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
-	CXXFLAGS="$(CXXFLAGS)" $(MAKE) -C source/Irrlicht sharedlib
-	NDEBUG="true" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
-	CXXFLAGS="$(CXXFLAGS)" $(MAKE) -C source/Irrlicht staticlib
+	CXXFLAGS="$(CXXFLAGS)" dh_auto_build -- sharedlib staticlib
 	
 	# build documentation
 	# based off of scripts/doc/irrlicht/makedocumentation.sh
@@ -50,8 +48,8 @@
 	usr/lib/$(DEB_HOST_MULTIARCH)
 
 override_dh_auto_install:
-	$(MAKE) -C source/Irrlicht DESTDIR=$(CURDIR)/debian/tmp \
-	INSTALL_DIR=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) install
+	dh_auto_install -- \
+	INSTALL_DIR=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
 
 override_dh_installchangelogs:
 	dh_installchangelogs changes.txt


More information about the Pkg-games-devel mailing list