Bug#911163: cmus FTCBFS: configures for the build architecture

Helmut Grohne helmut at subdivi.de
Tue Oct 16 17:02:11 BST 2018


Source: cmus
Version: 2.7.1+git20160225-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

cmus fails to cross build from source, because it configures for the
wrong architecture. The configure script advises that one should export
CROSS for cross compilation. Additionally, PKG_CONFIG is needed on
Debian. The attached patch implements that and makes cmus cross
buildable. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru cmus-2.7.1+git20160225/debian/changelog cmus-2.7.1+git20160225/debian/changelog
--- cmus-2.7.1+git20160225/debian/changelog	2018-05-17 12:34:35.000000000 +0200
+++ cmus-2.7.1+git20160225/debian/changelog	2018-10-16 16:54:17.000000000 +0200
@@ -1,3 +1,10 @@
+cmus (2.7.1+git20160225-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Supply a cross environment to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 16 Oct 2018 16:54:17 +0200
+
 cmus (2.7.1+git20160225-2) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru cmus-2.7.1+git20160225/debian/rules cmus-2.7.1+git20160225/debian/rules
--- cmus-2.7.1+git20160225/debian/rules	2018-05-17 11:10:59.000000000 +0200
+++ cmus-2.7.1+git20160225/debian/rules	2018-10-16 16:54:17.000000000 +0200
@@ -1,6 +1,11 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+include /usr/share/dpkg/architecture.mk
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+CROSS = CROSS=$(DEB_HOST_GNU_TYPE)- PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
+endif
+
 LDFLAGS+=-Wl,--as-needed
 CFLAGS+=-I/usr/include/ncursesw
 
@@ -13,7 +18,7 @@
 	dh $@ --with bash-completion
 
 override_dh_auto_configure:
-	./configure \
+	$(CROSS) ./configure \
 		prefix=/usr \
 		CONFIG_ARTS=n \
 		DEBUG=0


More information about the pkg-multimedia-maintainers mailing list