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

Bug#960295: ltpanel FTCBFS: uses the build architecture compiler



Source: ltpanel
Version: 0.2-6
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

ltpanel fails to cross build from source, because debian/rules hard
codes the build architecture compiler "gcc". Please consider applying
the attached patch to use the host architecture compiler, e.g. by
letting dpkg's buildtools.mk initialize the CC variable.

Helmut
diff --minimal -Nru ltpanel-0.2/debian/changelog ltpanel-0.2/debian/changelog
--- ltpanel-0.2/debian/changelog	2020-05-09 20:31:22.000000000 +0200
+++ ltpanel-0.2/debian/changelog	2020-05-11 16:57:48.000000000 +0200
@@ -1,3 +1,9 @@
+ltpanel (0.2-7) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Seed C compiler from dpkg's buildtools.mk. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Mon, 11 May 2020 16:57:48 +0200
+
 ltpanel (0.2-6) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru ltpanel-0.2/debian/rules ltpanel-0.2/debian/rules
--- ltpanel-0.2/debian/rules	2012-03-23 18:43:17.000000000 +0100
+++ ltpanel-0.2/debian/rules	2020-05-11 16:57:46.000000000 +0200
@@ -6,9 +6,11 @@
 export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+-include /usr/share/dpkg/buildtools.mk
+
 override_dh_auto_build:
 	# There is no other place where to inject additional flags but CC
-	$(MAKE) -C src CC="gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"
+	$(MAKE) -C src CC="$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"
 
 override_dh_auto_clean:
 	$(MAKE) -C src clean

Reply to: