pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libraw: update patch again



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Tue Dec 1 09:31:50 2026 +0100
Changeset:	2d23fabae990adfd1ee361796d49bd49f15dcd57

Modified Files:
	libraw/distinfo
	libraw/patches/patch-src_utils_read__utils.cpp

Log Message:
libraw: update patch again

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2d23fabae990adfd1ee361796d49bd49f15dcd57

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libraw/distinfo                                |  2 +-
 libraw/patches/patch-src_utils_read__utils.cpp | 36 +++++++-------------------
 2 files changed, 10 insertions(+), 28 deletions(-)

diffs:
diff --git a/libraw/distinfo b/libraw/distinfo
index bdd4be1820..6a7f137d39 100644
--- a/libraw/distinfo
+++ b/libraw/distinfo
@@ -4,4 +4,4 @@ BLAKE2s (LibRaw-0.22.3.tar.gz) = e8738e64d233412ff624c9c390f48bc203fae23cb3731dc
 SHA512 (LibRaw-0.22.3.tar.gz) = 69d463ffc896b7226807a9e926308dba1c0579e4e9bc759ceabba39eb5bdfe98091a4a7402b992b754fdc7a232bdfc2d4b1bae863fe7a689da8d019e5ae2e4f0
 Size (LibRaw-0.22.3.tar.gz) = 1689119 bytes
 SHA1 (patch-libraw__r.pc.in) = 6e5057a9cbdfba5782a7f6fd7c9f49333b4fb920
-SHA1 (patch-src_utils_read__utils.cpp) = 6e469cc98c58c3c59c0bc4abe80c68d2a5e7828d
+SHA1 (patch-src_utils_read__utils.cpp) = d69130fc4ffece610b71966b7f320595e3442d1f
diff --git a/libraw/patches/patch-src_utils_read__utils.cpp b/libraw/patches/patch-src_utils_read__utils.cpp
index 7c6a447228..4ea5055eba 100644
--- a/libraw/patches/patch-src_utils_read__utils.cpp
+++ b/libraw/patches/patch-src_utils_read__utils.cpp
@@ -2,50 +2,32 @@ $NetBSD$
 
 https://github.com/LibRaw/LibRaw/issues/911
 
---- src/utils/read_utils.cpp.orig	2026-10-24 09:24:46.000000000 +0000
+--- src/utils/read_utils.cpp.orig	2026-12-01 08:28:53.809206018 +0000
 +++ src/utils/read_utils.cpp
-@@ -17,12 +17,20 @@
+@@ -17,7 +17,7 @@
   */
  
  #include "../../internal/dcraw_defs.h"
 -#include <math.h>
--
--#if defined(_MSC_VER) && (_MSC_VER <= 1600) 
--#include <float.h>
--#define isnan(a) _isnan(a)
--#define isinf(x) (!_finite(x) && !_isnan(x))
-+#if defined(__cplusplus)
-+  #include <cmath>
-+  #define __libraw_isinf(x)  std::isinf(x)
-+  #define __libraw_isnan(x)  std::isnan(x)
-+#else
-+  #include <math.h>
-+  #if defined(_MSC_VER) && (_MSC_VER <= 1600) 
-+    #include <float.h>
-+    #define __libraw_isinf(x) (!_finite(x) && !_isnan(x))
-+    #define __libraw_isnan(a) _isnan(a)
-+  #else
-+    #define __libraw_isinf(x)  isinf(x)
-+    #define __libraw_isnan(x)  isnan(x)
-+  #endif
- #endif
++#include <cmath>
  
- 
-@@ -87,7 +95,7 @@ float libraw_int_to_float(int i)
+ #if defined(_MSC_VER) && (_MSC_VER <= 1600) 
+ #include <float.h>
+@@ -87,7 +87,7 @@ float libraw_int_to_float(int i)
      float f;
    } u;
    u.i = i;
 -  if (isnan(u.f) || isinf(u.f))
-+  if (__libraw_isnan(u.f) || __libraw_isinf(u.f))
++  if (std::isnan(u.f) || std::isinf(u.f))
  	  return 0.f;
    return u.f;
  }
-@@ -126,7 +134,7 @@ double LibRaw::getreal(int type)
+@@ -126,7 +126,7 @@ double LibRaw::getreal(int type)
      rev = 7 * ((order == 0x4949) == (ntohs(0x1234) == 0x1234));
      for (i = 0; i < 8; i++)
        u.c[i ^ rev] = fgetc(ifp);
 -    if (isnan(u.d) || isinf(u.d))
-+    if (__libraw_isnan(u.d) || __libraw_isinf(u.d))
++    if (std::isnan(u.d) || std::isinf(u.d))
        return 0.f;
      return u.d;
    default:


Home | Main Index | Thread Index | Old Index