#1144265 xdmf: FTBFS against SWIG 4.5.0

Package:
src:xdmf
Source:
src:xdmf
Submitter:
Rafael Laboissière
Date:
2026-09-02 11:13:02 UTC
Severity:
normal
Tags:
#1144265#5
Date:
2026-08-13 08:30:10 UTC
From:
To:
Dear Maintainer,

The xmdf package FTBFS against SWIG 4.5.0, which was recently uploaded to unstable. The following is an excerpt from the build log:

[ 86%] Building CXX object core/CMakeFiles/XdmfCorePython.dir/__/XdmfCorePYTHON_wrap.cxx.o
<path-to-dir>/xdmf-3.0+git20190531/debian/build-serial-python3.14/XdmfCorePYTHON_wrap.cxx: In function ‘void XdmfArray_getValues__SWIG_0(XdmfArray*, unsigned int, PyObject*, unsigned int, unsigned int, unsigned int)’:
<path-to-dir>/xdmf-3.0+git20190531/debian/build-serial-python3.14/XdmfCorePYTHON_wrap.cxx:4490:28: error: ‘PyString_FromString’ was not declared in this scope; did you mean ‘PyLong_FromString’?
 4490 |           placeholderVal = PyString_FromString("");
      |                            ^~~~~~~~~~~~~~~~~~~
      |                            PyLong_FromString
<path-to-dir>/xdmf-3.0+git20190531/debian/build-serial-python3.14/XdmfCorePYTHON_wrap.cxx:4536:25: error: ‘PyString_FromString’ was not declared in this scope; did you mean ‘PyLong_FromString’?
 4536 |           insertedVal = PyString_FromString(self->XdmfArray::getValue<std::string>(index).c_str());
      |                         ^~~~~~~~~~~~~~~~~~~
      |                         PyLong_FromString
<path-to-dir>/xdmf-3.0+git20190531/debian/build-serial-python3.14/XdmfCorePYTHON_wrap.cxx: In function ‘void XdmfArray_insertAsString__SWIG_0(XdmfArray*, int, PyObject*, int, int, int, int)’:
<path-to-dir>/xdmf-3.0+git20190531/debian/build-serial-python3.14/XdmfCorePYTHON_wrap.cxx:4720:73: error: ‘PyString_AsString’ was not declared in this scope
 4720 |               self->insert<std::string>((i * arrayStride) + startIndex, PyString_AsString(PyList_GetItem(list, listStartIndex + (i * listStride))));
      |                                                                         ^~~~~~~~~~~~~~~~~
make[4]: *** [core/CMakeFiles/XdmfCorePython.dir/build.make:79: core/CMakeFiles/XdmfCorePython.dir/__/XdmfCorePYTHON_wrap.cxx.o] Error 1
make[3]: *** [CMakeFiles/Makefile2:278: core/CMakeFiles/XdmfCorePython.dir/all] Error 2
make[2]: *** [Makefile:136: all] Error 2
make[2]: Leaving directory '<path-to-dir>/xdmf-3.0+git20190531/debian/build-serial-python3.14'
make[1]: *** [debian/rules:73: override_dh_auto_build] Error 2
make[1]: Leaving directory '<path-to-dir>/xdmf-3.0+git20190531'
make: *** [debian/rules:8: binary] Error 2

The full build log is attached to this bug report.

Best,

Rafael Laboissière

#1144265#10
Date:
2026-08-13 08:51:01 UTC
From:
To:
I proposed a patch for this bug in the following MR:
https://salsa.debian.org/science-team/xdmf/-/merge_requests/2

Best,

Rafael Laboissière

#1144265#17
Date:
2026-08-18 09:37:26 UTC
From:
To:
PLease, note that xdmf still FTBFS with the latest version of swig in unstable (4.5.0-3). I proposed a change to the swig-4.5.0 patch in MR#4:

https://salsa.debian.org/science-team/xdmf/-/merge_requests/4

Best,

Rafael Laboissière

#1144265#24
Date:
2026-08-26 07:34:04 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
xdmf, 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 1144265@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated xdmf 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: Tue, 25 Aug 2026 17:16:48 +0100
Source: xdmf
Architecture: source
Version: 3.0+git20190531-15
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Closes: 1144265
Changes:
 xdmf (3.0+git20190531-15) unstable; urgency=medium
 .
   [ Alastair McKinstry ]
   * Standards-Version: 4.7.4
   * Debhelper compat level 14
 .
   [  Rafael Laboissière ]
   * Use pre-computed DEB_HOST_MULTIARCH
   * Drop Priority: optional from source in d/control per new policy
   * Patches to fix FTBFS with swig 4.5.0. Closes: #1144265
Checksums-Sha1:
 58c08c42b88ecfa622421245d545fb3ce416df35 2343 xdmf_3.0+git20190531-15.dsc
 eb63f06b97dd7659cae98adcdd1f1f5f11e9e75f 11960 xdmf_3.0+git20190531-15.debian.tar.xz
 8a977dcbf2e7c16ff7624b91b2013cd57ed19ca0 13542 xdmf_3.0+git20190531-15_arm64.buildinfo
Checksums-Sha256:
 4c6c2515ba496d153afccc9c562f42474b901d988fb75993bb6e6b16bc7ea27f 2343 xdmf_3.0+git20190531-15.dsc
 eeb7d00b3c1376c2808d3d9bc5cc8e64b7084bb6dd3413017d597bf1fb6d49d6 11960 xdmf_3.0+git20190531-15.debian.tar.xz
 c5ca80cf003b3653c06e34c106a4af673c1555f7b459373ce500664408eea43d 13542 xdmf_3.0+git20190531-15_arm64.buildinfo
Files:
 abbe5301b557364ba4e203a5117e060e 2343 science optional xdmf_3.0+git20190531-15.dsc
 c347d1023e9a17641cd618d8c3f671cb 11960 science optional xdmf_3.0+git20190531-15.debian.tar.xz
 884d5bea140b89a0efcae86a9fa24547 13542 science optional xdmf_3.0+git20190531-15_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmqOk7cACgkQy+a7Tl2a
06XgQw/9FJhXBckhjwlYAN4nphreJhkncF9Yscvx8gy0P6rOO1LV3KLumFmG0kyZ
G46tGT1uc7BPTeuZck2XH757YH/u6nPMgEr2XvzYLkIPcuSaGgGGEti7VnZAe4TL
JUAuQEq2+PtE+ujlCz20dR4C9MIDhX8Bb3CYGWFxoRgzi+153TjQKZ0j4qfpWRuC
hUIzR6hvEDsOAUFczgjtujPCPEKkSJ19Q8nmWoSIUDe8vRF9hY8bzOHjDTNbcME5
AgaeESXTbDDmeJbbrS+r6nCE8s4ZSxYFR8uzAI/HCwqI0LV64FWQ0uTjqRgFgpSY
v6hHaL/HvA7+IVerMcEULSNXqgWiVtwGLQ0Tw5gGzcyJzTm0AcjHyLkPzPpvna24
MakaSK5UuxK4XtTrFs1Ev6wS4V443Z+LzbecffDvysoE8rUx5Oaieo0XgtAgRGuK
C11uPXqne8pPqWpqfZqSHkKi8eTXJFU1dHGqA8GAWa7p53NQTvKDAaCHnRfoiKYG
kwuLWsaIacwK+AHV8acQFKXM1io86MDQ+1ycpDP434NfOyp8LihnqMKt8G/3tslw
Ra0mUb3dQM9lxYqcX8D2tvIhY4vgoGmVXwHl6px0xl+ebf28OyoXN/mNhEAf25zj
lDNCHmCOxvm9ISrA0kZrb0JyJ9KJu77gOk/jL07UGL05ueR7+f8=
=Zby0
-----END PGP SIGNATURE-----

#1144265#29
Date:
2026-09-02 11:09:07 UTC
From:
To:
* Rafael Laboissière <rafael@debian.org> [2026-08-18 11:37]:

The upstream author of SWIG introduced a change that addressed this issue (commit 2066f344 [1]). For more context, see issue #3537 [2].

So, please, do not forward the part of the patch involving Xdmf.i to the upstream authors of xdmf, since this is fixed in SWIG.

On the other hand, the part of the patch involving core/XdmfCore.i must be forwarded upstream.

Best,

Rafael Laboissière

[1] https://github.com/swig/swig/commit/2066f34425c7e5a73d672f0dc50553b5861a98cb
[2] https://github.com/swig/swig/issues/3537