Control: reopen -1 On Tue, Sep 30, 2025 at 12:21:06AM +0000, Debian Bug Tracking System wrote: > diff --minimal -Nru dovecot-2.3.13+dfsg1/debian/rules > dovecot-2.3.13+dfsg1/debian/rules > --- dovecot-2.3.13+dfsg1/debian/rules 2021-01-26 00:38:17.000000000 +0100 > +++ dovecot-2.3.13+dfsg1/debian/rules 2021-03-01 17:26:09.000000000 +0100 > @@ -16,6 +16,7 @@ > # Ensure that stacktrace generation works: > export DEB_LDFLAGS_MAINT_APPEND = -rdynamic > include /usr/share/dpkg/architecture.mk > +-include /usr/share/dpkg/buildtools.mk > ifneq ($(filter armel armhf, $(DEB_HOST_ARCH)),) > export DEB_CFLAGS_MAINT_APPEND = -funwind-tables > endif
This half of the patch has not be applied. As a result, the CC variable defaults to "cc" being the build architecture compiler. Note that buildtools.mk is available even in bullseye, so you can drop the dash that makes the inclusion tolerate absence. > @@ -93,7 +94,7 @@ > dh_autoreconf debian/autogen.sh > > override_dh_auto_configure: > - KRB5CONFIG=krb5-config.mit dh_auto_configure -- \ > + CC='$(CC)' KRB5CONFIG=krb5-config.mit dh_auto_configure -- \ > --with-ldap=plugin \ > --with-ssl=openssl \ > --with-sql=plugin \ This has been applied. The effect now is that cross builds use the build architecture compiler and that breaks everything (for cross builds only). Helmut

