Source: ncc Version: 2.8-5 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
ncc fails to cross build from source, because it does not pass cross tools to make. The easiest way to fix that is using dh_auto_build. Unfortunately, it doesn't quite work here that way, because ncc stores the C++ compiler in CC while dh_auto_build passes a C compiler there. Renaming the variable is required here. Please consider applying the attached patch. Helmut
diff --minimal -Nru ncc-2.8/debian/changelog ncc-2.8/debian/changelog --- ncc-2.8/debian/changelog 2019-10-22 23:53:45.000000000 +0200 +++ ncc-2.8/debian/changelog 2019-10-25 06:09:42.000000000 +0200 @@ -1,3 +1,11 @@ +ncc (2.8-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross tools to make and pass a + C++ compiler via CC. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 25 Oct 2019 06:09:42 +0200 + ncc (2.8-5) unstable; urgency=medium * Bumped up standards version, compat diff --minimal -Nru ncc-2.8/debian/rules ncc-2.8/debian/rules --- ncc-2.8/debian/rules 2019-10-22 23:53:45.000000000 +0200 +++ ncc-2.8/debian/rules 2019-10-25 06:09:42.000000000 +0200 @@ -16,7 +16,7 @@ build-stamp: configure-stamp dh_testdir [ -e objdir ] || mkdir objdir - $(MAKE) + dh_auto_build -- 'CC=$$(CXX)' touch build-stamp clean: