#1145351 gpgmepy: FTBFS: python3.13-gpg/gpgme_wrap.c:4085:14: error: implicit declaration of function 'PyInt_Check'; did you mean 'PySet_Check'? [-Wimplicit-function-declaration]

Package:
src:gpgmepy
Source:
src:gpgmepy
Submitter:
Santiago Vila
Date:
2026-08-25 16:53:02 UTC
Severity:
normal
Tags:
#1145351#5
Date:
2026-08-24 12:14:58 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:gpgmepy, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
swigging python3.13-gpg/gpgme.i to python3.13-gpg/gpgme_wrap.c
swig -python -threads -Ipython3.13-gpg -outdir python3.13-gpg/lib.linux-amd64-cpython-313/gpg -o python3.13-gpg/gpgme_wrap.c python3.13-gpg/gpgme.i
python3.13-gpg/gpgme.h:540: Warning 451: Setting a const char * variable may leak memory.
creating python3.13-gpg/temp.linux-amd64-cpython-313/python3.13-gpg
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-format-y2k -Wno-missing-field-initializers -Wno-sign-compare -Wno-format-zero-length -Wno-format-truncation -Wno-sizeof-pointer-div -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ipython3.13-gpg -I/<<PKGBUILDDIR>>/build -I/usr/include/python3.13 -c python3.13-gpg/gpgme_wrap.c -o python3.13-gpg/temp.linux-amd64-cpython-313/python3.13-gpg/gpgme_wrap.o
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_data_seek’:
python3.13-gpg/gpgme_wrap.c:4085:14: error: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit-function-declaration]
 4085 |     else if (PyInt_Check(swig_obj[1]))
      |              ^~~~~~~~~~~
      |              PySet_Check
python3.13-gpg/gpgme_wrap.c:4086:12: error: implicit declaration of function ‘PyInt_AsLong’; did you mean ‘PyLong_AsLong’? [-Wimplicit-function-declaration]
 4086 |     arg2 = PyInt_AsLong(swig_obj[1]);
      |            ^~~~~~~~~~~~
      |            PyLong_AsLong
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_op_receive_keys_start’:
python3.13-gpg/gpgme_wrap.c:33924:18: error: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Wimplicit-function-declaration]
33924 |         else if (PyString_Check(o))
      |                  ^~~~~~~~~~~~~~
      |                  PyMapping_Check
python3.13-gpg/gpgme_wrap.c:33925:19: error: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration]
33925 |         arg2[i] = PyString_AsString(o);
      |                   ^~~~~~~~~~~~~~~~~
python3.13-gpg/gpgme_wrap.c:33925:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
33925 |         arg2[i] = PyString_AsString(o);
      |                 ^
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_op_receive_keys’:
python3.13-gpg/gpgme_wrap.c:34011:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
34011 |         arg2[i] = PyString_AsString(o);
      |                 ^
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_op_export_ext_start’:
python3.13-gpg/gpgme_wrap.c:34677:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
34677 |         arg2[i] = PyString_AsString(o);
      |                 ^
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_op_export_ext’:
python3.13-gpg/gpgme_wrap.c:34993:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
34993 |         arg2[i] = PyString_AsString(o);
      |                 ^
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_op_keylist_ext_start’:
python3.13-gpg/gpgme_wrap.c:40446:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
40446 |         arg2[i] = PyString_AsString(o);
      |                 ^
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_op_spawn_start’:
python3.13-gpg/gpgme_wrap.c:41081:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
41081 |         arg3[i] = PyString_AsString(o);
      |                 ^
python3.13-gpg/gpgme_wrap.c: In function ‘_wrap_gpgme_op_spawn’:
python3.13-gpg/gpgme_wrap.c:41226:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
41226 |         arg3[i] = PyString_AsString(o);
      |                 ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make[3]: *** [Makefile:965: all-local] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [Makefile:518: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[1]: *** [Makefile:446: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: error: cd build && make -j2 returned exit code 2
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145351#10
Date:
2026-08-24 17:57:05 UTC
From:
To:
[...]

This was triggered/caused by the upgrade to swig 4.5.0, it builsa fine with
4.4.1-2.

cu Andreas

#1145351#15
Date:
2026-08-25 06:09:38 UTC
From:
To:
* Andreas Metzler <ametzler@bebt.de> [2026-08-24 19:57]:
https://salsa.debian.org/debian/gpgmepy/-/merge_requests/1

Best,

Rafael Laboissière

#1145351#22
Date:
2026-08-25 16:50:49 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gpgmepy, 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 1145351@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated gpgmepy 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 18:28:16 +0200
Source: gpgmepy
Architecture: source
Version: 2.0.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian GnuPG Maintainers <pkg-gnupg-maint@lists.alioth.debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Closes: 1145351
Changes:
 gpgmepy (2.0.0-3) unstable; urgency=medium
 .
   [ Rafael Laboissière ]
   * Add patch for fixing FTBFS with swig 4.5.0 (Closes: #1145351)
 .
   [ Andreas Metzler ]
   * [lintian] Drop redundant fields in control file.
Checksums-Sha1:
 7c561bdf4152714ceff9b83f746dc72630daa3bd 2508 gpgmepy_2.0.0-3.dsc
 d1f206fdd999394b0a4ea6e58c3e1c5570c257fd 24936 gpgmepy_2.0.0-3.debian.tar.xz
Checksums-Sha256:
 169c8f2a4394336ca53016b7278e5b64b7c52884d0a1120404105e0f97ec4b2d 2508 gpgmepy_2.0.0-3.dsc
 c068e280b1b7380f94d1bbdb2aa92d58a04c5cc15d708dfc33d22c656ce03c56 24936 gpgmepy_2.0.0-3.debian.tar.xz
Files:
 6b5253f2c87c7ad5b89b7b6f5673b474 2508 python optional gpgmepy_2.0.0-3.dsc
 24a9e2fdf3e33b3941f75025363f3348 24936 python optional gpgmepy_2.0.0-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmqNw5wACgkQpU8BhUOC
FIRRug//WMLjJ1qNpJOZPuSuQLx1ZHiQY+g+ST0mTVk8WQIrdnhToyQfESLlazej
r3mt/HdOHYGKIHu3V3uToyWdxLsd4UOGSA9Z/1QJs0wcxmWqm6Nqsv/y1bjWpk79
fCS1rtxaaer6Opdie04kjjq76JD0D2544VDe5WFjMymEQ10rPHfrbsKEvqqPD3R4
lfftpwL9v1SHw8yYwNa1hj7p7XOpFHqbj4KgZu6ym4nRhUTXLYNjrGWo7Epl5xPZ
zZclDMpEHixLNT+ywxAm/KAlyO6WOdXTTyiCfpmz7PBiTBwtp5vv13DYUGh4/I7C
Cul9ab0x8Xys1sz1aYEFay+UETck8+cu+QygAghpcqH2M7+neL7PCBi+TvNMTlZ7
DiK3PJqddsZOGa3sHC1h2R1bBpUMC83b377lJlt9NWyN4dnyU8cQQ2yvJlqzAw/E
PInrcn0ZVqw2fzrJgV2/B/Bv3ey+ldFy4Og0YCfmnH0+tlbuDjNZZtUQwStZhesn
O1K0lF8yUzkzMYZDCFgZhh0xYSEPI0prKCjJU3GW3YxKGRp5zHOXngelrZ5W4xb7
gzBQ64Swn4NwUQu1Qz5P/sZMRn9J5xZkLejhAxwG9JSc/OPytOSN8Lhaix3qQFxr
EoOlYNGoJk3ftM2/sCsZWWHX2lunrvsuX0RnjDoO3VWXs55EkSw=
=1dCC
-----END PGP SIGNATURE-----