Bugzilla – Bug 1220970
GCC 14: python package fails
Last modified: 2024-05-19 07:20:14 UTC
Building python with GCC 14 fails here: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/python/standard/x86_64 Due to (exhaustive list of errors): Python-2.7.18/Modules/_tkinter.c: In function ‘AsObj’: Python-2.7.18/Modules/_tkinter.c:1178:38: error: passing argument 1 of ‘Tcl_NewUnicodeObj’ from incompatible pointer type [-Wincompatible-pointer-types] 1178 | return Tcl_NewUnicodeObj(inbuf, size); | ^~~~~ | | | Py_UNICODE * {aka int *} In file included from /usr/include/tcl.h:2418, from /home/abuild/rpmbuild/BUILD/Python-2.7.18/Modules/_tkinter.c:70: /usr/include/tclDecls.h:1102:62: note: expected ‘const Tcl_UniChar *’ {aka ‘const short unsigned int *’} but argument is of type ‘Py_UNICODE *’ {aka ‘int *’} 1102 | EXTERN Tcl_Obj * Tcl_NewUnicodeObj(const Tcl_UniChar *unicode, | ~~~~~~~~~~~~~~~~~~~^~~~~~~ See the meta bug#1220571 for more info.
For python2 I think that the best solution is to use the compiler option (-std=gnu89, -std=c89, or -fpermissive), we're trying to remove the package from tumbleweed and it's not worth to patch it to make it build.
Request for factory: https://build.opensuse.org/request/show/1155422
Package fixed on factory
SUSE-SU-2024:1667-1: An update that solves three vulnerabilities and has two security fixes can now be installed. Category: security (moderate) Bug References: 1214675, 1219306, 1219559, 1220970, 1222537 CVE References: CVE-2022-48560, CVE-2023-27043, CVE-2023-52425 Maintenance Incident: [SUSE:Maintenance:33822](https://smelt.suse.de/incident/33822/) Sources used: SUSE Linux Enterprise Workstation Extension 12 12-SP5 (src): python-base-2.7.18-33.32.1 SUSE Linux Enterprise High Performance Computing 12 SP5 (src): python-2.7.18-33.32.1, python-doc-2.7.18-33.32.1, python-base-2.7.18-33.32.1 SUSE Linux Enterprise Server 12 SP5 (src): python-2.7.18-33.32.1, python-doc-2.7.18-33.32.1, python-base-2.7.18-33.32.1 SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): python-2.7.18-33.32.1, python-doc-2.7.18-33.32.1, python-base-2.7.18-33.32.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.