Bug 1220970 - GCC 14: python package fails
Summary: GCC 14: python package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Python (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Daniel Garcia
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-05 12:32 UTC by Michal Jireš
Modified: 2024-05-19 07:20 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jireš 2024-03-05 12:32:26 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.
Comment 1 Daniel Garcia 2024-03-05 13:03:54 UTC
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.
Comment 2 Daniel Garcia 2024-03-07 08:18:49 UTC
Request for factory: https://build.opensuse.org/request/show/1155422
Comment 3 Daniel Garcia 2024-03-11 16:34:53 UTC
Package fixed on factory
Comment 9 Maintenance Automation 2024-05-16 08:30:03 UTC
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.