git: 09e88c06e382 - main - science/openmodelica: Backport bug fix of improper cast from int to pointer

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 25 Feb 2023 20:32:02 UTC
The branch main has been updated by yuri:

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

commit 09e88c06e382a659622ad970d7626819428602d0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-25 20:29:43 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-25 20:31:58 +0000

    science/openmodelica: Backport bug fix of improper cast from int to pointer
    
    PR:             269815
    Reported by:    Trond.Endrestol@ximalas.info
---
 science/openmodelica/Makefile | 3 +++
 science/openmodelica/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/science/openmodelica/Makefile b/science/openmodelica/Makefile
index e26c0edbf2c8..9106edbf6a84 100644
--- a/science/openmodelica/Makefile
+++ b/science/openmodelica/Makefile
@@ -6,6 +6,9 @@ MASTER_SITES=	https://build.openmodelica.org/omc/bootstrap/:bootstrap
 DISTFILES=	sources.tar.gz:bootstrap
 DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
 
+PATCH_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/commit/
+PATCHFILES=	01b6764df51f4f097d1c2e093e945ebd9a2f15a3.patch:-p1 # backport of https://github.com/OpenModelica/OpenModelica/pull/10261
+
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Modelica-based modeling and simulation environment
 WWW=		https://openmodelica.org/
diff --git a/science/openmodelica/distinfo b/science/openmodelica/distinfo
index a77912c426bb..75b84eb1434f 100644
--- a/science/openmodelica/distinfo
+++ b/science/openmodelica/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1670970232
+TIMESTAMP = 1677352146
 SHA256 (openmodelica-1.20.0/sources.tar.gz) = d41b20ccb9395189fa1edd6dd86ae09023571876f2504904366a91d3491a8c19
 SIZE (openmodelica-1.20.0/sources.tar.gz) = 3322762
 SHA256 (openmodelica-1.20.0/OpenModelica-OpenModelica-v1.20.0_GH0.tar.gz) = 0b04923cc4d0b5d9e29679864a1d1b8e6ec8ecd7f456779dfe5212886f644f5c
@@ -19,3 +19,5 @@ SHA256 (openmodelica-1.20.0/OpenModelica-OMSens-66b920b_GH0.tar.gz) = f0982350a9
 SIZE (openmodelica-1.20.0/OpenModelica-OMSens-66b920b_GH0.tar.gz) = 8870024
 SHA256 (openmodelica-1.20.0/OpenModelica-OMSens_Qt-ef85128_GH0.tar.gz) = a6db8a107098a1f2c999923e020a5f337485a00057771ac9407a8af373278493
 SIZE (openmodelica-1.20.0/OpenModelica-OMSens_Qt-ef85128_GH0.tar.gz) = 210584
+SHA256 (openmodelica-1.20.0/01b6764df51f4f097d1c2e093e945ebd9a2f15a3.patch) = 8a112c6efbc063425a1f8090955e44cf1b933d05ad523a028c5df55adb358d55
+SIZE (openmodelica-1.20.0/01b6764df51f4f097d1c2e093e945ebd9a2f15a3.patch) = 1038