Source: nrg2iso Version: 0.4-4 Tags: patch User: [email protected] Usertags: rebootstrap
nrg2iso fails to cross build from source, because the upstream Makefile hard codes the build architecture compiler gcc. Rather than fixing the Makefile, the attached patch just puts the compilation command in debian/rules. While at it, I also made it use the CFLAGS that the upstream Makefile ignored. After doing so, it cross builds successfully and builds with -O2 by default. Please consider applying it. Helmut
diff -u nrg2iso-0.4/debian/changelog nrg2iso-0.4/debian/changelog --- nrg2iso-0.4/debian/changelog +++ nrg2iso-0.4/debian/changelog @@ -1,3 +1,10 @@ +nrg2iso (0.4-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Inline a fixed upstream Makefile. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 13 Jun 2018 15:50:58 +0200 + nrg2iso (0.4-4) unstable; urgency=low * Update maintainer address to the debian.org one. diff -u nrg2iso-0.4/debian/rules nrg2iso-0.4/debian/rules --- nrg2iso-0.4/debian/rules +++ nrg2iso-0.4/debian/rules @@ -6,6 +6,7 @@ # source quilt for patch management include /usr/share/quilt/quilt.make +-include /usr/share/dpkg/buildtools.mk CFLAGS = -Wall -g @@ -27,7 +28,7 @@ build-stamp: configure-stamp $(QUILT_STAMPFN) dh_testdir - $(MAKE) CFLAGS="$(CFLAGS)" + $(CC) $(CFLAGS) nrg2iso.c -o nrg2iso touch build-stamp clean: unpatch

