git: f4f80af577fc - main - java/bootstrap-openjdk17: Require compat14x

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Wed, 13 Aug 2025 12:31:12 UTC
The branch main has been updated by des:

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

commit f4f80af577fcbf86221c1af5c2cab0ff2d1fa975
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-08-13 12:21:27 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-08-13 12:30:41 +0000

    java/bootstrap-openjdk17: Require compat14x
    
    This port installs precompiled binaries which rely on libutil.so.9,
    which is replaced by libutil.so.10 in FreeBSD 15 and up.
    
    Note that this only helps platforms for which misc/compat14x is
    available, i.e. i386, amd64, and aarch64.  The port remains broken
    on powerpc, powerpc64, and powerpc64le.
    
    Differential Revision:  https://reviews.freebsd.org/D51873
---
 java/bootstrap-openjdk17/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/java/bootstrap-openjdk17/Makefile b/java/bootstrap-openjdk17/Makefile
index 2398999699b6..f5b98b039baa 100644
--- a/java/bootstrap-openjdk17/Makefile
+++ b/java/bootstrap-openjdk17/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	openjdk17
 PORTVERSION=	17.0.1.12.1
+PORTREVISION=	1
 CATEGORIES=	java devel
 MASTER_SITES=	LOCAL/glewis/bootstrap-openjdk17 \
 		LOCAL/pkubaj/bootstrap-openjdk17
@@ -28,6 +29,10 @@ INSTALLDIR=	${STAGEDIR}${PREFIX}/${JDK_ROOT}
 
 .include <bsd.port.options.mk>
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500000
+RUN_DEPENDS+=	compat14x-${ARCH}>=0:misc/compat14x
+.endif
+
 .if ${ARCH} == powerpc
 PLIST_SUB+=	NOT_PPC="@comment "
 .else