[From nobody Thu Sep 24 15:39:10 2026
Received: (at submit) by bugs.debian.org; 25 Aug 2026 10:15:36 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-119.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
 PP_MIME_FAKE_ASCII_TEXT,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,
 USER_IN_DKIM_WELCOMELIST,X_DEBBUGS_CC autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 25; hammy, 150; neutral, 242; spammy,
 0. spammytokens: hammytokens:0.000-+--pkgbuilddir,
 0.000-+--PKGBUILDDIR, 0.000-+--HTo:N*Debian, 0.000-+--forky,
 0.000-+--H*F:U*sanvila
Return-path: &lt;sanvila@debian.org&gt;
Received: from mitropoulos.debian.org
 ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:42768)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1wyoBr-003r4x-3B
 for submit@bugs.debian.org; Tue, 25 Aug 2026 10:15:36 +0000
Received: via submission
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=paradis.debian.org, EMAIL=hostmaster@paradis.debian.org (verified)
 by mitropoulos.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1wyoBq-001ILK-0S
 for submit@bugs.debian.org; Tue, 25 Aug 2026 10:15:34 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.paradis;
 h=Date:Message-Id:Subject:To:From:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=DMDxHG1MQgUa6gLNCnXWAzd/161eF1HGQ3CObM9JMUw=; b=WZH/iIKOo22qVcYsHylnmeiPu9
 KgrsKj4lH1mfrjQkV23cpchHOJqT3INFfRcGTEcOW0VAh1O2xeSDwEJXnsHFjspCRyRdKXU8E98kB
 Jzi4cEd/40lkt1CVgxjIYJi6BcyPQplSZZOQMHyGZZIaFSSw6TMlwUq0WGUaErSiGrfd5AamhcNXw
 VJrbHX9UIs4J8v53RY8BalyEFxH1n3+qc6IrKGS21IjVERLaIPzV5wmgCKeu29ZqoFaAS1OVWPoLZ
 UBafrtbt28HQAS/6qkh3Hj0rTGEm9BNP2r3ZE4zC8o/wDeXoVcgwKID1kB5o0uMCtEPh1HGxRw4W1
 b6+he86Q==;
Received: from sanvila by paradis.debian.org with local (Exim 4.96)
 (envelope-from &lt;sanvila@debian.org&gt;) id 1wyoBo-000Cek-1e
 for submit@bugs.debian.org; Tue, 25 Aug 2026 10:15:32 +0000
From: Santiago Vila &lt;sanvila@debian.org&gt;
To: Debian BTS &lt;submit@bugs.debian.org&gt;
Subject: libselinux: FTBFS: selinuxswig_python_wrap.c:6646:34: error: implicit
 declaration of function 'PyString_FromString';
 did you mean 'PyLong_FromString'? [-Wimplicit-function-declaration]
X-Debbugs-Cc: sanvila@debian.org
Message-Id: &lt;E1wyoBo-000Cek-1e@paradis.debian.org&gt;
Date: Tue, 25 Aug 2026 10:15:32 +0000
Delivered-To: submit@bugs.debian.org

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=/&lt;&lt;PKGBUILDDIR&gt;&gt;=. -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 '/&lt;&lt;PKGBUILDDIR&gt;&gt;/src'
make[2]: *** [Makefile:62: pywrap] Error 2
make[2]: Leaving directory '/&lt;&lt;PKGBUILDDIR&gt;&gt;'
make[1]: *** [debian/rules:49: build-python-3.13] Error 2
make[1]: Leaving directory '/&lt;&lt;PKGBUILDDIR&gt;&gt;'
make: *** [debian/rules:37: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
]