Your message dated Thu, 24 Sep 2026 14:34:39 +0000
with message-id <[email protected]>
and subject line Bug#1145457: fixed in libselinux 3.11-2.1
has caused the Debian Bug report #1145457,
regarding libselinux: FTBFS: selinuxswig_python_wrap.c:6646:34: error: implicit 
declaration of function 'PyString_FromString'; did you mean 
'PyLong_FromString'? [-Wimplicit-function-declaration]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1145457: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145457
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:libselinux
Version: 3.11-2
Severity: serious
Tags: ftbfs forky sid

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:libselinux, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
selinuxswig.i:18: Warning 127: %typedef directive is deprecated, use plain 
typedef instead
selinuxswig.i:19: Warning 127: %typedef directive is deprecated, use plain 
typedef instead
../include/selinux/avc.h:422: Warning 302: Redefinition of identifier 
'avc_cache_stats' as avc_cache_stats(struct avc_cache_stats *) ignored,
../include/selinux/avc.h:402: Warning 302: previous definition of 
'avc_cache_stats'.
../include/selinux/selinux.h:154: Warning 451: Setting a const char * variable 
may leak memory.
../include/selinux/selinux.h:376: Warning 451: Setting a const char * variable 
may leak memory.
creating build/temp.linux-x86_64-cpython-313
x86_64-linux-gnu-gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_LARGEFILE64_SOURCE -g 
-O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection 
-Wformat -Werror=format-security -fcf-protection -fno-semantic-interposition 
-Wall -Wextra -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../include 
-D_GNU_SOURCE -DNO_ANDROID_BACKEND -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8 
-DHAVE_STRLCPY -DHAVE_REALLOCARRAY -Wno-error -Wno-deprecated-declarations 
-Wno-missing-prototypes -Wno-missing-declarations -fPIC -Wdate-time 
-D_FORTIFY_SOURCE=2 -D_LARGEFILE64_SOURCE -fPIC -I../include 
-I/usr/include/python3.13 -c selinuxswig_python_wrap.c -o 
build/temp.linux-x86_64-cpython-313/selinuxswig_python_wrap.o
selinuxswig_python_wrap.c: In function ‘_wrap_get_ordered_context_list’:
selinuxswig_python_wrap.c:6646:34: error: implicit declaration of function 
‘PyString_FromString’; did you mean ‘PyLong_FromString’? 
[-Wimplicit-function-declaration]
 6646 |         PyList_SetItem(plist, i, PyString_FromString((*arg3)[i]));
      |                                  ^~~~~~~~~~~~~~~~~~~
      |                                  PyLong_FromString
selinuxswig_python_wrap.c:6646:34: error: passing argument 3 of 
‘PyList_SetItem’ makes pointer from integer without a cast 
[-Wint-conversion]
 6646 |         PyList_SetItem(plist, i, PyString_FromString((*arg3)[i]));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  int
In file included from /usr/include/python3.13/Python.h:90,
                 from selinuxswig_python_wrap.c:206:
/usr/include/python3.13/listobject.h:35:56: note: expected ‘PyObject *’ 
{aka ‘struct _object *’} but argument is of type ‘int’
   35 | PyAPI_FUNC(int) PyList_SetItem(PyObject *, Py_ssize_t, PyObject *);
      |                                                        ^~~~~~~~~~
selinuxswig_python_wrap.c: In function 
‘_wrap_get_ordered_context_list_with_level’:
selinuxswig_python_wrap.c:6724:34: error: passing argument 3 of 
‘PyList_SetItem’ makes pointer from integer without a cast 
[-Wint-conversion]
 6724 |         PyList_SetItem(plist, i, PyString_FromString((*arg4)[i]));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  int
/usr/include/python3.13/listobject.h:35:56: note: expected ‘PyObject *’ 
{aka ‘struct _object *’} but argument is of type ‘int’
   35 | PyAPI_FUNC(int) PyList_SetItem(PyObject *, Py_ssize_t, PyObject *);
      |                                                        ^~~~~~~~~~
selinuxswig_python_wrap.c: In function ‘_wrap_security_compute_user’:
selinuxswig_python_wrap.c:11512:34: error: passing argument 3 of 
‘PyList_SetItem’ makes pointer from integer without a cast 
[-Wint-conversion]
11512 |         PyList_SetItem(plist, i, PyString_FromString((*arg3)[i]));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  int
/usr/include/python3.13/listobject.h:35:56: note: expected ‘PyObject *’ 
{aka ‘struct _object *’} but argument is of type ‘int’
   35 | PyAPI_FUNC(int) PyList_SetItem(PyObject *, Py_ssize_t, PyObject *);
      |                                                        ^~~~~~~~~~
selinuxswig_python_wrap.c: In function ‘_wrap_security_compute_user_raw’:
selinuxswig_python_wrap.c:11583:34: error: passing argument 3 of 
‘PyList_SetItem’ makes pointer from integer without a cast 
[-Wint-conversion]
11583 |         PyList_SetItem(plist, i, PyString_FromString((*arg3)[i]));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  int
/usr/include/python3.13/listobject.h:35:56: note: expected ‘PyObject *’ 
{aka ‘struct _object *’} but argument is of type ‘int’
   35 | PyAPI_FUNC(int) PyList_SetItem(PyObject *, Py_ssize_t, PyObject *);
      |                                                        ^~~~~~~~~~
selinuxswig_python_wrap.c: In function ‘_wrap_security_get_boolean_names’:
selinuxswig_python_wrap.c:12487:31: error: passing argument 3 of 
‘PyList_SetItem’ makes pointer from integer without a cast 
[-Wint-conversion]
12487 |       PyList_SetItem(list, i, PyString_FromString((*arg1)[i]));
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                               |
      |                               int
/usr/include/python3.13/listobject.h:35:56: note: expected ‘PyObject *’ 
{aka ‘struct _object *’} but argument is of type ‘int’
   35 | PyAPI_FUNC(int) PyList_SetItem(PyObject *, Py_ssize_t, PyObject *);
      |                                                        ^~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

TIP pass --env-dir and --sdist-extract-dir to keep the build environment and 
sources, then see 
https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-build
 for help debugging a failed build
ERROR Backend subprocess exited when trying to invoke build_wheel
make[3]: *** [Makefile:154: pywrap] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:62: pywrap] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:49: build-python-3.13] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:37: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
Source: libselinux
Source-Version: 3.11-2.1
Done: Matthias Klose <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libselinux, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated libselinux 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 24 Sep 2026 15:37:09 +0200
Source: libselinux
Architecture: source
Version: 3.11-2.1
Distribution: sid
Urgency: medium
Maintainer: Debian SELinux maintainers <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 1145457
Changes:
 libselinux (3.11-2.1) sid; urgency=medium
 .
   * Non-maintainer upload.
 .
   [ Maximiliano Curia ]
   * Fix ftbfs with swig 4.5.0. Closes: #1145457.
Checksums-Sha1:
 f7a5ac404e4b27f1097df8ee28018cf2df3a1640 3163 libselinux_3.11-2.1.dsc
 996faf6f66d6d51f43e14d477d09db8974c63e83 53136 
libselinux_3.11-2.1.debian.tar.xz
 65aea245fdff7c59c063622e3434dc82393e2077 8022 
libselinux_3.11-2.1_source.buildinfo
Checksums-Sha256:
 3b7b20e97e30be4dcdf62e3ec660ebf827d25566b46a7141859637d71fe6a5e4 3163 
libselinux_3.11-2.1.dsc
 6cea82b4910e8088445932473efdbe7bf981211e7d71270498858a76ccfe3032 53136 
libselinux_3.11-2.1.debian.tar.xz
 18724e98cdf67b540a4ec17adc331ba22f3803d47b4d7883db6c3b40f5be8ace 8022 
libselinux_3.11-2.1_source.buildinfo
Files:
 1a57fdeb4026463722fe0e15150393fd 3163 libs optional libselinux_3.11-2.1.dsc
 09b71c79ef68e3f6e7315eca97614b2e 53136 libs optional 
libselinux_3.11-2.1.debian.tar.xz
 1b38ede9825dc3fcf97a2f77a731235b 8022 libs optional 
libselinux_3.11-2.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmq1KKoQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9YZsEACdO0qe+uCWsLscxT36/NN19Y5gOpazy9TK
BAh6IGkBuYgUUF8kRGJ8drpKi0rB+ZzLkm7gIVRS9klIVCB5jRAD/iVxwUQOOAu/
u0p8/KJJRG/VTtOW5mN9AZVUR1riClKKHvEMWkQw+uq0rrvt/fAe4IFzgvk8UN3e
GYb4EkjERPZzip5NoFZBuo6PMJWodXIovU5RiKwlaLcj/gdIQpdr9dgqqjTn6/q6
eLJfJSJIc1veIz4w9ID37b7zjX9NoDkVbsg9SojwpXeqHU/3XKFkttwwGk5Dsc4h
hhqpIAkybLD1iB2wqgJVJss+kRBvtLuhLu7eUYpfk03k5VoAaKurkSjS3eBh5gLA
SGPOFanv7dhvmsC6z6K/xX09fNptsy1M7RCxt7Po0me7ThtEuOy4uiKKXN8PxovU
LL33ZG0C/YmYCYtAtWQORVI3ZNa5WyAB+8WlQhBOxmQFJ4PFuZjWKrdsmHBj4/5S
67G9NariYk/fwzmSa4h3g+7sze3Ni4uA03866oNrVjwJl3eV7t5Nr1ee8YW91F3b
e3jtcEstzTjOZK0P+s8NfNshx8CtmxcT5wSQXzLZa+6sBO4pTRaEIAuRAs82w/eU
8TXCffI7B5X5dONf9PzVX7jbBE3iBvP31kmMe9vcO8mfltWaRDZkLsomG2g7D1fC
DbXQ8dvWqg==
=wOGO
-----END PGP SIGNATURE-----

Attachment: pgp11rPne8VEE.pgp
Description: PGP signature


--- End Message ---

Reply via email to