From a81a414e00d651b5239fd3f53c4e1aafc68feb9b9a5fd18068aa2b2990c4f3b6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 06:48:36 +0000 Subject: [PATCH] Accepting request 1155418 from home:dgarcia:branches:openSUSE:Factory:Rings:1-MinimalX - Build with -std=gnu89 to build correctly with gcc14, bsc#1220970 OBS-URL: https://build.opensuse.org/request/show/1155418 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=398 --- python-base.changes | 5 +++++ python-base.spec | 3 ++- python-doc.changes | 5 +++++ python.changes | 5 +++++ python.spec | 3 ++- 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/python-base.changes b/python-base.changes index 5df5f06..4807bb6 100644 --- a/python-base.changes +++ b/python-base.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 5 17:43:19 UTC 2024 - Daniel Garcia + +- Build with -std=gnu89 to build correctly with gcc14, bsc#1220970 + ------------------------------------------------------------------- Mon Jan 8 10:00:07 UTC 2024 - Daniel Garcia diff --git a/python-base.spec b/python-base.spec index 4aec26e..8fea3cf 100644 --- a/python-base.spec +++ b/python-base.spec @@ -347,7 +347,8 @@ sed -i -e 's/python2_package_prefix python2/python2_package_prefix python/' macr %build %define _lto_cflags %{nil} -export OPT="%{optflags} -DOPENSSL_LOAD_CONF -fwrapv" +# -std=gnu89 option is needed to build with gcc14, bsc#1220970 +export OPT="%{optflags} -DOPENSSL_LOAD_CONF -fwrapv -std=gnu89" autoreconf -f -i . # Modules/_ctypes/libffi diff --git a/python-doc.changes b/python-doc.changes index 5df5f06..4807bb6 100644 --- a/python-doc.changes +++ b/python-doc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 5 17:43:19 UTC 2024 - Daniel Garcia + +- Build with -std=gnu89 to build correctly with gcc14, bsc#1220970 + ------------------------------------------------------------------- Mon Jan 8 10:00:07 UTC 2024 - Daniel Garcia diff --git a/python.changes b/python.changes index 5df5f06..4807bb6 100644 --- a/python.changes +++ b/python.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 5 17:43:19 UTC 2024 - Daniel Garcia + +- Build with -std=gnu89 to build correctly with gcc14, bsc#1220970 + ------------------------------------------------------------------- Mon Jan 8 10:00:07 UTC 2024 - Daniel Garcia diff --git a/python.spec b/python.spec index f6698e3..85425ff 100644 --- a/python.spec +++ b/python.spec @@ -389,7 +389,8 @@ cp %{SOURCE8} Lib/ %build %define _lto_cflags %{nil} -export OPT="%{optflags} -DOPENSSL_LOAD_CONF -fwrapv" +# -std=gnu89 option is needed to build with gcc14, bsc#1220970 +export OPT="%{optflags} -DOPENSSL_LOAD_CONF -fwrapv -std=gnu89" autoreconf -f -i . # Modules/_ctypes/libffi # prevent make from trying to rebuild asdl stuff, which requires existing