Bug#941191: gigalomania FTCBFS: uses build architecture build tools
Helmut Grohne
helmut at subdivi.de
Thu Sep 26 05:44:54 BST 2019
Source: gigalomania
Version: 1.0+ds1-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
gigalomania fails to cross build from source, because it uses build
architecture build tools. The easiest way of passing cross tools to make
- using dh_auto_build - doesn't fully work here, because gigalomania's
Makefile uses CC for the C++ compiler. The variable needs to be renamed.
Also debian/rules hard codes the build architecture pkg-config.
Supplying a pkg-config from dpkg's buildtools.mk fixes this part. Please
consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru gigalomania-1.0+ds1/debian/changelog gigalomania-1.0+ds1/debian/changelog
--- gigalomania-1.0+ds1/debian/changelog 2018-03-11 09:48:27.000000000 +0100
+++ gigalomania-1.0+ds1/debian/changelog 2019-09-26 05:57:14.000000000 +0200
@@ -1,3 +1,13 @@
+gigalomania (1.0+ds1-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Let dh_auto_build pass cross tools to make.
+ + Rename the C++ compiler to CC.
+ + Use a pkg-config from dpkg's buildtools.mk in d/rules.
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 26 Sep 2019 05:57:14 +0200
+
gigalomania (1.0+ds1-1) unstable; urgency=medium
* Initial release. (Closes: #865784)
diff --minimal -Nru gigalomania-1.0+ds1/debian/rules gigalomania-1.0+ds1/debian/rules
--- gigalomania-1.0+ds1/debian/rules 2018-03-11 09:48:27.000000000 +0100
+++ gigalomania-1.0+ds1/debian/rules 2019-09-26 05:57:14.000000000 +0200
@@ -1,6 +1,8 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
+-include /usr/share/dpkg/buildtools.mk
+PKG_CONFIG?=pkg-config
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
#CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
@@ -9,10 +11,10 @@
dh $@
override_dh_auto_build:
- $(MAKE) DATADIR="/usr/share/gigalomania" \
- CCFLAGS="-g -O2 -Wall $(CPPFLAGS)" \
+ dh_auto_build -- DATADIR="/usr/share/gigalomania" \
+ CC='$$(CXX)' CCFLAGS="-g -O2 -Wall $(CPPFLAGS)" \
LINKPATH="$(LDFLAGS) `sdl2-config --libs` -L/usr/X11R6/lib/ -L/usr/lib" \
- LIBS="-lSDL2_image -lSDL2_mixer `pkg-config --libs tinyxml`" all
+ LIBS="-lSDL2_image -lSDL2_mixer `$(PKG_CONFIG) --libs tinyxml`" all
override_dh_auto_install:
$(MAKE) DESTDIR="$(CURDIR)/debian/tmp/gigalomania" \
More information about the Pkg-games-devel
mailing list