[Debichem-devel] Bug#872431: garlic FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Thu Aug 17 11:27:22 UTC 2017


Source: garlic
Version: 1.6-1.1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

garlic fails to cross build from source, because it uses the build
architecture compiler (as a GNU make default). After wrapping up the
make invocation in dh_auto_build, garlic cross builds successfully,
because dh_auto_build passes cross compilers to make. Please consider
applying the attached patch.

Helmut
-------------- next part --------------
diff -u garlic-1.6/debian/rules garlic-1.6/debian/rules
--- garlic-1.6/debian/rules
+++ garlic-1.6/debian/rules
@@ -8,7 +8,7 @@
 
 build: build-arch
 build-arch:
-	$(MAKE) CCOPT="$(CFLAGS)"
+	dh_auto_build -- CCOPT="$(CFLAGS)"
 	cp .garlicrc garlicrc
 
 clean::
diff -u garlic-1.6/debian/control garlic-1.6/debian/control
--- garlic-1.6/debian/control
+++ garlic-1.6/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debichem Team <debichem-devel at lists.alioth.debian.org>
 Uploaders: Michael Banck <mbanck at debian.org>
-Build-Depends: debhelper (>> 5), cdbs, libx11-dev
+Build-Depends: debhelper (>= 7), cdbs, libx11-dev
 Standards-Version: 3.7.3
 Homepage: http://www.zucic.org/garlic/
 Vcs-Browser: http://svn.debian.org/wsvn/debichem/
diff -u garlic-1.6/debian/changelog garlic-1.6/debian/changelog
--- garlic-1.6/debian/changelog
+++ garlic-1.6/debian/changelog
@@ -1,3 +1,10 @@
+garlic (1.6-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers to make (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 17 Aug 2017 13:24:00 +0200
+
 garlic (1.6-1.1) unstable; urgency=low
 
   * Non-maintainer upload.


More information about the Debichem-devel mailing list