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

Bug#934968: ng FTCBFS: configures for the build architecture



Source: ng
Version: 1.5~beta1-4
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

ng fails to cross build from source, because it configures for the build
architecture. Usually this is due to a missing --host flag and the
easiest way of supplying it is using dh_auto_configure. Unfortunately,
the ./configure of ng is too old to understand --host. Here we have to
supply a cross compiler in a CC variable. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru ng-1.5~beta1/debian/changelog ng-1.5~beta1/debian/changelog
--- ng-1.5~beta1/debian/changelog	2016-12-12 11:01:12.000000000 +0100
+++ ng-1.5~beta1/debian/changelog	2019-08-17 07:38:49.000000000 +0200
@@ -1,3 +1,9 @@
+ng (1.5~beta1-5) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply a CC. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 17 Aug 2019 07:38:49 +0200
+
 ng (1.5~beta1-4) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru ng-1.5~beta1/debian/rules ng-1.5~beta1/debian/rules
--- ng-1.5~beta1/debian/rules	2016-12-12 10:48:43.000000000 +0100
+++ ng-1.5~beta1/debian/rules	2019-08-17 07:38:47.000000000 +0200
@@ -6,6 +6,9 @@
 # architecture-dependant package, as well as an architecture-independent
 # package.
 
+-include /usr/share/dpkg/buildtools.mk
+export CC
+
 # Uncomment this to turn on verbose mode. 
 #export DH_VERBOSE=1
 

Reply to: