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