Bug#960817: yiyantang FTCBFS: builds for the build architecture

2020-05-17 Thread atzlinux 肖盛文
control: tags 960817 + fixed pending

Hi Helmut,

    Thanks for your patch.

I'd applied the patch and uploaded the new package to the mentors.

https://mentors.debian.net/package/yiyantang


在 2020/5/17 下午12:48, Helmut Grohne 写道:
> 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

-- 
肖盛文 Faris Xiao
微信:atzlinux
QQ:909868357
铜豌豆 Linux 
基于 Debian 的 Linux 中文桌面操作系统:https://www.atzlinux.com




signature.asc
Description: OpenPGP digital signature


Bug#960817: yiyantang FTCBFS: builds for the build architecture

2020-05-16 Thread Helmut Grohne
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