Source: convlit Version: 1.8-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
convlit fails to cross build from source, because it uses the build architecture compiler. Letting dh_auto_build pass suitable CC to make mostly fixes that except for one bare gcc invocation. After making that substitutable as well, convlit cross builds successfully. Please consider applying the attached patch. Helmut
diff -u convlit-1.8/debian/control convlit-1.8/debian/control --- convlit-1.8/debian/control +++ convlit-1.8/debian/control @@ -2,7 +2,7 @@ Section: utils Priority: extra Maintainer: Joe Nahmias <je...@debian.org> -Build-Depends: debhelper (>= 6), libtommath-dev +Build-Depends: debhelper (>= 7), libtommath-dev Standards-Version: 3.7.3 Homepage: http://www.convertlit.com/ diff -u convlit-1.8/debian/rules convlit-1.8/debian/rules --- convlit-1.8/debian/rules +++ convlit-1.8/debian/rules @@ -21,8 +21,8 @@ build: build-stamp build-stamp: dh_testdir - $(MAKE) -C $(CURDIR)/lib - $(MAKE) -C $(CURDIR)/clit18 + dh_auto_build --sourcedirectory=lib + dh_auto_build --sourcedirectory=clit18 touch $@ clean: diff -u convlit-1.8/debian/changelog convlit-1.8/debian/changelog --- convlit-1.8/debian/changelog +++ convlit-1.8/debian/changelog @@ -1,3 +1,12 @@ +convlit (1.8-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Make one plain gcc call substitutable. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 21 Jun 2018 06:18:54 +0200 + convlit (1.8-1) unstable; urgency=low * Initial release, closes: #472586. diff -u convlit-1.8/clit18/Makefile convlit-1.8/clit18/Makefile --- convlit-1.8/clit18/Makefile +++ convlit-1.8/clit18/Makefile @@ -7,3 +7,3 @@ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a - gcc -o clit $^ -ltommath + $(CC) -o clit $^ -ltommath