Source: mathtex Version: 1.03-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
mathtex fails to cross build from source, because it uses the build architecture compiler. It neither passes cross tools to make nor does the Makefile use a substitution variable. Both needs to be fixed. To make matters worse, it actually compiles during make install. Long story short, the attached patch makes mathtex cross buildable. Please consider applying it. Helmut
diff -u mathtex-1.03/Makefile mathtex-1.03/Makefile --- mathtex-1.03/Makefile +++ mathtex-1.03/Makefile @@ -5,7 +5,7 @@ install: mkdir -p debian/mathtex/usr/bin - gcc -DLATEX=\"/usr/bin/latex\" -DDVIPNG=\"/usr/bin/dvipng\" mathtex.c -o ${TARGET} + $(CC) -DLATEX=\"/usr/bin/latex\" -DDVIPNG=\"/usr/bin/dvipng\" mathtex.c -o ${TARGET} clean: mkdir -p debian/mathtex/usr/bin diff -u mathtex-1.03/debian/changelog mathtex-1.03/debian/changelog --- mathtex-1.03/debian/changelog +++ mathtex-1.03/debian/changelog @@ -1,3 +1,12 @@ +mathtex (1.03-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Make gcc substitutable. + + -- Helmut Grohne <hel...@subdivi.de> Wed, 02 Jun 2021 19:15:45 +0200 + mathtex (1.03-1) unstable; urgency=high * New upstream release. diff -u mathtex-1.03/debian/rules mathtex-1.03/debian/rules --- mathtex-1.03/debian/rules +++ mathtex-1.03/debian/rules @@ -25,9 +25,6 @@ build-stamp: configure-stamp dh_testdir - - # Add here commands to compile the package. - $(MAKE) docbook-to-man debian/mathtex.sgml > mathtex.1 touch $@ @@ -47,9 +44,7 @@ dh_testroot dh_prep dh_installdirs - - # Add here commands to install the package into debian/mathtex. - $(MAKE) DESTDIR=$(CURDIR)/debian/mathtex install + dh_auto_build -- DESTDIR=$(CURDIR)/debian/mathtex install # Build architecture-independent files here.