commit 3a8a423de0e6160953fd5940567041108dfcd99e Author: Jan Palus <at...@pld-linux.org> Date: Fri Jun 14 16:33:56 2024 +0200
fix build with gcc 14 gcc14.patch | 11 +++++++++++ python.spec | 2 ++ 2 files changed, 13 insertions(+) --- diff --git a/python.spec b/python.spec index 26020f0..f19f89b 100644 --- a/python.spec +++ b/python.spec @@ -62,6 +62,7 @@ Patch9: https://bugs.python.org/file21896/nonexistent_user.patch # Patch9-md5: db706fbe6de467c6e4c97c675eddf29a Patch10: %{name}-BLDLIBRARY.patch Patch11: openssl3.patch +Patch12: gcc14.patch URL: https://www.python.org/ BuildRequires: autoconf >= 2.65 BuildRequires: automake @@ -596,6 +597,7 @@ napisanego w Pythonie. %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch12 -p1 tar xjf %{SOURCE1} diff --git a/gcc14.patch b/gcc14.patch new file mode 100644 index 0000000..125ff57 --- /dev/null +++ b/gcc14.patch @@ -0,0 +1,11 @@ +--- Python-2.7.18/Modules/_tkinter.c.orig 2020-04-19 23:13:39.000000000 +0200 ++++ Python-2.7.18/Modules/_tkinter.c 2024-06-14 16:17:16.234590939 +0200 +@@ -1175,7 +1175,7 @@ + return NULL; + } + if (sizeof(Py_UNICODE) == sizeof(Tcl_UniChar)) +- return Tcl_NewUnicodeObj(inbuf, size); ++ return Tcl_NewUnicodeObj((const Tcl_UniChar *)inbuf, size); + allocsize = ((size_t)size) * sizeof(Tcl_UniChar); + if (allocsize >= size) + outbuf = (Tcl_UniChar*)attemptckalloc(allocsize); ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/3a8a423de0e6160953fd5940567041108dfcd99e _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit