[patch] Fix gpgmepy build error against swig 4.5.0

Andreas Metzler ametzler at bebt.de
Tue Aug 25 18:37:06 CEST 2026


Hello,

gpgmepy 2.0 fails to build with 4.5.0 with:
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
[...]

(Originally reported in https://bugs.debian.org/1145351 )

Please find attached a suggested patch by Rafael Laboissière.

cu Andreas
-- 
"You people are noisy," Nia said.
I made the gesture of agreement.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0030-build-with-swig-4.5.0.patch
Type: text/x-diff
Size: 1847 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260825/1d98f7f9/attachment-0005.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260825/1d98f7f9/attachment-0005.sig>


More information about the Gnupg-devel mailing list