git: f5a2b0b4dc52 - main - graphics/lensfun: Add patch to fix segfaults in lensfun

From: Rodrigo Osorio <rodrigo_at_FreeBSD.org>
Date: Mon, 18 Nov 2024 13:59:36 UTC
The branch main has been updated by rodrigo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f5a2b0b4dc52ccebe24f871f2debc1ccb614ffe2

commit f5a2b0b4dc52ccebe24f871f2debc1ccb614ffe2
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2024-11-18 12:14:40 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2024-11-18 13:57:27 +0000

    graphics/lensfun: Add patch to fix segfaults in lensfun
    
    Apply unreleased lensfun commit 6142618 as a patch to
    fix segfaults in lensfun when processing Nikon D750 NEF
    raw files with ufraw.
    
    PR:             278565
    Reported by:    Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
    Tested by:              Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
    Approved by:    danfe (maintainer)
---
 graphics/lensfun/Makefile | 5 ++++-
 graphics/lensfun/distinfo | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/graphics/lensfun/Makefile b/graphics/lensfun/Makefile
index 6fb7fb206733..b45b684d9a76 100644
--- a/graphics/lensfun/Makefile
+++ b/graphics/lensfun/Makefile
@@ -1,9 +1,12 @@
 PORTNAME=	lensfun
 PORTVERSION=	0.3.95
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
 
+PATCH_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/commit/
+PATCHFILES+=	6142618a17d29c396d595ede3d0bdd5c648f3c2e.diff:-p1
+
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Library for fixing lens geometry distortions
 WWW=		https://lensfun.github.io/
diff --git a/graphics/lensfun/distinfo b/graphics/lensfun/distinfo
index 49ef635fc4fa..d9a94a275234 100644
--- a/graphics/lensfun/distinfo
+++ b/graphics/lensfun/distinfo
@@ -1,3 +1,5 @@
 TIMESTAMP = 1530269580
 SHA256 (lensfun-0.3.95.tar.gz) = 82c29c833c1604c48ca3ab8a35e86b7189b8effac1b1476095c0529afb702808
 SIZE (lensfun-0.3.95.tar.gz) = 2731561
+SHA256 (6142618a17d29c396d595ede3d0bdd5c648f3c2e.diff) = 435398e5848bc9e04054d7601f8460346e3ae6e9ac5c46623dc6e6dd32cc9227
+SIZE (6142618a17d29c396d595ede3d0bdd5c648f3c2e.diff) = 2166