#1119125 crossfire FTCBFS: multiple reasons

Package:
src:crossfire
Source:
src:crossfire
Submitter:
Helmut Grohne
Date:
2026-08-16 20:25:03 UTC
Severity:
normal
Tags:
#1119125#5
Date:
2025-10-15 08:18:33 UTC
From:
To:
crossfire fails to cross build from source for two distinct reasons.

The immediate failure arises from AC_CHECK_FILE. This macro is meant to
check for files on the host system, but a cross build has not access to
it. Therefore all uses of AC_CHECK_FILE fail unless the result is
seeded. crossfire uses it to check for files on the build system
however. It really should be using test -e instead.

The second problem resides in CF_CHECK_VISIBILITY. It uses AC_RUN_IFELSE
while having added -Werror to CFLAGS and removes -Werror in both the yes
and the no path. Unfortunately, the cross path does not remove -Werror
and from then on the compiler flags include -Werror breaking other
checks such as AC_CHECK_FUNCS for strdup. The easy path here is
restoring CFLAGS in the cross path, but the program under test always
returns 0, so running it isn't actually necessary. Turning it into
AC_LINK_IFELSE should be sufficient and completely removes the cross
code path.

Both changes are applicable upstream and benefit other distributions
such as PtxDist or Yocto. Please consider applying the patch attached
for your convenience.

Helmut

#1119125#10
Date:
2026-08-16 20:23:41 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
crossfire, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1119125@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <bage@debian.org> (supplier of updated crossfire package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 06 Aug 2026 21:37:25 +0200
Source: crossfire
Architecture: source
Version: 1.75.0-9.1
Distribution: unstable
Urgency: medium
Maintainer: Kari Pahula <kaol@debian.org>
Changed-By: Bastian Germann <bage@debian.org>
Closes: 1117613 1119125
Changes:
 crossfire (1.75.0-9.1) unstable; urgency=medium
 .
   * Non-maintainer upload
   * Move Vcs to debian namespace
   * Drop postinstall rules targeting ancient versions
   * Drop cfdb_convert script for databases from python2 era (Closes: #1117613)
   * Fix cross build (Closes: #1119125)
Checksums-Sha1:
 f8b794560805dd8da07eb0fc2220560538ab650a 1976 crossfire_1.75.0-9.1.dsc
 b875e1fc423ad950bdc40e4fca3eb0d983defe4c 12320 crossfire_1.75.0-9.1.debian.tar.xz
 1acd0facfc70ab73ef588074f7a54fd0d4136ba5 7499 crossfire_1.75.0-9.1_source.buildinfo
Checksums-Sha256:
 bea867dbac72d5b6d2186fa7db18fab4b218e03c36d6ad063f4e70c3601465fd 1976 crossfire_1.75.0-9.1.dsc
 eac563be73512883974a2186a9a6f5d135a0a5cc277989bd8f3a3727322e1123 12320 crossfire_1.75.0-9.1.debian.tar.xz
 5503002323c39b5e19eec1fd1339e10d501bd00d020f75c39f52907156a2e77b 7499 crossfire_1.75.0-9.1_source.buildinfo
Files:
 c02ee8cfda3e94960ed2d51536bf120a 1976 games optional crossfire_1.75.0-9.1.dsc
 cf8edad8890991640c94f922f92bb553 12320 games optional crossfire_1.75.0-9.1.debian.tar.xz
 43ab82de4ffcfc5e9d7c42de3ffc9477 7499 games optional crossfire_1.75.0-9.1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmp04usQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFEJCDAC/d0zS/evwyOpCaHI0dGzJv+1z4A6hqAMT
hGpFAfvuSA0BHZoNQmdfnCxpCBxrS8OBl2O1wfZ40/CzCd3m3rlHTJwXuU7mOCIJ
JMZwu99MgUuYYAy//WgEv68CZ9blPDFcNzra7c83YYp2a9HuHj8u5uHY590hBcc8
0Ye1AU/IWqn01zpM9dLKIeCPsZ3GLJgrHzK4Oc77ioiocjTIHH3tPW6MQPM8JzQo
EoOYU85Q5s0uJaLQ69xlTAg0zuLFcOwZ/rHeTtoTi2QHlOHogCnUViVmJJD7gZLk
6vf68usR4m+Pn+pzGFC4V58jvkOSJ2uRyGISy/tqIdRQwymZ8uaQcp2pmznMx6Jr
sbWwD7PuutituW6YMA8Ht/AdWOEtknFVlIFoWSg9D4AAaqi9wIphreuhS7IOey5Y
xQnZBel2f2cKbDzGw/gsZy6mO3wP9cqmeDoZDQJcrUHkzRItNu7DwJ4QXDKgzABm
6wgt2PDFGm4ptAzgIQkXcoEvAAaDwvg=
=KcFn
-----END PGP SIGNATURE-----