Source: gpac Version: 0.5.2-426-gc5ad4e4+dfsg5-5 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
gpac fails to cross build from source, because its ./configure does not understand the --host flag passed by dh_auto_configure. It ignores unknown flags and performs a build for the build architecture. The way to tell gpac's ./configure is --cross-prefix. Please consider applying the attached patch. Also consider cleaning up the mess around DEB_EXTRA_CONFIGURE_FLAGS vs DEB_CONFIGURE_EXTRA_FLAGS. Very confusing. Helmut
diff --minimal -Nru gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/changelog gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/changelog --- gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/changelog 2019-04-13 22:41:15.000000000 +0200 +++ gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/changelog 2019-11-19 06:31:30.000000000 +0100 @@ -1,3 +1,10 @@ +gpac (0.5.2-426-gc5ad4e4+dfsg5-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass --cross-prefix to ./configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 19 Nov 2019 06:31:30 +0100 + gpac (0.5.2-426-gc5ad4e4+dfsg5-5) unstable; urgency=medium [ Moritz Muehlenhoff ] diff --minimal -Nru gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/rules gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/rules --- gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/rules 2019-04-13 22:41:15.000000000 +0200 +++ gpac-0.5.2-426-gc5ad4e4+dfsg5/debian/rules 2019-11-19 06:31:30.000000000 +0100 @@ -9,9 +9,12 @@ DEB_CONFIGURE_EXTRA_FLAGS = --disable-opt endif -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH +include /usr/share/dpkg/architecture.mk DEB_CFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS) DEB_LDFLAGS ?= $(shell dpkg-buildflags --get LDFLAGS) +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +DEB_EXTRA_CONFIGURE_FLAGS += --cross-prefix=${DEB_HOST_GNU_TYPE}- +endif %: dh $@ --parallel