Source: pmccabe Version: 2.6 Tags: patch User: [email protected] Usertags: ftcbfs
pmccabe fails to cross build from source, because it does not pass cross tools to make. The easiest way of doing so is using dh_auto_build. However, the default target of pmccabe includes its testsuite. That happens to (expectedly) fail during cross building. Tests should not be run when passing DEB_BUILD_OPTIONS=nocheck. Therefore the make targets should be selected explicitly. Please consider applying the attached patch. Helmut
diff --minimal -Nru pmccabe-2.6/debian/changelog pmccabe-2.6+nmu1/debian/changelog --- pmccabe-2.6/debian/changelog 2010-08-06 20:31:24.000000000 +0200 +++ pmccabe-2.6+nmu1/debian/changelog 2020-01-04 13:16:34.000000000 +0100 @@ -1,3 +1,12 @@ +pmccabe (2.6+nmu1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Specify targets to dh_auto_build as it defaults to including tests. + + -- Helmut Grohne <[email protected]> Sat, 04 Jan 2020 13:16:34 +0100 + pmccabe (2.6) unstable; urgency=low * From Ubuntu: diff --minimal -Nru pmccabe-2.6/debian/control pmccabe-2.6+nmu1/debian/control --- pmccabe-2.6/debian/control 2010-08-06 20:31:24.000000000 +0200 +++ pmccabe-2.6+nmu1/debian/control 2020-01-04 13:16:32.000000000 +0100 @@ -2,7 +2,7 @@ Section: devel Priority: optional Maintainer: Paul Bame <[email protected]> -Build-Depends: debhelper (>> 5.0.0) +Build-Depends: debhelper (>= 7) Standards-Version: 3.9.1 Package: pmccabe diff --minimal -Nru pmccabe-2.6/debian/rules pmccabe-2.6+nmu1/debian/rules --- pmccabe-2.6/debian/rules 2010-08-06 20:31:24.000000000 +0200 +++ pmccabe-2.6+nmu1/debian/rules 2020-01-04 13:16:34.000000000 +0100 @@ -27,9 +27,8 @@ build-arch: configure-stamp build-arch-stamp build-arch-stamp: dh_testdir - - $(MAKE) - + dh_auto_build -- codechanges pmccabe decomment vifn + dh_auto_test touch build-arch-stamp build-indep: configure-stamp build-indep-stamp

