Source: mimetex Version: 1.74-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
mimetex fails to cross build from source, because it uses the build architecture compiler. After making compiler invocations substitutable and letting dh_auto_build pass substitutions, mimetex cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru mimetex-1.74/debian/changelog mimetex-1.74/debian/changelog --- mimetex-1.74/debian/changelog 2014-07-14 22:16:16.000000000 +0200 +++ mimetex-1.74/debian/changelog 2017-11-23 05:33:02.000000000 +0100 @@ -1,3 +1,10 @@ +mimetex (1.74-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use cross compilers. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 23 Nov 2017 05:33:02 +0100 + mimetex (1.74-1) unstable; urgency=low * New upstream release diff --minimal -Nru mimetex-1.74/debian/patches/Makefile.diff mimetex-1.74/debian/patches/Makefile.diff --- mimetex-1.74/debian/patches/Makefile.diff 2014-07-14 22:02:00.000000000 +0200 +++ mimetex-1.74/debian/patches/Makefile.diff 2017-11-23 05:32:56.000000000 +0100 @@ -4,13 +4,13 @@ +all: mimetex + +mimetex: mimetex.o gifsave.o -+ gcc -DAA mimetex.o gifsave.o -lm -o mimetex `dpkg-buildflags --get LDFLAGS` ++ $(CC) -DAA mimetex.o gifsave.o -lm -o mimetex `dpkg-buildflags --get LDFLAGS` + +mimetex.o: -+ gcc -DAA -c mimetex.c `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` ++ $(CC) -DAA -c mimetex.c `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` + +gifsave.o: -+ gcc -DAA -c gifsave.c `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` ++ $(CC) -DAA -c gifsave.c `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` + +clean: + rm -f mimetex mimetex.o gifsave.o diff --minimal -Nru mimetex-1.74/debian/rules mimetex-1.74/debian/rules --- mimetex-1.74/debian/rules 2014-07-14 22:13:19.000000000 +0200 +++ mimetex-1.74/debian/rules 2017-11-23 05:32:21.000000000 +0100 @@ -18,7 +18,7 @@ build-stamp: dh_testdir - make + dh_auto_build touch build-stamp