Sunday, January 01, 2023

Re: UPDATE: graphics/libraw and friends

On Sat Dec 24, 2022 at 01:44:06PM +0100, Rafael Sadowski wrote:
> Please find below a Christmas diff to update libraw. As usually upstream
> has broken ABI.
>
> - Update libraw to 0.21.0
> - Changelog: https://www.libraw.org/news/libraw-0-21-release
> - fix gegl04, gthumb, krita and libkdcraw with patches from upstream.
> Maintainer CC'ed.
> - Rename swap24 and swap32 to unbreak the build
>
> OK, Comments?

Any comments, any concerns?

>
> Rafael
>
>
> Index: graphics/gegl04/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/gegl04/Makefile,v
> retrieving revision 1.36
> diff -u -p -u -p -r1.36 Makefile
> --- graphics/gegl04/Makefile 14 Nov 2022 08:03:34 -0000 1.36
> +++ graphics/gegl04/Makefile 24 Dec 2022 12:34:05 -0000
> @@ -4,6 +4,7 @@ V= 0.4.40
> DISTNAME= gegl-${V}
> PKGNAME= gegl04-${V}
> EXTRACT_SUFX= .tar.xz
> +REVISION= 0
>
> SHARED_LIBS += gegl-0.4 0.5 # 0.439.1
>
> Index: graphics/gegl04/patches/patch-operations_external_raw-load_c
> ===================================================================
> RCS file: graphics/gegl04/patches/patch-operations_external_raw-load_c
> diff -N graphics/gegl04/patches/patch-operations_external_raw-load_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ graphics/gegl04/patches/patch-operations_external_raw-load_c 24 Dec 2022 12:34:05 -0000
> @@ -0,0 +1,17 @@
> +https://gitlab.gnome.org/GNOME/gegl/-/merge_requests/133
> +Index: operations/external/raw-load.c
> +--- operations/external/raw-load.c.orig
> ++++ operations/external/raw-load.c
> +@@ -114,8 +114,12 @@ prepare (GeglOperation *operation)
> + g_warning ("raw-load: Error Initializing raw library");
> + else
> + {
> ++#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
> ++ p->LibRaw->rawparams.shot_select = o->image_num;
> ++#else
> + p->LibRaw->params.shot_select = o->image_num;
> +
> ++

No comments:

Post a Comment