From ba653bbeb3a037fef0153d04445380d002bbfd4d09c2225af2b87cc4d38b2fa2 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 13 May 2024 08:01:47 +0000 Subject: [PATCH] Accepting request 1171529 from home:bmwiedemann:branches:Archiving Compile with C89 standard to build with gcc14 based on https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/z/zip.md OBS-URL: https://build.opensuse.org/request/show/1171529 OBS-URL: https://build.opensuse.org/package/show/Archiving/zip?expand=0&rev=26 --- zip.changes | 5 +++++ zip.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/zip.changes b/zip.changes index acd04d5..5237bfa 100644 --- a/zip.changes +++ b/zip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 3 07:11:27 UTC 2024 - Bernhard Wiedemann + +- Compile with C89 standard to build with gcc14 + ------------------------------------------------------------------- Tue Feb 20 12:09:05 UTC 2024 - Dominique Leuenberger diff --git a/zip.spec b/zip.spec index e4d7300..1dcc3ce 100644 --- a/zip.spec +++ b/zip.spec @@ -62,7 +62,7 @@ PKZIP(tm) 2.04g (Phil Katz ZIP) for MS-DOS systems. %build # Remove FORTIFY_SOURCE=3 for bsc#1200712 -EXTRA_CFLAGS="$(echo %{optflags} | sed -E 's/-[A-Z]?_FORTIFY_SOURCE[=]?[0-9]*//g') -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" +EXTRA_CFLAGS="$(echo %{optflags} | sed -E 's/-[A-Z]?_FORTIFY_SOURCE[=]?[0-9]*//g') -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -std=gnu89" make %{?_smp_mflags} -f unix/Makefile prefix=/usr CC="gcc $EXTRA_CFLAGS -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" generic_gcc %install