Bug#922521: flake FTCBFS: performs a native build

Helmut Grohne helmut at subdivi.de
Sun Feb 17 17:07:06 GMT 2019


Source: flake
Version: 0.11-3
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

flake fails to cross build from source, because it performs a native
build. To perform a cross build, one has to supply --cc=... and
--cross-compile. After doing so, flake cross builds successfully. Please
consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru flake-0.11/debian/changelog flake-0.11/debian/changelog
--- flake-0.11/debian/changelog	2017-03-05 13:42:48.000000000 +0100
+++ flake-0.11/debian/changelog	2019-02-17 18:03:15.000000000 +0100
@@ -1,3 +1,10 @@
+flake (0.11-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --cc and --cross-compile to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 17 Feb 2019 18:03:15 +0100
+
 flake (0.11-3) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru flake-0.11/debian/rules flake-0.11/debian/rules
--- flake-0.11/debian/rules	2017-03-05 13:28:38.000000000 +0100
+++ flake-0.11/debian/rules	2019-02-17 18:03:15.000000000 +0100
@@ -1,10 +1,13 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
+
 %:
 	dh $@ --no-parallel
 
 override_dh_auto_configure:
-	CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --cpu=$(DEB_HOST_ARCH) --disable-strip --prefix=/usr
+	CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --cpu=$(DEB_HOST_ARCH) --cc=$(CC) $(if $(filter $(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)),,--cross-compile) --disable-strip --prefix=/usr
 
 override_dh_auto_install:
 	DESTDIR=$(CURDIR)/debian/flake $(MAKE) install-progs


More information about the pkg-multimedia-maintainers mailing list