Source: macutils Version: 2.0b3-16 Tags: patch User: [email protected] Usertags: rebootstrap
macutils fails to cross build from source, because it uses the build architecture compiler. The easiest way of passing cross tools to make is using dh_auto_build. Then it fails linking crc/makecrc with the build architecture compiler, because crc/makecrc.o was built with the host architecture compiler. Indeed makecrc needs to be built with the build architecture compiler, because it is run during build. So we need to ensure that all of makecrc is built with the build architecture compiler. The attached patch does that and makes macutils cross build successfully. Please consider applying it. Helmut
diff --minimal -Nru macutils-2.0b3/debian/changelog macutils-2.0b3/debian/changelog --- macutils-2.0b3/debian/changelog 2010-03-31 15:31:56.000000000 +0200 +++ macutils-2.0b3/debian/changelog 2018-07-10 21:24:08.000000000 +0200 @@ -1,3 +1,13 @@ +macutils (2.0b3-16.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + cross.patch: build all of crc/makecrc with the build architecture + compiler. + + -- Helmut Grohne <[email protected]> Tue, 10 Jul 2018 21:24:08 +0200 + macutils (2.0b3-16) unstable; urgency=low * Upgrade standards diff --minimal -Nru macutils-2.0b3/debian/control macutils-2.0b3/debian/control --- macutils-2.0b3/debian/control 2010-03-31 16:28:44.000000000 +0200 +++ macutils-2.0b3/debian/control 2018-07-10 21:24:05.000000000 +0200 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Eric Sharkey <[email protected]> Standards-Version: 3.8.4.0 -Build-Depends: debhelper (>= 6.0.0) +Build-Depends: debhelper (>= 7~) Package: macutils Architecture: any diff --minimal -Nru macutils-2.0b3/debian/patches/cross.patch macutils-2.0b3/debian/patches/cross.patch --- macutils-2.0b3/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ macutils-2.0b3/debian/patches/cross.patch 2018-07-10 21:24:08.000000000 +0200 @@ -0,0 +1,13 @@ +--- macutils-2.0b3.orig/crc/makefile ++++ macutils-2.0b3/crc/makefile +@@ -15,8 +15,8 @@ + $(CRCC): makecrc + ./makecrc + +-makecrc: makecrc.o +- cc -O -o makecrc makecrc.o ++makecrc: makecrc.c ++ cc -O -o makecrc makecrc.c + + arc.o: arc.c + ccitt.o: ccitt.c diff --minimal -Nru macutils-2.0b3/debian/patches/series macutils-2.0b3/debian/patches/series --- macutils-2.0b3/debian/patches/series 2010-03-31 16:29:07.000000000 +0200 +++ macutils-2.0b3/debian/patches/series 2018-07-10 21:24:08.000000000 +0200 @@ -1 +1,2 @@ debian-changes-2.0b3-16 +cross.patch diff --minimal -Nru macutils-2.0b3/debian/rules macutils-2.0b3/debian/rules --- macutils-2.0b3/debian/rules 2006-03-20 16:53:19.000000000 +0100 +++ macutils-2.0b3/debian/rules 2018-07-10 21:23:52.000000000 +0200 @@ -17,7 +17,7 @@ build: dh_testdir - make + dh_auto_build touch stamp-build clean:

