Source: gatling Version: 0.13-6 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
gatling fails to cross build from source, because it uses the build architecture compiler. CC defaults to plain cc in gnu make. For Debian, we need something like dpkg's buildtools.mk to initialize CC. Then it doesn't pass cross tools to make. The easiest way of fixing that is using dh_auto_build. Please consider applying the attached patch. Helmut
diff --minimal -Nru gatling-0.13/debian/changelog gatling-0.13/debian/changelog --- gatling-0.13/debian/changelog 2016-01-16 16:16:45.000000000 +0100 +++ gatling-0.13/debian/changelog 2019-09-08 08:12:58.000000000 +0200 @@ -1,3 +1,12 @@ +gatling (0.13-6.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Seed CC from dpkg's buildtools.mk. + + Let dh_auto_build pass cross tools to make. + + -- Helmut Grohne <hel...@subdivi.de> Sun, 08 Sep 2019 08:12:58 +0200 + gatling (0.13-6) unstable; urgency=medium * Added 10-mbedtls.patch to switch from polarssl to mbedtls, diff --minimal -Nru gatling-0.13/debian/rules gatling-0.13/debian/rules --- gatling-0.13/debian/rules 2012-11-04 13:05:36.000000000 +0100 +++ gatling-0.13/debian/rules 2019-09-08 08:12:57.000000000 +0200 @@ -1,5 +1,6 @@ #!/usr/bin/make -f +-include /usr/share/dpkg/buildtools.mk CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) @@ -12,13 +13,13 @@ $(CC) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $< override_dh_auto_build: writelog - make DIET= ptlsgatling + dh_auto_build -- DIET= ptlsgatling mv ptlsgatling ptlsgatling.BACKUP make clean - make DIET= tlsgatling + dh_auto_build -- DIET= tlsgatling mv tlsgatling tlsgatling.BACKUP make clean - make DIET= gatling bench dl + dh_auto_build -- DIET= gatling bench dl mv tlsgatling.BACKUP tlsgatling mv ptlsgatling.BACKUP ptlsgatling cp -a bench gatling-bench