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

Bug#909129: gkermit FTCBFS: does not pass cross tools to make



Source: gkermit
Version: 1.0-10
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

gkermit fails to cross build from source, because it does not pass cross
tools to make. The simplest way to fix that is using dh_auto_build. When
doing so, it fails to cross build with an Exec format error while
running ./gwart. It turns out that gwart is a build tool and needs to be
built for the build architecture. The attached patch takes care of that
and makes gkermit cross buildable. Please consider applying it.

Helmut
diff -u gkermit-1.0/debian/changelog gkermit-1.0/debian/changelog
--- gkermit-1.0/debian/changelog
+++ gkermit-1.0/debian/changelog
@@ -1,3 +1,12 @@
+gkermit (1.0-10.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Build the gwart tool for the build architecture.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Tue, 18 Sep 2018 20:41:14 +0200
+
 gkermit (1.0-10) unstable; urgency=medium
 
   * QA upload
diff -u gkermit-1.0/debian/rules gkermit-1.0/debian/rules
--- gkermit-1.0/debian/rules
+++ gkermit-1.0/debian/rules
@@ -6,15 +6,14 @@
 #export DH_VERBOSE=1
 
 # Include dpatch stuff.
+include /usr/share/dpkg/architecture.mk
 include /usr/share/dpatch/dpatch.make
 
 build: patch build-stamp
 build-stamp:
 	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE) 
-
+	dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build -- gwart
+	dh_auto_build
 	touch build-stamp
 
 clean: unpatch

Reply to: