Bug#915545: aptsh FTCBFS: does not pass --host to ./configure
Source: aptsh
Version: 0.0.8
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
aptsh fails to cross build from source, because it does not pass --host
to ./configure. The easiest way of doing so is letting dh_auto_configure
do it. The attached patch does that and makes aptsh cross buildable.
Please consider applying it.
Helmut
diff --minimal -Nru aptsh-0.0.8/debian/changelog aptsh-0.0.8+nmu1/debian/changelog
--- aptsh-0.0.8/debian/changelog 2016-12-18 22:40:11.000000000 +0100
+++ aptsh-0.0.8+nmu1/debian/changelog 2018-12-04 06:21:49.000000000 +0100
@@ -1,3 +1,10 @@
+aptsh (0.0.8+nmu1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Let dh_auto_configure pass --host to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Tue, 04 Dec 2018 06:21:49 +0100
+
aptsh (0.0.8) unstable; urgency=medium
* QA upload
diff --minimal -Nru aptsh-0.0.8/debian/rules aptsh-0.0.8+nmu1/debian/rules
--- aptsh-0.0.8/debian/rules 2007-04-09 16:30:38.000000000 +0200
+++ aptsh-0.0.8+nmu1/debian/rules 2018-12-04 06:21:49.000000000 +0100
@@ -10,7 +10,7 @@
config.status: configure
dh_testdir
- CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+ CFLAGS="$(CFLAGS)" dh_auto_configure -- '--libexecdir=$${prefix}/lib/aptsh'
build: build-stamp
@@ -43,12 +43,6 @@
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/aptsh
-
- mkdir -p $(CURDIR)/debian/aptsh/usr/lib/aptsh/
- mv $(CURDIR)/debian/aptsh/usr/libexec/aptsh_ls $(CURDIR)/debian/aptsh/usr/lib/aptsh/
- mv $(CURDIR)/debian/aptsh/usr/libexec/aptsh_rls $(CURDIR)/debian/aptsh/usr/lib/aptsh/
- mv $(CURDIR)/debian/aptsh/usr/libexec/aptsh_printer $(CURDIR)/debian/aptsh/usr/lib/aptsh/
- rm -rf $(CURDIR)/debian/aptsh/usr/libexec
binary-indep: build install
Reply to: