Greetings!
This looks reasonable. Thanks for submitting the patch!
Later,
Mako
{"quotation": {"who": "Helmut Grohne", "date": "Thu, Feb 26, 2026 at 08:12:21PM
+0100"}}
> Source: mairix
> Version: 0.24-2
> Tags: patch
> User: [email protected]
> Usertags: ftcbfs
>
> mairix fails to cross build from source, because it builds for the build
> architecture. The configure invocation lacks any indication of what the
> host architecture is. Usually one would pass --host=..., but this
> configure is hand-written and does not accept that flag. Instead, it
> expects the CC variable to be suitably exported. Once doing so, it
> actually cross builds but the fails running the dfasyn tool. It is
> purely used during build and should be compiled with the build
> architecture compiler. Hence I propose to build it separately passing a
> different compiler. With both of these changes, mairix cross builds
> successfully. Please consider applying the attached patch.
>
> Helmut
> diff -Nru mairix-0.24/debian/changelog mairix-0.24/debian/changelog
> --- mairix-0.24/debian/changelog 2018-07-22 06:27:33.000000000 +0200
> +++ mairix-0.24/debian/changelog 2026-02-25 22:00:08.000000000 +0100
> @@ -1,3 +1,12 @@
> +mairix (0.24-2.1) UNRELEASED; urgency=medium
> +
> + * Non-maintainer upload.
> + * Fix FTCBFS: (Closes: #-1)
> + + Pass a cross CC to configure.
> + + Build the dfasyn directory for the build architecture.
> +
> + -- Helmut Grohne <[email protected]> Wed, 25 Feb 2026 22:00:08 +0100
> +
> mairix (0.24-2) unstable; urgency=medium
>
> * Remove myself from the Uploaders field.
> diff -Nru mairix-0.24/debian/rules mairix-0.24/debian/rules
> --- mairix-0.24/debian/rules 2018-07-22 06:21:03.000000000 +0200
> +++ mairix-0.24/debian/rules 2026-02-25 22:00:08.000000000 +0100
> @@ -2,13 +2,19 @@
>
> export DEB_BUILD_MAINT_OPTIONS = hardening=+all
>
> +include /usr/share/dpkg/buildtools.mk
> +
> %:
> dh $@
>
> override_dh_auto_configure:
> # The configure script is so old that it fails with the options
> # that dh_auto_configure feeds it...
> - ./configure --prefix=/usr --mandir=/usr/share/man
> + CC='$(CC)' ./configure --prefix=/usr --mandir=/usr/share/man
> +
> +override_dh_auto_build:
> + dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build
> --reload-all-buildenv-variables --sourcedirectory=dfasyn
> + dh_auto_build
>
> override_dh_auto_test:
> # The test suite depends on the English way to sort characters (it
--
Benjamin Mako Hill
https://mako.cc/