Source: portmidi Version: 1:217-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
portmidi fails to cross build from source, because it uses the build architecture toolchain. Switching the explicit cmake and make invocations to dh_auto_* solves this problem, because debhelper's cmake build system knows how to cross compile. Please consider applying the attached patch. I note that it also switches portmidi to out-of-tree builds. Helmut
diff --minimal -Nru portmidi-217/debian/changelog portmidi-217/debian/changelog --- portmidi-217/debian/changelog 2016-11-14 18:02:24.000000000 +0100 +++ portmidi-217/debian/changelog 2016-11-26 21:47:49.000000000 +0100 @@ -1,3 +1,10 @@ +portmidi (1:217-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_* pass cross tools (closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 26 Nov 2016 21:47:49 +0100 + portmidi (1:217-4) unstable; urgency=medium * debian/control: switch Architecture to linux-any (closes: #654187) diff --minimal -Nru portmidi-217/debian/rules portmidi-217/debian/rules --- portmidi-217/debian/rules 2016-11-14 17:58:26.000000000 +0100 +++ portmidi-217/debian/rules 2016-11-26 21:47:47.000000000 +0100 @@ -9,7 +9,7 @@ dh $@ override_dh_auto_configure: - cmake \ + dh_auto_configure -- \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=$(CURDIR)/Release \ -DCMAKE_BUILD_TYPE=Release \ @@ -19,7 +19,7 @@ $(CURDIR) override_dh_auto_build: - $(MAKE) DESTDIR=$(CURDIR)/debian/tmp VERBOSE=1 + dh_auto_build -- DESTDIR=$(CURDIR)/debian/tmp VERBOSE=1 override_dh_auto_clean: [ ! -f Makefile ] || make clean VERBOSE=1 @@ -31,7 +31,7 @@ override_dh_auto_install: # do not ship executables c files chmod a-x $(CURDIR)/pm_test/*.c $(CURDIR)/pm_common/*.h - $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install VERBOSE=1 + dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp install VERBOSE=1 dh_install --sourcedir=$(CURDIR)/debian/tmp override_dh_compress: