Source: openh264 Version: 2.2.0+dfsg-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
openh264 fails to cross build from source. It really does very much right. dh_auto_build passes cross tools to make. Passing ARCH= helps a lot. Also passing OS might be an improvement when building for non-Linux. Usually though the build step succeeds. What fails is make install, because dh_auto_install does not pass cross tools and make install then proceeds to rebuild some files with the build architecture compiler. An easy way to fix that is letting dpkg's buildtools.mk supply them via the environment for all targets. Doing so makes openh264 cross buildable. Please consider applying the attached patch. Helmut
diff --minimal -Nru openh264-2.2.0+dfsg/debian/changelog openh264-2.2.0+dfsg/debian/changelog --- openh264-2.2.0+dfsg/debian/changelog 2022-02-04 15:50:23.000000000 +0100 +++ openh264-2.2.0+dfsg/debian/changelog 2022-02-23 07:15:26.000000000 +0100 @@ -1,3 +1,10 @@ +openh264 (2.2.0+dfsg-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Also supply build tools to make install. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 23 Feb 2022 07:15:26 +0100 + openh264 (2.2.0+dfsg-1) unstable; urgency=medium * New upstream version 2.2.0+dfsg diff --minimal -Nru openh264-2.2.0+dfsg/debian/rules openh264-2.2.0+dfsg/debian/rules --- openh264-2.2.0+dfsg/debian/rules 2022-02-04 15:32:31.000000000 +0100 +++ openh264-2.2.0+dfsg/debian/rules 2022-02-23 07:15:25.000000000 +0100 @@ -4,6 +4,9 @@ CFLAGS=$(shell dpkg-buildflags --get CFLAGS) CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS) +DPKG_EXPORT_BUILDTOOLS=1 +-include /usr/share/dpkg/buildtools.mk + %: dh $@