SHA256
1
0
forked from pool/dcraw
Dominique Leuenberger 2024-03-03 19:18:13 +00:00 committed by Git OBS Bridge
commit c1bd3472c7
3 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 1 20:52:46 UTC 2024 - Michal Jireš <michal.jires@suse.com>
- Add fix_gcc14_errors.patch (bsc#1220467)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 22 07:54:56 UTC 2024 - Michael Vetter <mvetter@suse.com> Thu Feb 22 07:54:56 UTC 2024 - Michael Vetter <mvetter@suse.com>

View File

@ -48,6 +48,7 @@ Patch4: dcraw-CVE-2018-5801.patch
Patch5: iowrappers.patch Patch5: iowrappers.patch
Patch6: dcraw-CVE-2021-3624.patch Patch6: dcraw-CVE-2021-3624.patch
Patch7: dcraw-glibc-2.38.patch Patch7: dcraw-glibc-2.38.patch
Patch8: fix_gcc14_errors.patch
BuildRequires: gettext-runtime BuildRequires: gettext-runtime
BuildRequires: libjasper-devel BuildRequires: libjasper-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
@ -70,6 +71,7 @@ cp -a %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} .
%patch -P 5 -p1 %patch -P 5 -p1
%patch -P 6 -p1 %patch -P 6 -p1
%patch -P 7 -p1 %patch -P 7 -p1
%patch -P 8 -p1
%build %build
export CFLAGS="%{optflags} -fno-strict-aliasing -fstack-protector-all" export CFLAGS="%{optflags} -fno-strict-aliasing -fstack-protector-all"

24
fix_gcc14_errors.patch Normal file
View File

@ -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 <ctype.h>
#include <math.h>
#include <setjmp.h>
Index: dcraw/fujiturn.c
===================================================================
--- dcraw.orig/fujiturn.c
+++ dcraw/fujiturn.c
@@ -15,6 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <arpa/inet.h>
#ifdef _16BIT
typedef unsigned short value;