guix-commits
[Top][All Lists]
Advanced

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

01/09: gnu: freeimage: Adjust for libraw 0.21.


From: guix-commits
Subject: 01/09: gnu: freeimage: Adjust for libraw 0.21.
Date: Mon, 8 Jul 2024 10:14:11 -0400 (EDT)

z572 pushed a commit to branch kde-team
in repository guix.

commit 19477d2ae8302c1a3ccf0a1cd2cea5a966c288b2
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Mon Jul 8 20:57:19 2024 +0800

    gnu: freeimage: Adjust for libraw 0.21.
    
    * gnu/packages/patches/freeimage-libraw-0.21-compat.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Add it.
    * gnu/packages/image.scm (freeimage)[source](patches): Add it.
    
    Change-Id: Ief930d50be3e1f44074cd772756fb813bbad4389
---
 gnu/local.mk                                            |  1 +
 gnu/packages/image.scm                                  |  3 ++-
 gnu/packages/patches/freeimage-libraw-0.21-compat.patch | 15 +++++++++++++++
 3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index ad366bb9a4..19b69fc4b3 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1246,6 +1246,7 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/freecad-vtk-9.3.patch           \
   %D%/packages/patches/freedink-engine-fix-sdl-hints.patch     \
   %D%/packages/patches/freeimage-libtiff-compat.patch          \
+  %D%/packages/patches/freeimage-libraw-0.21-compat.patch      \
   %D%/packages/patches/freeimage-unbundle.patch                \
   %D%/packages/patches/freeimage-CVE-2020-21428.patch          \
   %D%/packages/patches/freeimage-CVE-2020-22524.patch          \
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 7d5fc3707e..a709822e5b 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1268,7 +1268,8 @@ supplies a generic doubly-linked list and some string 
functions.")
                 (search-patches "freeimage-unbundle.patch"
                                 "freeimage-libtiff-compat.patch"
                                 "freeimage-CVE-2020-21428.patch"
-                                "freeimage-CVE-2020-22524.patch")
+                                "freeimage-CVE-2020-22524.patch"
+                                "freeimage-libraw-0.21-compat.patch")
                 ;; Take one patch from Arch Linux that adds LibRaw 0.20 
compatibility.
                 (list (origin
                         (method url-fetch)
diff --git a/gnu/packages/patches/freeimage-libraw-0.21-compat.patch 
b/gnu/packages/patches/freeimage-libraw-0.21-compat.patch
new file mode 100644
index 0000000000..b7eb7a4035
--- /dev/null
+++ b/gnu/packages/patches/freeimage-libraw-0.21-compat.patch
@@ -0,0 +1,15 @@
+from 
https://gitlab.archlinux.org/archlinux/packaging/packages/freeimage/-/blob/69548d01896b32f30937a71220a9133055d84705/freeimage-libraw-0.21.patch
+
+diff -ru FreeImage.orig/Source/FreeImage/PluginRAW.cpp 
FreeImage/Source/FreeImage/PluginRAW.cpp
+--- FreeImage.orig/Source/FreeImage/PluginRAW.cpp      2022-12-18 
21:57:11.447801357 +0100
++++ FreeImage/Source/FreeImage/PluginRAW.cpp   2022-12-18 21:58:05.103433138 
+0100
+@@ -687,7 +687,7 @@
+               // --------------------------------------------
+ 
+               // (-s [0..N-1]) Select one raw image from input file
+-              RawProcessor->imgdata.params.shot_select = 0;
++              RawProcessor->imgdata.rawparams.shot_select = 0;
+               // (-w) Use camera white balance, if possible (otherwise, 
fallback to auto_wb)
+               RawProcessor->imgdata.params.use_camera_wb = 1;
+               // (-M) Use any color matrix from the camera metadata. This 
option only affects Olympus, Leaf, and Phase One cameras.
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]