forked from pool/dcraw
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
This commit is contained in:
parent
95e42854b8
commit
4727326984
@ -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>
|
||||
|
||||
|
@ -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"
|
||||
|
24
fix_gcc14_errors.patch
Normal file
24
fix_gcc14_errors.patch
Normal 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;
|
Loading…
Reference in New Issue
Block a user