Source: codec2 Version: 0.9.2-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
codec2 fails to cross build from source, because it does not pass cross flags to cmake. It actually has two cmake invocations - one via dh_auto_configure and another direct one. Only the latter fails. Also wrapping it in dh_auto_configure makes codec2 cross buildable. Please consider applying the attached patch. Also note that repeating e.g. --buildsystem=cmake is unnecessary in general as it is passed to the main dh invocation. It can be dropped everywhere if you are interested in conciseness. Helmut
diff --minimal -Nru codec2-0.9.2/debian/changelog codec2-0.9.2/debian/changelog --- codec2-0.9.2/debian/changelog 2019-12-22 18:12:40.000000000 +0100 +++ codec2-0.9.2/debian/changelog 2020-08-16 06:44:28.000000000 +0200 @@ -1,3 +1,10 @@ +codec2 (0.9.2-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass cross flags to cmake. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 16 Aug 2020 06:44:28 +0200 + codec2 (0.9.2-2) unstable; urgency=medium * Upload to unstable diff --minimal -Nru codec2-0.9.2/debian/rules codec2-0.9.2/debian/rules --- codec2-0.9.2/debian/rules 2019-11-17 23:31:01.000000000 +0100 +++ codec2-0.9.2/debian/rules 2020-08-16 06:44:18.000000000 +0200 @@ -11,8 +11,8 @@ override_dh_auto_build: dh_auto_build --builddirectory=Build --buildsystem=cmake - mkdir Build/lpcnet-build - cd Build/lpcnet-build && cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DDISABLE_CPU_OPTIMIZATION=ON -DCODEC2_BUILD_DIR=$(CURDIR)/Build ../../lpcnet + dh_auto_configure --builddirectory=Build/lpcnet-build --sourcedirectory=lpcnet -- \ + -DCMAKE_VERBOSE_MAKEFILE=ON -DDISABLE_CPU_OPTIMIZATION=ON -DCODEC2_BUILD_DIR=$(CURDIR)/Build cd Build/lpcnet-build && cmake --build . cd Build && cmake -DLPCNET_BUILD_DIR=lpcnet-build .. cd Build && cmake --build .