Source: mppenc Version: 1.16-1.1 Tags: patch User: [email protected] Usertags: rebootstrap
mppenc fails to cross build from source, because it uses the build architecture compiler. Fortunately, dh_auto_configure knows how to pass cross compilers for the cmake build system, so indirecting the cmake invocation through dh_auto_configure makes cross builds work. Please consider applying the attached patch. Helmut
diff --minimal -Nru mppenc-1.16/debian/changelog mppenc-1.16/debian/changelog --- mppenc-1.16/debian/changelog 2012-04-08 22:06:40.000000000 +0200 +++ mppenc-1.16/debian/changelog 2017-01-28 22:14:57.000000000 +0100 @@ -1,3 +1,10 @@ +mppenc (1.16-1.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass cross compilers. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Sat, 28 Jan 2017 22:14:57 +0100 + mppenc (1.16-1.1) unstable; urgency=low * Non-maintainer upload. diff --minimal -Nru mppenc-1.16/debian/control mppenc-1.16/debian/control --- mppenc-1.16/debian/control 2012-04-08 22:03:08.000000000 +0200 +++ mppenc-1.16/debian/control 2017-01-28 22:14:13.000000000 +0100 @@ -2,7 +2,7 @@ Section: sound Priority: optional Maintainer: Jorge Salamero Sanz <[email protected]> -Build-Depends: debhelper (>= 5), cmake +Build-Depends: debhelper (>= 7), cmake Standards-Version: 3.7.2 Package: mppenc diff --minimal -Nru mppenc-1.16/debian/rules mppenc-1.16/debian/rules --- mppenc-1.16/debian/rules 2012-04-08 22:03:08.000000000 +0200 +++ mppenc-1.16/debian/rules 2017-01-28 22:14:57.000000000 +0100 @@ -15,8 +15,8 @@ configure-stamp: dh_testdir - mkdir -p build - cd build && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/mppenc/usr \ + dh_auto_configure --builddirectory=build -- \ + -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/mppenc/usr \ -DCMAKE_CXX_FLAGS="$(CFLAGS)" -DCMAKE_C_FLAGS="$(CFLAGS)" \ -DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,defs" ../

