Source: yiyantang
Version: 0.7.0-7
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
yiyantag fails to cross build from source, becuase it configures for the
build architecture. Usually, fixing that requires passing --host, but in
this case ./configure is too old and needs environment variables such as
CC. A handy tool to export them is dpkg's buildtools.mk. While at it,
the attached patch also fixes the very strange argument to --build
passed to ./configure. Please consider applying it.
Helmut
diff --minimal -Nru yiyantang-0.7.0/debian/changelog
yiyantang-0.7.0/debian/changelog
--- yiyantang-0.7.0/debian/changelog2020-05-15 13:33:44.0 +0200
+++ yiyantang-0.7.0/debian/changelog2020-05-16 13:05:45.0 +0200
@@ -1,3 +1,12 @@
+yiyantang (0.7.0-7.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Let dpkg's buildtools.mk supply CC and friends to configure.
+(Closes: #-1)
+ * Also fix bad argument to --build.
+
+ -- Helmut Grohne Sat, 16 May 2020 13:05:45 +0200
+
yiyantang (0.7.0-7) unstable; urgency=medium
[ 肖盛文 ]
diff --minimal -Nru yiyantang-0.7.0/debian/rules yiyantang-0.7.0/debian/rules
--- yiyantang-0.7.0/debian/rules2020-05-15 13:28:27.0 +0200
+++ yiyantang-0.7.0/debian/rules2020-05-16 13:05:45.0 +0200
@@ -4,6 +4,9 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDTOOLS=1
+-include /usr/share/dpkg/buildtools.mk
+
PREFIX=/usr
%:
@@ -11,4 +14,4 @@
override_dh_auto_configure:
# There is no --runstatedir=/run in configure, so we do it manually
here.
- ./configure --build={DEB_HOST_MULTIARCH} --prefix=${PREFIX}
--includedir=${PREFIX}/include --mandir=${PREFIX}/share/man
--infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
--disable-silent-rules --libdir=${PREFIX}/lib/${DEB_HOST_MULTIARCH}
--disable-maintainer-mode --disable-dependency-tracking
+ ./configure --build=${DEB_BUILD_GNU_TYPE} --host=${DEB_HOST_GNU_TYPE}
--prefix=${PREFIX} --includedir=${PREFIX}/include --mandir=${PREFIX}/share/man
--infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
--disable-silent-rules --libdir=${PREFIX}/lib/${DEB_HOST_MULTIARCH}
--disable-maintainer-mode --disable-dependency-tracking