Source: xmlindent Version: 0.2.17-4.1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
xmlindent fails to cross build from source, because it uses the build architecture compiler. gcc is simply hardcoded into the Makefile. Fixing the build involves making the compiler substitutable and actually substituting a cross compiler. After doing so, it cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru xmlindent-0.2.17/debian/changelog xmlindent-0.2.17/debian/changelog --- xmlindent-0.2.17/debian/changelog 2016-12-14 17:56:42.000000000 +0100 +++ xmlindent-0.2.17/debian/changelog 2017-06-24 16:17:13.000000000 +0200 @@ -1,3 +1,12 @@ +xmlindent (0.2.17-4.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Closes: #-1 + + Allow substituting gcc. + + Use dh_auto_build to substitute $(CC). + + -- Helmut Grohne <hel...@subdivi.de> Sat, 24 Jun 2017 16:17:13 +0200 + xmlindent (0.2.17-4.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru xmlindent-0.2.17/debian/patches/makefile.patch xmlindent-0.2.17/debian/patches/makefile.patch --- xmlindent-0.2.17/debian/patches/makefile.patch 2012-11-30 11:47:52.000000000 +0100 +++ xmlindent-0.2.17/debian/patches/makefile.patch 2017-06-24 16:17:08.000000000 +0200 @@ -15,7 +15,7 @@ xmlindent: indent.c buffer.c main.c - gcc -Wall -g error.c indent.c buffer.c main.c -o xmlindent -lfl -+ gcc $(CFLAGS) $(LDFLAGS) error.c indent.c buffer.c main.c -o xmlindent -lfl ++ $(CC) $(CFLAGS) $(LDFLAGS) error.c indent.c buffer.c main.c -o xmlindent -lfl indent.c: lex.yy.c diff --minimal -Nru xmlindent-0.2.17/debian/rules xmlindent-0.2.17/debian/rules --- xmlindent-0.2.17/debian/rules 2015-07-31 02:51:26.000000000 +0200 +++ xmlindent-0.2.17/debian/rules 2017-06-24 16:17:13.000000000 +0200 @@ -17,7 +17,7 @@ build-stamp: configure-stamp dh_testdir - $(MAKE) \ + dh_auto_build -- \ CFLAGS="$(CFLAGS) $(CPPFLAGS)" \ CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" \ LDFLAGS="$(LDFLAGS) $(LDFLAGS2)"