pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/openjdk11 openjdk11: Fix more NetBSD kqueue values



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2aed287dc4b
branches:  trunk
changeset: 376145:d2aed287dc4b
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sun Apr 03 00:30:19 2022 +0000

description:
openjdk11: Fix more NetBSD kqueue values

Bump PKGREVISION.

diffstat:

 lang/openjdk11/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r cd1f7fbbf1b0 -r d2aed287dc4b lang/openjdk11/Makefile
--- a/lang/openjdk11/Makefile   Sun Apr 03 00:24:23 2022 +0000
+++ b/lang/openjdk11/Makefile   Sun Apr 03 00:30:19 2022 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2022/03/01 13:51:44 ryoon Exp $
+# $NetBSD: Makefile,v 1.41 2022/04/03 00:30:19 ryoon Exp $
 
 DISTNAME=      jdk11u-${GITHUB_TAG:C/\+/-/}
 PKGNAME=       openjdk11-1.${GITHUB_TAG:C/\+/./:C/jdk-([.0-9]+).*/\1/}
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=battleblow/}
 GITHUB_PROJECT=        jdk11u
@@ -126,13 +127,15 @@
 SUBST_VARS.fontpaths=          PREFIX BUILDLINK_PREFIX.fontconfig
 
 .if ${OPSYS} == "NetBSD"
-# NetBSD's EVFILT_* are different from FreeBSD/OpenBSD's values.
+# NetBSD's EVFILT_* EV_* are different from FreeBSD/OpenBSD's values.
 SUBST_CLASSES+=                        kqueue
 SUBST_STAGE.kqueue=            pre-configure
 SUBST_MESSAGE.kqueue=          fixing kqueue filter values
 SUBST_FILES.kqueue=            src/java.base/bsd/classes/sun/nio/ch/KQueue.java
 SUBST_SED.kqueue=              -e 's/static final int EVFILT_READ  = -1;/static final int EVFILT_READ  = 0;/'
 SUBST_SED.kqueue+=             -e 's/static final int EVFILT_WRITE = -2;/static final int EVFILT_WRITE = 1;/'
+SUBST_SED.kqueue+=             -e 's/static final int EV_ONESHOT = 0x0010;/static final int EV_ONESHOT = 0x0004;/'
+SUBST_SED.kqueue+=             -e 's/static final int EV_CLEAR   = 0x0020;/static final int EV_CLEAR   = 0x0008;/'
 .endif
 
 PLIST_VARS+=                   aot internal_vm_compiler jvmci



Home | Main Index | Thread Index | Old Index