[packages/libraw] - use glibc types for int64 typedefs, rel 2
baggins
baggins at pld-linux.org
Mon Feb 14 22:30:42 CET 2022
commit 18b6070a716b296ee14a122b6cac586b0df0945c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Feb 14 22:30:18 2022 +0100
- use glibc types for int64 typedefs, rel 2
int64.patch | 26 ++++++++++++++++++++++++++
libraw.spec | 4 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/libraw.spec b/libraw.spec
index 661704e..7193da5 100644
--- a/libraw.spec
+++ b/libraw.spec
@@ -7,12 +7,13 @@ Summary: LibRaw - a library for reading RAW files
Summary(pl.UTF-8): LibRaw - biblioteka do odczytu plików RAW
Name: libraw
Version: 0.20.2
-Release: 1
+Release: 2
License: LGPL v2.1 or CDDL v1.0
Group: Libraries
#Source0Download: http://www.libraw.org/download#stable
Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz
# Source0-md5: 2e5bedb59ea433e2d2ef6bbbe5253179
+Patch0: int64.patch
URL: https://www.libraw.org/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -87,6 +88,7 @@ Statyczna biblioteka LibRaw.
%prep
%setup -q -n LibRaw-%{version}
+%patch0 -p1
%build
%{__libtoolize}
diff --git a/int64.patch b/int64.patch
new file mode 100644
index 0000000..86672f6
--- /dev/null
+++ b/int64.patch
@@ -0,0 +1,26 @@
+--- LibRaw-0.20.2/libraw/libraw_types.h~ 2020-10-15 07:06:07.000000000 +0200
++++ LibRaw-0.20.2/libraw/libraw_types.h 2022-02-14 22:27:43.313433599 +0100
+@@ -92,8 +92,8 @@
+ typedef __int64 INT64;
+ typedef unsigned __int64 UINT64;
+ #else
+-typedef long long INT64;
+-typedef unsigned long long UINT64;
++typedef int64_t INT64;
++typedef uint64_t UINT64;
+ #endif
+
+ typedef unsigned char uchar;
+--- LibRaw-0.20.2/internal/defines.h~ 2020-10-15 07:06:07.000000000 +0200
++++ LibRaw-0.20.2/internal/defines.h 2022-02-14 22:29:12.905376208 +0100
+@@ -60,8 +60,8 @@
+ #include <unistd.h>
+ #include <utime.h>
+ #include <netinet/in.h>
+-typedef long long INT64;
+-typedef unsigned long long UINT64;
++typedef int64_t INT64;
++typedef uint64_t UINT64;
+ #endif
+
+ #ifdef NODEPS
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libraw.git/commitdiff/18b6070a716b296ee14a122b6cac586b0df0945c
More information about the pld-cvs-commit
mailing list