Source: cramfsswap Version: 1.4.1-1.1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
cramfsswap fails to cross build from source, because its Makefile hard codes the build architecture compiler gcc. After making it substitutable and substituting it by dh_auto_build, cramfsswap cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru cramfsswap-1.4.1/Makefile cramfsswap-1.4.1/Makefile --- cramfsswap-1.4.1/Makefile 2007-10-14 23:37:58.000000000 +0200 +++ cramfsswap-1.4.1/Makefile 2017-08-07 20:43:44.000000000 +0200 @@ -4,7 +4,7 @@ debian: cramfsswap cramfsswap: cramfsswap.c - gcc -Wall -g -O -o cramfsswap -lz cramfsswap.c + $(CC) -Wall -g -O -o cramfsswap -lz cramfsswap.c strip: strip cramfsswap diff --minimal -Nru cramfsswap-1.4.1/debian/changelog cramfsswap-1.4.1/debian/changelog --- cramfsswap-1.4.1/debian/changelog 2016-12-18 12:50:25.000000000 +0100 +++ cramfsswap-1.4.1/debian/changelog 2017-08-07 20:43:44.000000000 +0200 @@ -1,3 +1,12 @@ +cramfsswap (1.4.1-1.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross compilers to make. + + Make compiler substitutable in Makefile + + -- Helmut Grohne <hel...@subdivi.de> Mon, 07 Aug 2017 20:43:44 +0200 + cramfsswap (1.4.1-1.1) unstable; urgency=medium * Non-maintainer upload diff --minimal -Nru cramfsswap-1.4.1/debian/rules cramfsswap-1.4.1/debian/rules --- cramfsswap-1.4.1/debian/rules 2007-10-14 23:41:26.000000000 +0200 +++ cramfsswap-1.4.1/debian/rules 2017-08-07 20:32:34.000000000 +0200 @@ -11,7 +11,7 @@ build: build-stamp build-stamp: dh_testdir - $(MAKE) debian + dh_auto_build -- debian touch build-stamp clean: