Source: connect-proxy Version: 1.105-1 Tags: patch User: [email protected] Usertags: rebootstrap
connect-proxy fails to cross build from source, because debian/rules hard codes the build architecture compiler gcc. After switching to $(CC) and letting dpkg's buildtools.mk set up $(CC), connect-proxy cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru connect-proxy-1.105/debian/changelog connect-proxy-1.105/debian/changelog --- connect-proxy-1.105/debian/changelog 2016-10-31 21:03:15.000000000 +0100 +++ connect-proxy-1.105/debian/changelog 2018-06-13 16:09:17.000000000 +0200 @@ -1,3 +1,12 @@ +connect-proxy (1.105-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dpkg's buildtools.mk set up $(CC). + + Don't hard code gcc. + + -- Helmut Grohne <[email protected]> Wed, 13 Jun 2018 16:09:17 +0200 + connect-proxy (1.105-1) unstable; urgency=medium * New upstream release (rebuilt tarball) diff --minimal -Nru connect-proxy-1.105/debian/rules connect-proxy-1.105/debian/rules --- connect-proxy-1.105/debian/rules 2016-10-31 21:03:15.000000000 +0100 +++ connect-proxy-1.105/debian/rules 2018-06-13 16:09:16.000000000 +0200 @@ -1,15 +1,15 @@ #!/usr/bin/make -f +-include /usr/share/dpkg/buildtools.mk + %: dh $@ override_dh_auto_build: docbook-to-man debian/connect-proxy.sgml > debian/connect-proxy.1 - cat connect.c | sed 's/SOCKLEN_T/socklen_t/' > connect_patched.c [ -d usr/bin ] || mkdir -p usr/bin - gcc -o usr/bin/connect-proxy connect_patched.c + $(CC) -DSOCKLEN_T=socklen_t connect.c -o usr/bin/connect-proxy override_dh_clean: rm -rf usr - rm -f connect_patched.c dh_clean

