Source: mew Version: 1:6.8-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
mew fails to cross build from source, because it configures for the build architecture. Normally, I'd suggest using dh_auto_configure, but mew's ./configure doesn't like --runstatedir. So the attached patch opts for adding the necessary --build and --host options manually to make mew cross buildable. Please consider applying it. Helmut
diff --minimal -Nru mew-6.8/debian/changelog mew-6.8/debian/changelog --- mew-6.8/debian/changelog 2018-06-07 14:01:59.000000000 +0200 +++ mew-6.8/debian/changelog 2018-06-21 21:16:30.000000000 +0200 @@ -1,3 +1,10 @@ +mew (1:6.8-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass --host to ./configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 21 Jun 2018 21:16:30 +0200 + mew (1:6.8-1) unstable; urgency=medium * New upstream version 6.8 diff --minimal -Nru mew-6.8/debian/rules mew-6.8/debian/rules --- mew-6.8/debian/rules 2018-06-03 12:12:05.000000000 +0200 +++ mew-6.8/debian/rules 2018-06-21 21:16:29.000000000 +0200 @@ -8,6 +8,8 @@ PKGSNAME=mew CHG_SUFFIX=`test -f 00changes || ls -1 00changes.* | sed s/00changes// | sort -n -t . -k 2,2 -k 3 | tail -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) @@ -16,7 +18,7 @@ configure-stamp: configure dh_testdir - CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man + CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) grep '^Package: ' debian/control | head -1 | sed -e "s/^Package: //g" > debian/PACKAGE sed -e "s/@PACKAGE@/$(PACKAGE)/g" debian/README.Debian.in > debian/README.Debian sed -e "s/@PACKAGE@/$(PACKAGE)/g" debian/dirs.in > debian/dirs