[packages/dcraw] - fixes for missing includes in fujiturn and fuji_green; release 3

qboosh qboosh at pld-linux.org
Sat Sep 27 19:07:14 CEST 2025


commit 6f5d9d92cb194b4d5eb92bb51b414ad0a7a0746a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 27 19:10:16 2025 +0200

    - fixes for missing includes in fujiturn and fuji_green; release 3

 dcraw.spec                |  8 ++++++--
 fuji_green-includes.patch | 11 +++++++++++
 fujiturn-includes.patch   | 10 ++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/dcraw.spec b/dcraw.spec
index cc254b1..cbd12fa 100644
--- a/dcraw.spec
+++ b/dcraw.spec
@@ -2,7 +2,7 @@ Summary:	Raw Digital Photo Decoder
 Summary(pl.UTF-8):	Dekoder zdjęć cyfrowych w formacie raw
 Name:		dcraw
 Version:	9.28.0
-Release:	2
+Release:	3
 Epoch:		1
 License:	Free + GPL v2+ (for some parts of code)
 Group:		Applications/Graphics
@@ -14,6 +14,8 @@ Source2:	https://www.dechifro.org/dcraw/fujiturn.c
 # NoSource2-md5:	6d503302bb06f25d58ba031a54206f3b
 Source3:	https://www.dechifro.org/dcraw/fuji_green.c
 # NoSource3-md5:	c100db2b972b68b44659ddd5740d016f
+Patch0:		fujiturn-includes.patch
+Patch1:		fuji_green-includes.patch
 URL:		https://www.dechifro.org/dcraw/
 BuildRequires:	gettext-tools
 BuildRequires:	jasper-devel
@@ -36,12 +38,14 @@ zdjęcia z aparatów cyfrowych i tworzy z nich pliki w formacie PPM
 cp %{SOURCE1} .
 cp %{SOURCE2} .
 cp %{SOURCE3} .
+%patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__cc} %{rpmldflags} -o dcraw %{rpmcflags} %{rpmcppflags} -Wall -DLOCALEDIR=\"%{_datadir}/locale/\" dcraw.c -lm -ljasper -ljpeg -llcms
 %{__cc} %{rpmldflags} -o clean_crw %{rpmcflags} %{rpmcppflags} -Wall clean_crw.c
 %{__cc} %{rpmldflags} -o fujiturn %{rpmcflags} %{rpmcppflags} -Wall fujiturn.c -D_16BIT
-%{__cc} %{rpmldflags} -o fuji_green %{rpmcflags} %{rpmcppflags} -Wall fuji_green.c -lm
+%{__cc} %{rpmldflags} -o fuji_green %{rpmcflags} %{rpmcppflags} -Wall fuji_green.c -lm -D_XOPEN_SOURCE=600
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/fuji_green-includes.patch b/fuji_green-includes.patch
new file mode 100644
index 0000000..aa65e5f
--- /dev/null
+++ b/fuji_green-includes.patch
@@ -0,0 +1,11 @@
+--- dcraw/fuji_green.c.orig	2025-09-27 18:49:11.184529191 +0200
++++ dcraw/fuji_green.c	2025-09-27 18:58:07.434232129 +0200
+@@ -11,6 +11,8 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
++#include <netinet/in.h>
+ 
+ #define ushort UshORt
+ typedef unsigned char uchar;
diff --git a/fujiturn-includes.patch b/fujiturn-includes.patch
new file mode 100644
index 0000000..5c8b46c
--- /dev/null
+++ b/fujiturn-includes.patch
@@ -0,0 +1,10 @@
+--- dcraw/fujiturn.c.orig	2025-09-27 18:44:25.866247039 +0200
++++ dcraw/fujiturn.c	2025-09-27 18:47:58.954120219 +0200
+@@ -15,6 +15,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <fcntl.h>
++#include <netinet/in.h>
+ 
+ #ifdef _16BIT
+ typedef unsigned short value;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dcraw.git/commitdiff/6f5d9d92cb194b4d5eb92bb51b414ad0a7a0746a



More information about the pld-cvs-commit mailing list