Source: mgen Version: 5.02.b+dfsg1-2.2 Tags: patch User: [email protected] Usertags: rebootstrap
mgen fails to cross build from source, because it does not pass cross tools to make. The easiest way of fixing that - using dh_auto_build - does not make mgen cross buildable, because mgen stores the C++ compiler in the CC variable, which is normally used for the C compiler. Renaming the variable is necessary here. The attached patch makes mgen cross buildable. Please consider applying it. Helmut
diff --minimal -Nru mgen-5.02.b+dfsg1/debian/changelog mgen-5.02.b+dfsg1/debian/changelog --- mgen-5.02.b+dfsg1/debian/changelog 2018-11-10 04:53:51.000000000 +0100 +++ mgen-5.02.b+dfsg1/debian/changelog 2019-05-11 22:08:53.000000000 +0200 @@ -1,3 +1,12 @@ +mgen (5.02.b+dfsg1-2.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Pass C++ compiler as CC. + + -- Helmut Grohne <[email protected]> Sat, 11 May 2019 22:08:53 +0200 + mgen (5.02.b+dfsg1-2.2) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru mgen-5.02.b+dfsg1/debian/rules mgen-5.02.b+dfsg1/debian/rules --- mgen-5.02.b+dfsg1/debian/rules 2018-11-10 04:53:51.000000000 +0100 +++ mgen-5.02.b+dfsg1/debian/rules 2019-05-11 22:08:53.000000000 +0200 @@ -11,7 +11,7 @@ endif override_dh_auto_build: - cd makefiles && make -f $(MAKEFILE) + dh_auto_build --sourcedirectory=makefiles --buildsystem=makefile -- -f $(MAKEFILE) CC='$$(CXX)' override_dh_auto_clean: cd makefiles && make -f $(MAKEFILE) clean

