#1145109 cctools: FTBFS with swig 4.5.0

Package:
src:cctools
Source:
src:cctools
Submitter:
Rafael Laboissière
Date:
2026-08-23 12:51:02 UTC
Severity:
normal
Tags:
#1145109#5
Date:
2026-08-22 16:53:05 UTC
From:
To:
Dear Maintainer,

The cctools package FTBFS with swig 4.5.0, which is currently in unstable. An excerpt of the build log is shown below.

This is due to the removal of the Python 2 compatibility macros in version 4.5.0. According to the SWIG authors, these macros were retained in the generated code (pyhead.swg) solely for user typemaps. Any typemap using these macros must be updated to call the Python 3 C API directly.

Best,

Rafael Laboissière

##### Build log excerpt

SWIG chirp.i (python)
gcc -o chirp_wrap.o -c -DCCTOOLS_WITH_CHIRP -I <<BUILD-DIR>>/cctools-7.15.9/dttools/src -I <<BUILD-DIR>>/cctools-7.15.9/batch_job/src -I <<BUILD-DIR>>/cctools-7.15.9/taskvine/src -I <<BUILD-DIR>>/cctools-7.15.9/
grow/src -I <<BUILD-DIR>>/cctools-7.15.9/makeflow/src -I <<BUILD-DIR>>/cctools-7.15.9/work_queue/src -I <<BUILD-DIR>>/cctools-7.15.9/ftp_lite/src -I <<BUILD-DIR>>/cctools-7.15.9/resource_monitor/src -I <<BUILD-D
IR>>/cctools-7.15.9/chirp/src -I <<BUILD-DIR>>/cctools-7.15.9/deltadb/src -I <<BUILD-DIR>>/cctools-7.15.9/poncho/src -I <<BUILD-DIR>>/cctools-7.15.9/taskvine/src/manager -g -O2 -Werror=implicit-function-declarat
ion -ffile-prefix-map=<<BUILD-DIR>>/cctools-7.15.9=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -I /usr/include/python3.14 -DNDEBUG -Wno-unused-result -D_
_EXTENSIONS__ -D_LARGEFILE64_SOURCE -D__LARGE64_FILES -Wall -Wextra -Wno-unused-result -fPIC -Wno-unused-parameter -Wno-unknown-pragmas -Wno-deprecated-declarations -Wno-unused-const-variable -DHAS_LIBREADLINE -
DHAS_TLS_method -DHAS_OPENSSL -DHAS_OPENSSL_PKEYUTL -DHAS_PPOLL -DHAVE_GMTIME_R -DHAVE_FDATASYNC -DHAS_ISNAN -DHAVE_ISNAN -DSQLITE_HAVE_ISNAN -DHAVE_LOCALTIME_R -DHAS_OPENAT -DHAS_PREAD -DUSE_PREAD -DUSE_PREAD64
 -DHAS_PWRITE -DUSE_PWRITE -DUSE_PWRITE64 -DHAS_STATX -DHAVE_STRCHRNUL -DHAS_STRSIGNAL -DHAS_USLEEP -DHAVE_USLEEP -DHAS_UTIME -DHAVE_UTIME -DHAS_UTIMENSAT -DHAS_SYS_XATTR_H -DHAS_IFADDRS -DHAS_INTTYPES_H -DHAVE_
INTTYPES_H -DHAS_STDINT_H -DHAVE_STDINT_H -DHAS_SYS_STATFS_H -DHAS_SYS_STATVFS_H -DHAS_SYS_VFS_H -DBUILD_DATE='"2018-12-25"' -DBUILD_HOST='"debian"' -DBUILD_USER='"debian"' -DCCTOOLS_COMMIT='""' -DCCTOOLS_CONFIG
URE_ARGUMENTS='"--with-globus-path=/usr --prefix=/usr --with-golang-path=/usr --with-krb5-path=/usr --with-readline-path=/usr --with-mpi-path=/usr --with-fuse-path=/usr --with-zlib-path=/usr --with-python3-path
/usr/bin/python3 --with-python2-path no --without-system-parrot --build-date Fri May 22 10:24:16 UTC 2026"' -DCCTOOLS_CPU_AMD64 -DCCTOOLS_CVMFS_BUILD_FLAGS='" "' -DCCTOOLS_OPSYS_LINUX -DCCTOOLS_RELEASE_DATE='"Fr
i May 22 10:24:16 UTC 2026"' -DCCTOOLS_SOURCE='"FINAL"' -DCCTOOLS_SYSTEM_INFORMATION='"Debian build of cctools"' -DCCTOOLS_VERSION='"7.15.9 FINAL"' -DCCTOOLS_VERSION_MAJOR=7 -DCCTOOLS_VERSION_MICRO=9 -DCCTOOLS_V
ERSION_MINOR=15 -DINSTALL_PATH='"/usr"' -D_GNU_SOURCE -D_REENTRANT  -g3 -O0 -ggdb3  -std=c99 -fPIC -w -DNDEBUG -DNDEBUG -I/usr/include/python3.14 -IObjects -IInclude -IPython -I. -I../Include chirp_wrap.c
chirp_wrap.c: In function ‘_wrap_chirp_reli_open’:
chirp_wrap.c:4569:14: error: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit-function-declaration]
 4569 |     else if (PyInt_Check(swig_obj[4]))
      |              ^~~~~~~~~~~
      |              PySet_Check
chirp_wrap.c:4570:21: error: implicit declaration of function ‘PyInt_AsLong’; did you mean ‘PyLong_AsLong’? [-Wimplicit-function-declaration]
 4570 |     arg5 = (time_t) PyInt_AsLong(swig_obj[4]);
      |                     ^~~~~~~~~~~~
      |                     PyLong_AsLong
make[5]: *** [<<BUILD-DIR>>/cctools-7.15.9/rules.mk:6: chirp_wrap.o] Error 1

#1145109#10
Date:
2026-08-22 18:30:59 UTC
From:
To:
Rafael

Control: tags -1 + patch

I proposed a patch for fixing the issue as a merge request at Salsa:
https://salsa.debian.org/neurodebian-team/cctools/-/merge_requests/2

Best,

Rafael Laboissière

P.S.: Could you please change the default branch of the Git repository at Salsa to "debian/latest", please? It is currently "master". This will simplify future merge requests.

#1145109#15
Date:
2026-08-23 12:49:10 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cctools, 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 1145109@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 cctools 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: Sun, 23 Aug 2026 13:32:24 +0100
Source: cctools
Architecture: source
Version: 1:7.15.9-3
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Closes: 1145109
Changes:
 cctools (1:7.15.9-3) unstable; urgency=medium
 .
   * Patch from Rafael Laboissiere for FTBFS with swig 4.5.0. Closes: #1145109
   * Debhelper compat level 14
Checksums-Sha1:
 df26e15271356b5047a8df44744ee9cc8e461ad3 2554 cctools_7.15.9-3.dsc
 27fef793a13deb0920a2535dc3d4a763ba045cc5 19804 cctools_7.15.9-3.debian.tar.xz
 b4418d9ee254f386bf9f7e35cf961fa233b9db26 12935 cctools_7.15.9-3_arm64.buildinfo
Checksums-Sha256:
 ce1fd567be39847dbe4371a27142ee8a72502c842da088691283f0f7c4db4a60 2554 cctools_7.15.9-3.dsc
 1e96fa6f16d3db57f4890094232aed5dd35e2443c9cac1c20f07ea61328c1c48 19804 cctools_7.15.9-3.debian.tar.xz
 5f6e682bd4218e16cd9dd0ebac8dda69d6e516176addf611a569c5e974f995d5 12935 cctools_7.15.9-3_arm64.buildinfo
Files:
 76bfdf47d02f76265dbec0b505b2c548 2554 utils optional cctools_7.15.9-3.dsc
 c4dc8b9a2f62bc8bd2e05f3cd818790a 19804 utils optional cctools_7.15.9-3.debian.tar.xz
 d9295fc786c199a1866b6e233de2534b 12935 utils optional cctools_7.15.9-3_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmqK6fgACgkQy+a7Tl2a
06XKmBAAlUns4FvAKZ7t2CaSZXcDc1+KTbyLeS/FPIWh8Xn817zYzt+as6N/B79m
3qz1y6wD1mgZ+IYRkGYLcu1eHzTm5Roq2jMYjN9fxVL6g4Mvsd/nKJGL3EBWfeQB
V5nfaFq8kTAe7QJUbRABBVsc+Mn/NQs7RiweMXrMv7gAQa5aPmYhlqZIUecp5K1U
www1BCUJKQzSgFGUzxl91Vlb3AyGDz8+f9VP21HxBTqfo0P5HBgF6OdKo1Cd+0pX
InNbuPVu0UTVkg+wJb0myQjg+dIzybfHxs+2JyaDqL1WbJgzuNHjHrQffwGO+RfP
R7Jpl+gTrVfNPAl/s65ym/HzFirf7bFnQADDFoqoLflJnMqeJO3lJfdgZ5BmZKbi
55h2lENSYlwCjCkzRH5qpSXtjAxiYJW4QO8gfFrtc9RDvrHFGNh1m8+ul0w6vICZ
x7DynmfuksWIIZyq1anaQHrrj/bkCTPe79WHbY+0965JXYalqpcVHAtATyj5CISx
jbLvnsQXcG9Gn4aOvxzrhtxAQAvvdxcQC24qzF+hAmn504ak2/Bw9/TcWwC1LYho
iwx/posWet+If7EHHic85KeeFEb6WHXWRuQnSw3nkaA3k8x7McZjsb2LRPgcJO8U
/ER6iXa7o17my/VXQs9/Kc9YcduyGNamkpgL/P7y2Kj6nCaTze0=
=iQz9
-----END PGP SIGNATURE-----