pkgsrc-Bugs archive

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

pkg/56093: Update openjdk11 wrappers for removed/added tools



>Number:         56093
>Category:       pkg
>Synopsis:       Update openjdk11 wrappers for removed/added tools
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 03 20:10:00 +0000 2021
>Originator:     Andrius V
>Release:        pkgsrc-2021Q1
>Organization:
>Environment:
>Description:
JAVA_WRAPPERS list needs to be updated for lang/openjdk11, lang/adoptopenjdk11-bin, lang/openjdk-bin packages' Makefiles. Some tools were removed for various reasons and some were added after openjdk8 to facilitate new features, thus the list of them which was likely copied from previous release is incorrect. Ideally, the list should probably be synchronized with openjdk11/bin binaries. However, I prepared a patch for lang/openjdk11 with the list of those, which are still available in later releases (up to jdk16). I am also not sure why jhsdb is missing from this specific build but it may need to be added to  lang/adoptopenjdk11 and lang/openjdk-bin, those seem to have it according to PLIST.

Removed tools causing wrappers to fail on execution:
orbd
servertool
tnameserv
policytool
jhat
javah (replaced by javac -h)

Documentation for the tools can be found in below links (for most of them):
https://docs.oracle.com/en/java/javase/11/tools/
https://docs.oracle.com/en/java/javase/16/docs/specs/man/index.html

Regards,
Andrius V
>How-To-Repeat:

>Fix:
Index: lang/openjdk11/Makefile
==================================================================
--- lang/openjdk11/Makefile
+++ lang/openjdk11/Makefile
@@ -16,12 +16,15 @@
 DISTFILES=     ${DEFAULT_DISTFILES}
 EXTRACT_ONLY=  ${DISTNAME}${EXTRACT_SUFX}
 
 JAVA_NAME=     openjdk11
 JAVA_HOME=     ${PREFIX}/java/${JAVA_NAME}
-JAVA_WRAPPERS= jar java javac javadoc javah javap jcmd jhat jmap jps jstack \
-               keytool orbd policytool rmid rmiregistry servertool tnameserv
+JAVA_WRAPPERS=  jar jarsigner java javac javadoc javap jcmd jconsole jdb \
+               jdeprscan jdeps jfr jimage jinfo jlink jmap jmod jps \
+               jrunscript jshell jstack jstat jstatd keytool rmid \
+               rmiregistry serialver
+
 
 BUILD_DEPENDS+=                mozilla-rootcerts>=1.0.20140820nb2:../../security/mozilla-rootcerts
 
 GNU_CONFIGURE=         yes
 GNU_CONFIGURE_STRICT=  no # generates the configure script during the build

Index: lang/openjdk11/PLIST
==================================================================
--- lang/openjdk11/PLIST
+++ lang/openjdk11/PLIST
@@ -1,24 +1,33 @@
 @comment $NetBSD: PLIST,v 1.8 2021/02/01 15:51:55 ryoon Exp $
 bin/openjdk11-jar
+bin/openjdk11-jarsigner
 bin/openjdk11-java
 bin/openjdk11-javac
 bin/openjdk11-javadoc
-bin/openjdk11-javah
 bin/openjdk11-javap
 bin/openjdk11-jcmd
-bin/openjdk11-jhat
+bin/openjdk11-jconsole
+bin/openjdk11-jdb
+bin/openjdk11-jdeprscan
+bin/openjdk11-jdeps
+bin/openjdk11-jfr
+bin/openjdk11-jimage
+bin/openjdk11-jinfo
+bin/openjdk11-jlink
 bin/openjdk11-jmap
+bin/openjdk11-jmod
 bin/openjdk11-jps
+bin/openjdk11-jrunscript
+bin/openjdk11-jshell
 bin/openjdk11-jstack
+bin/openjdk11-jstat
+bin/openjdk11-jstatd
 bin/openjdk11-keytool
-bin/openjdk11-orbd
-bin/openjdk11-policytool
 bin/openjdk11-rmid
 bin/openjdk11-rmiregistry
-bin/openjdk11-servertool
-bin/openjdk11-tnameserv
+bin/openjdk11-serialver
 ${PLIST.aot}java/openjdk11/bin/jaotc${DBGEXT}
 ${PLIST.aot}java/openjdk11/bin/jaotc
 java/openjdk11/bin/jar
 java/openjdk11/bin/jar${DBGEXT}
 java/openjdk11/bin/jarsigner



Home | Main Index | Thread Index | Old Index