From 47273269846e81c5e2d5eb185bba550d7dc71f354e0ddd0327e17a022a7e07f5 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 2 Mar 2024 03:40:26 +0000 Subject: [PATCH] Accepting request 1154184 from home:mjires:branches:graphics Fix GCC14 errors. (bsc#1220467) OBS-URL: https://build.opensuse.org/request/show/1154184 OBS-URL: https://build.opensuse.org/package/show/graphics/dcraw?expand=0&rev=60 --- dcraw.changes | 5 +++++ dcraw.spec | 2 ++ fix_gcc14_errors.patch | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 fix_gcc14_errors.patch diff --git a/dcraw.changes b/dcraw.changes index 79a7626..66d92c0 100644 --- a/dcraw.changes +++ b/dcraw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 1 20:52:46 UTC 2024 - Michal Jireš + +- Add fix_gcc14_errors.patch (bsc#1220467) + ------------------------------------------------------------------- Thu Feb 22 07:54:56 UTC 2024 - Michael Vetter diff --git a/dcraw.spec b/dcraw.spec index 4d5c201..94ffb29 100644 --- a/dcraw.spec +++ b/dcraw.spec @@ -48,6 +48,7 @@ Patch4: dcraw-CVE-2018-5801.patch Patch5: iowrappers.patch Patch6: dcraw-CVE-2021-3624.patch Patch7: dcraw-glibc-2.38.patch +Patch8: fix_gcc14_errors.patch BuildRequires: gettext-runtime BuildRequires: libjasper-devel BuildRequires: libjpeg-devel @@ -70,6 +71,7 @@ cp -a %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} . %patch -P 5 -p1 %patch -P 6 -p1 %patch -P 7 -p1 +%patch -P 8 -p1 %build export CFLAGS="%{optflags} -fno-strict-aliasing -fstack-protector-all" diff --git a/fix_gcc14_errors.patch b/fix_gcc14_errors.patch new file mode 100644 index 0000000..8eb5dc9 --- /dev/null +++ b/fix_gcc14_errors.patch @@ -0,0 +1,24 @@ +Index: dcraw/fuji_green.c +=================================================================== +--- dcraw.orig/fuji_green.c ++++ dcraw/fuji_green.c +@@ -5,6 +5,7 @@ + $Date: 2006/03/01 01:46:47 $ + */ + ++#define _XOPEN_SOURCE + #include + #include + #include +Index: dcraw/fujiturn.c +=================================================================== +--- dcraw.orig/fujiturn.c ++++ dcraw/fujiturn.c +@@ -15,6 +15,7 @@ + #include + #include + #include ++#include + + #ifdef _16BIT + typedef unsigned short value;