Source: skktools
Version: 1.3.4-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

skktools fails to cross build from source, because it does not pass
--host to ./configure. The easiest way of doing so - using
dh_auto_configure - does not work here, because the configure script
does not understand --runstatedir. Therefore, one has to add --host
manually. Please consider applying the attached patch.

Helmut
diff --minimal -Nru skktools-1.3.4/debian/changelog 
skktools-1.3.4/debian/changelog
--- skktools-1.3.4/debian/changelog     2018-08-09 16:23:18.000000000 +0200
+++ skktools-1.3.4/debian/changelog     2020-04-15 09:37:49.000000000 +0200
@@ -1,3 +1,10 @@
+skktools (1.3.4-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --host to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 15 Apr 2020 09:37:49 +0200
+
 skktools (1.3.4-1) unstable; urgency=medium
 
   * New upstream version 1.3.4
diff --minimal -Nru skktools-1.3.4/debian/rules skktools-1.3.4/debian/rules
--- skktools-1.3.4/debian/rules 2018-01-23 15:51:40.000000000 +0100
+++ skktools-1.3.4/debian/rules 2020-04-15 09:37:49.000000000 +0200
@@ -2,6 +2,8 @@
 
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/architecture.mk
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS) 
dpkg-buildflags
 CFLAGS=$(shell $(dpkg_buildflags) --get CFLAGS)
@@ -14,7 +16,7 @@
 build-arch-stamp:
        dh_testdir
        dh_update_autotools_config
-       CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure 
--prefix=/usr
+       CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure 
--prefix=/usr --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
        $(MAKE)
        touch $@
 

Reply via email to