Bug#865743: alsaequal FTCBFS: uses the build architecture compiler as linker

Helmut Grohne helmut at subdivi.de
Sat Jun 24 12:17:22 UTC 2017


Source: alsaequal
Version: 0.6-7
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

alsaequal fails to cross build from source, because it uses the build
architecture compiler "gcc" as linker "$(LD)". dh_auto_build already
passes a cross compiler for $(CC), but the linking step fails. Since
$(LD) sometimes needs to be $(CC) and at other times $(CXX),
dh_auto_build cannot supply it. After adding the assignment, alsaequal
cross builds successfully. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru alsaequal-0.6/debian/changelog alsaequal-0.6/debian/changelog
--- alsaequal-0.6/debian/changelog	2016-12-12 08:34:48.000000000 +0100
+++ alsaequal-0.6/debian/changelog	2017-06-24 14:13:47.000000000 +0200
@@ -1,3 +1,10 @@
+alsaequal (0.6-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Force using $(CC) as $(LD). (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 24 Jun 2017 14:13:47 +0200
+
 alsaequal (0.6-7) unstable; urgency=medium
 
   * Remove myself from the uploaders list.
diff --minimal -Nru alsaequal-0.6/debian/rules alsaequal-0.6/debian/rules
--- alsaequal-0.6/debian/rules	2016-01-22 23:24:54.000000000 +0100
+++ alsaequal-0.6/debian/rules	2017-06-24 14:13:44.000000000 +0200
@@ -12,6 +12,9 @@
 override_dh_clean:
 	dh_clean -XMakefile~
 
+override_dh_auto_build:
+	dh_auto_build -- LD='$$(CC)'
+
 override_dh_auto_install:
 	make install LIBDIR=$(LIBDIR) DESTDIR=debian/libasound2-plugin-equal
 	dh_install --sourcedir=debian/config equal.conf \


More information about the pkg-multimedia-maintainers mailing list