Bug#954749: cmus FTCBFS: build/host confusion
Source: cmus
Version: 2.8.0-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
cmus fails to cross build from source for e.g. mipsel, because it fails
finding atomic symbols. The relevant LDLIBS does not contain -latomic,
because debian/rules confuses build and host. Please refer to man
dpkg-architecture for a definition of these terms. Please consider
applying the attached patch.
Helmut
diff --minimal -Nru cmus-2.8.0/debian/changelog cmus-2.8.0/debian/changelog
--- cmus-2.8.0/debian/changelog 2019-09-07 16:37:13.000000000 +0200
+++ cmus-2.8.0/debian/changelog 2020-03-22 20:13:13.000000000 +0100
@@ -1,3 +1,10 @@
+cmus (2.8.0-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Fix build/host confusion. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sun, 22 Mar 2020 20:13:13 +0100
+
cmus (2.8.0-2) unstable; urgency=medium
* Set build flags via /usr/share/dpkg/buildflags.mk
diff --minimal -Nru cmus-2.8.0/debian/rules cmus-2.8.0/debian/rules
--- cmus-2.8.0/debian/rules 2019-09-07 16:35:33.000000000 +0200
+++ cmus-2.8.0/debian/rules 2020-03-22 20:13:12.000000000 +0100
@@ -11,7 +11,7 @@
# ./track_info.c:47: undefined reference to `__atomic_fetch_add_8'
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935678
# Depends on 13-atomic_ld.patch
-ifneq (,$(findstring $(DEB_BUILD_ARCH), armel m68k mipsel powerpc sh4))
+ifneq (,$(findstring $(DEB_HOST_ARCH), armel m68k mipsel powerpc sh4))
export LDLIBS += -latomic
endif
diff --minimal -Nru cmus-2.8.0/debian/changelog cmus-2.8.0/debian/changelog
--- cmus-2.8.0/debian/changelog 2019-09-07 16:37:13.000000000 +0200
+++ cmus-2.8.0/debian/changelog 2020-03-22 20:13:13.000000000 +0100
@@ -1,3 +1,10 @@
+cmus (2.8.0-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Fix build/host confusion. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sun, 22 Mar 2020 20:13:13 +0100
+
cmus (2.8.0-2) unstable; urgency=medium
* Set build flags via /usr/share/dpkg/buildflags.mk
diff --minimal -Nru cmus-2.8.0/debian/rules cmus-2.8.0/debian/rules
--- cmus-2.8.0/debian/rules 2019-09-07 16:35:33.000000000 +0200
+++ cmus-2.8.0/debian/rules 2020-03-22 20:13:12.000000000 +0100
@@ -11,7 +11,7 @@
# ./track_info.c:47: undefined reference to `__atomic_fetch_add_8'
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935678
# Depends on 13-atomic_ld.patch
-ifneq (,$(findstring $(DEB_BUILD_ARCH), armel m68k mipsel powerpc sh4))
+ifneq (,$(findstring $(DEB_HOST_ARCH), armel m68k mipsel powerpc sh4))
export LDLIBS += -latomic
endif
Reply to: