[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#933081: dbar FTCBFS: hard codes gcc



Source: dbar
Version: 0.0.20100524-4
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

dbar fails to cross build from source, because debian/rules hard codes
plain gcc. The attached patch makes it cross buildable by supplying the
compiler from dpkg's buildtools.mk. Please consider applying the patch.

Helmut
diff --minimal -Nru dbar-0.0.20100524/debian/changelog dbar-0.0.20100524/debian/changelog
--- dbar-0.0.20100524/debian/changelog	2019-07-20 22:00:38.000000000 +0200
+++ dbar-0.0.20100524/debian/changelog	2019-07-26 15:29:20.000000000 +0200
@@ -1,3 +1,9 @@
+dbar (0.0.20100524-5) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply a C compiler. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Fri, 26 Jul 2019 15:29:20 +0200
+
 dbar (0.0.20100524-4) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru dbar-0.0.20100524/debian/rules dbar-0.0.20100524/debian/rules
--- dbar-0.0.20100524/debian/rules	2019-07-20 22:00:38.000000000 +0200
+++ dbar-0.0.20100524/debian/rules	2019-07-26 15:29:17.000000000 +0200
@@ -5,12 +5,13 @@
 export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
 export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+-include /usr/share/dpkg/buildtools.mk
 
 man:
 	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
 
 override_dh_auto_build: man
-	gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) *.c -o $(PACKAGE)
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) *.c -o $(PACKAGE)
 
 %:
 	dh  $@

Reply to: