Source: dovecot Version: 1:2.2.33.2-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
dovecot fails to cross build from source, because it configures for the build architecture by not passing any --host to ./configure. Deferring that task to dh_auto_configure is an easy solution. After doing so, dovecot cross builds successfully provided one sets a significant pile of autoconf cache variables for AC_RUN_IFELSE checks. Please consider applying the attached patch. Helmut
diff --minimal -Nru dovecot-2.2.33.2/debian/changelog dovecot-2.2.33.2/debian/changelog --- dovecot-2.2.33.2/debian/changelog 2017-11-11 19:59:43.000000000 +0100 +++ dovecot-2.2.33.2/debian/changelog 2017-12-30 11:58:13.000000000 +0100 @@ -1,3 +1,10 @@ +dovecot (1:2.2.33.2-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass --host to configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 30 Dec 2017 11:58:13 +0100 + dovecot (1:2.2.33.2-1) unstable; urgency=medium * [8216f38] New upstream version 2.2.33.2 diff --minimal -Nru dovecot-2.2.33.2/debian/rules dovecot-2.2.33.2/debian/rules --- dovecot-2.2.33.2/debian/rules 2017-10-13 15:27:39.000000000 +0200 +++ dovecot-2.2.33.2/debian/rules 2017-12-30 11:58:11.000000000 +0100 @@ -77,7 +77,7 @@ dh_autoreconf -- debian/autogen.sh override_dh_auto_configure: - KRB5CONFIG=krb5-config.mit ./configure \ + KRB5CONFIG=krb5-config.mit dh_auto_configure -- \ --with-ldap=plugin \ --with-ssl=openssl \ --with-sql=plugin \ @@ -90,12 +90,7 @@ --with-libwrap \ --with-lucene \ --with-lz4 \ - --prefix=/usr \ - --sysconfdir=/etc \ --libexecdir=\$${prefix}/lib \ - --localstatedir=/var \ - --mandir=\$${prefix}/share/man \ - --infodir=\$${prefix}/share/info \ --docdir=\$${prefix}/share/doc/dovecot-core \ --with-moduledir=\$${prefix}/lib/dovecot/modules \ --disable-rpath \ @@ -104,16 +99,12 @@ $(MAKE) dovecot-config # Pigeonhole - (cd $(PIGEONHOLE_DIR)/ && \ - touch stamp.h.in && \ - sh configure \ + touch $(PIGEONHOLE_DIR)/stamp.h.in + chmod +x $(PIGEONHOLE_DIR)/configure + dh_auto_configure -D $(PIGEONHOLE_DIR) -- \ --with-dovecot=../ \ - --prefix=/usr \ - --sysconfdir=/etc \ --libexecdir=\$${prefix}/lib \ - --mandir=\$${prefix}/share/man \ - --infodir=\$${prefix}/share/info \ - --disable-static) + --disable-static override_dh_auto_build: dh_auto_build --parallel