Bug#870514: simplescreenrecordr FTCBFS for !x86: confuses build/host arch
Helmut Grohne
helmut at subdivi.de
Wed Aug 2 18:46:11 UTC 2017
Source: simplescreenrecorder
Version: 0.3.8-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
simplescreenrecorder fails to cross build for e.g. arm64 when built on
amd64. debian/rules decides what configure flags to pass depending on
dpkg --print-architecture, which happens to be the architecture we are
building on, not the architecture we are building for. After changing
that to $(DEB_HOST_ARCH) it cross builds successfully (because it now
passes the right flags). Please consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru simplescreenrecorder-0.3.8/debian/changelog simplescreenrecorder-0.3.8/debian/changelog
--- simplescreenrecorder-0.3.8/debian/changelog 2016-12-17 10:03:07.000000000 +0100
+++ simplescreenrecorder-0.3.8/debian/changelog 2017-08-02 20:35:12.000000000 +0200
@@ -1,3 +1,10 @@
+simplescreenrecorder (0.3.8-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Clear build/host confusion (Closes: #-1).
+
+ -- Helmut Grohne <helmut at subdivi.de> Wed, 02 Aug 2017 20:35:12 +0200
+
simplescreenrecorder (0.3.8-2) unstable; urgency=low
* Team upload.
diff --minimal -Nru simplescreenrecorder-0.3.8/debian/rules simplescreenrecorder-0.3.8/debian/rules
--- simplescreenrecorder-0.3.8/debian/rules 2016-12-17 09:59:40.000000000 +0100
+++ simplescreenrecorder-0.3.8/debian/rules 2017-08-02 20:35:10.000000000 +0200
@@ -3,8 +3,6 @@
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
-ARCH = $(shell dpkg --print-architecture)
-
%:
dh $@ --parallel --with autotools-dev
@@ -15,7 +13,7 @@
# requires the x86-only elfhacks code (see README.source)
override_dh_auto_configure:
-ifeq ($(ARCH),$(filter $(ARCH),amd64 i386 hurd-i386 kfreebsd-amd64 kfreebsd-i386 x32))
+ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 hurd-i386 kfreebsd-amd64 kfreebsd-i386 x32))
dh_auto_configure -- \
--disable-assert
else
More information about the pkg-multimedia-maintainers
mailing list