Bug#928267: comptty FTCBFS: does not pass --host to ./configure
Source: comptty
Version: 1.0.1-3
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
comptty fails to cross build from source, because its ./configure
invocation lacks --host. It also hard codes amd64 values in a few
places. The attached patch fixes both and makes comptty cross buildable.
Please consider applying it.
Helmut
diff --minimal -Nru comptty-1.0.1/debian/changelog comptty-1.0.1/debian/changelog
--- comptty-1.0.1/debian/changelog 2018-08-14 14:34:44.000000000 +0200
+++ comptty-1.0.1/debian/changelog 2019-04-30 22:07:25.000000000 +0200
@@ -1,3 +1,11 @@
+comptty (1.0.1-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Interpolate architectures in override_dh_auto_configure.
+ (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Tue, 30 Apr 2019 22:07:25 +0200
+
comptty (1.0.1-3) unstable; urgency=medium
* Updates Standards-Version to 4.2.0
diff --minimal -Nru comptty-1.0.1/debian/rules comptty-1.0.1/debian/rules
--- comptty-1.0.1/debian/rules 2018-08-14 00:10:02.000000000 +0200
+++ comptty-1.0.1/debian/rules 2019-04-30 22:07:24.000000000 +0200
@@ -1,8 +1,10 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+-include /usr/share/dpkg/architecture.mk
+
%:
dh $@ --without autoreconf
override_dh_auto_configure:
- ./configure --disable-option-checking --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking
+ ./configure --disable-option-checking --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/$(DEB_HOST_MULTIARCH) --libexecdir=\${prefix}/lib/$(DEB_HOST_MULTIARCH) --disable-maintainer-mode --disable-dependency-tracking --host=$(DEB_HOST_GNU_TYPE)
Reply to: