Source: libgctp Version: 2.0-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libgctp fails to cross build from source, because it runs the build architecture compiler during make install. dh_auto_build passes a suitable CC to make, but dh_auto_install doesn't. Presumably, the makefile has missing dependencies. Rather than fixing the dependencies, the attached patch opts to simply pass CC to make_install as well. Please consider applying it. Helmut
diff --minimal -Nru libgctp-2.0/debian/changelog libgctp-2.0/debian/changelog --- libgctp-2.0/debian/changelog 2017-07-28 16:23:28.000000000 +0200 +++ libgctp-2.0/debian/changelog 2017-12-18 20:47:38.000000000 +0100 @@ -1,3 +1,10 @@ +libgctp (2.0-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Also pass CC to make install. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 18 Dec 2017 20:47:38 +0100 + libgctp (2.0-2) unstable; urgency=medium * Move to Standards-Version: 4.0.0; no changes required diff --minimal -Nru libgctp-2.0/debian/rules libgctp-2.0/debian/rules --- libgctp-2.0/debian/rules 2014-05-15 20:19:59.000000000 +0200 +++ libgctp-2.0/debian/rules 2017-12-18 20:47:37.000000000 +0100 @@ -3,6 +3,8 @@ # Comment out this line for debugging #export DH_VERBOSE:=1 +-include /usr/share/dpkg/buildtools.mk + # The magic rule for debhelper %: dh $@ --sourcedirectory=source @@ -19,7 +21,7 @@ override_dh_auto_install: sed -e 's/@libdir@/$(LIBDIR)/' < gcpt.pc | \ sed -e 's/@VERSION@/$(VERSION)/' > gctp.pc - dh_auto_install + dh_auto_install -- 'CC=$(CC)' mkdir -p debian/libgctp0d/$(LIBDIR) cp source/libgctp.so.0d debian/libgctp0d/$(LIBDIR) dh_link -p libgctp-dev $(LIBDIR)/libgctp.so.0d $(LIBDIR)/libgctp.so