make-jpkg support for Oracle JDK-20
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
java-package (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm not sure why this package is still here if no one maintains it but I took the liberty of making a patch to add JDK-20 support, it probably works on jdk-19 and others as well
diff -Naur java-package-
--- java-package-
+++ java-package-
@@ -3,6 +3,15 @@
oracle_
j2se_release=0
+ # Update or GA release (jdk-20_
+ if [[ $archive_name =~ jdk-([0-
+ then
+ j2se_release=
+ j2se_arch=
+ j2se_version_
+ j2se_version=
+ fi
+
# Update or GA release (jdk-7u15-
if [[ $archive_name =~ jdk-([0-
then
@@ -105,7 +114,7 @@
fi
- oracle_
+ oracle_bin_jdk="jar jarsignern java javac javadoc javap jcmd jconsole jdb jdeprscan jdeps jfr jhsdb jimage jinfo jlink jmap jmod jpackage jps jrunscript jshell jstack jstat jstatd jwebserver keytool rmiregistry serialver"
j2se_run
fi
diff -Naur java-package-
--- java-package-
+++ java-package-
@@ -62,7 +62,6 @@
exit 1
fi
-
### Parse options
print_usage() {
@@ -73,9 +72,9 @@
Supported java binary distributions currently include:
* Oracle (http://
- - The Java Development Kit (JDK), version 6, 7 and 8
- - The Java Runtime Environment (JRE), version 6, 7 and 8
- - The Java API Javadoc, version 6, 7 and 8
+ - The Java Development Kit (JDK), versions 6, 7, 8, and 20
+ - The Java Runtime Environment (JRE), versions 6, 7, 8, and 20
+ - The Java API Javadoc, versions 6, 7, 8, and 20
(Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
The following options are recognized:
@@ -218,8 +217,6 @@
exit 1
}
-
-
# The environment variable tmp points to a secure temporary directory.
# There should be enough free disk space.
echo -n "Creating temporary directory: "
@@ -265,7 +262,8 @@
echo "Please make sure you are using a tar.gz or a self-extracting archive"
fi
-
+# The Java Development Kit (JDK), version 20
+# (Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
### exit
success=true
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: java-package 0.62
ProcVersionSign
Uname: Linux 6.2.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME-Flashback
Date: Sat Jun 17 13:44:37 2023
InstallationDate: Installed on 2022-09-30 (259 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: java-package
UpgradeStatus: Upgraded to lunar on 2023-06-03 (14 days ago)