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

Bug#941679: snarf FTCBFS: configures for the build architecture



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

snarf fails to cross build from source, because it configures for the
build architecture. Usually, this is solved by passing a --host switch
(and this is what dh_auto_configure does automatically). Unfortunately,
snarf's configure is too old to understand that. Instead, one is
supposed to export a cross compiler in CC. Please consider applying the
attached patch.

Helmut
diff -u snarf-7.0/debian/changelog snarf-7.0/debian/changelog
--- snarf-7.0/debian/changelog
+++ snarf-7.0/debian/changelog
@@ -1,3 +1,9 @@
+snarf (7.0-7) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Export CC for ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Thu, 03 Oct 2019 20:19:28 +0200
+
 snarf (7.0-6) unstable; urgency=medium
 
   * QA upload.
diff -u snarf-7.0/debian/rules snarf-7.0/debian/rules
--- snarf-7.0/debian/rules
+++ snarf-7.0/debian/rules
@@ -2,6 +2,8 @@
 
 export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+-include /usr/share/dpkg/buildtools.mk
+export CC
 
 clean:
 	dh_testdir

Reply to: