Bug#894047: bulletml FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Sun Mar 25 19:38:00 UTC 2018


Source: bulletml
Version: 0.0.6-7
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

bulletml fails to cross build from source, because it uses the build
architecture compiler. Letting dh_auto_build pass cross tools to make
mostly fixes that except for the linking step of the tinyxml embedded
library. Also setting LD is required here. The attached patch does both
and makes bulletml cross build successfully. Please consider applying
it.

Why does bulletml use an embedded copy of tinyxml? Please consider using
the packaged version.

Helmut
-------------- next part --------------
diff --minimal -Nru bulletml-0.0.6/debian/changelog bulletml-0.0.6/debian/changelog
--- bulletml-0.0.6/debian/changelog	2017-11-22 23:13:46.000000000 +0100
+++ bulletml-0.0.6/debian/changelog	2018-03-25 21:32:30.000000000 +0200
@@ -1,3 +1,12 @@
+bulletml (0.0.6-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Also pass LD along.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 25 Mar 2018 21:32:30 +0200
+
 bulletml (0.0.6-7) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru bulletml-0.0.6/debian/rules bulletml-0.0.6/debian/rules
--- bulletml-0.0.6/debian/rules	2017-11-22 23:13:46.000000000 +0100
+++ bulletml-0.0.6/debian/rules	2018-03-25 21:32:30.000000000 +0200
@@ -12,9 +12,9 @@
 	dh_testdir
 	rm -f src/calc.cpp #needs to be regenerated from src/calc.yy
 	rm -f src/*.o src/*/*.o
-	$(MAKE) -C src CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" libbulletml.a
+	dh_auto_build --sourcedirectory=src -- LD='$$(CXX)' CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" libbulletml.a
 	rm -f src/*.o src/*/*.o
-	$(MAKE) -C src CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) -fPIC -fpic" \
+	dh_auto_build --sourcedirectory=src -- LD='$$(CXX)' CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) -fPIC -fpic" \
 		LDFLAGS="$(LDFLAGS) -Wl,-z,defs" libbulletml.so
 	touch $@
 


More information about the Pkg-games-devel mailing list