#1144265 xdmf: FTBFS against SWIG 4.5.0

Package:
src:xdmf
Source:
src:xdmf
Submitter:
Rafael Laboissière
Date:
2026-08-19 20:19:01 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