Package Details: jdk9-openj9-bin 9.181-2

Git Clone URL: https://aur.archlinux.org/jdk9-openj9-bin.git (read-only)
Package Base: jdk9-openj9-bin
Description: Eclipse (former IBM) OpenJ9 with openjdk9
Upstream URL: https://adoptopenjdk.net/index.html?variant=openjdk9-openj9
Licenses: custom
Provides: java-environment=9, java-runtime=9, java-runtime-headless=9
Submitter: WFCody
Maintainer: Myrddin
Last Packager: WFCody
Votes: 6
Popularity: 0.004734
First Submitted: 2017-09-22 15:41
Last Updated: 2017-11-06 12:10

Required by (1000)

Sources (1)

Latest Comments

WFCody commented on 2018-09-23 10:40

In my mind this package is now superseded by the jdk10 version.

Myrddin commented on 2018-08-28 16:24

I apologize for the inconvenience this may cause, but during renaming, this package couldn't be updated with a different name without causing this: https://aur.archlinux.org/packages/jdk10-openjdk-openj9-bin/#comment-660680

I've made you co-maintainer on the new package. Majority of the work was done by you; I just updated some things, so I'd like to thank you for the scripting work and research! I appreciate it as a member of our community.

WFCody commented on 2018-08-27 09:17

Thanks! I made you co-maintainer so you can push your changes (can be easier to track in git history that way)

Myrddin commented on 2018-08-27 03:07

pkgname=jdk10-openjdk-openj9-bin
_pkgver_minor="0.2.13"
_pkgver_split="0.2"
_pkgver_build="13"
_pkgver_minweb="0.2%2B13"
_openj_ver="0.9.0"
_majver_java="10"
pkgver=${_majver_java}.${_pkgver_split}u${_pkgver_build}
_pkgsum_name="OpenJDK${_majver_java}-OPENJ9_x64_Linux_jdk-${pkgver}_openj9-${_openj_ver}.sha256.txt"
_pkgsum_sha256="wget -q https://github.com/AdoptOpenJDK/openjdk10-openj9-releases/releases/download/jdk-${_majver_java}.${_pkgver_minweb}_openj9-${_openj_ver}/${_pkgsum_name} && cut -d' ' -f1 ${_pkgsum_name}"
pkgrel=1
pkgdesc="Eclipse (former IBM) OpenJ9 with openjdk10"
arch=('x86_64')
url="https://adoptopenjdk.net/releases.html?variant=openjdk10&jvmVariant=openj9#x64_linux"
license=('custom')
depends=('java-environment-common' 'ca-certificates-utils' 'nss')
provides=(
'java-environment=10'
'java-runtime=10'
'java-runtime-headless=10'
)
makedepends=('coreutils' 'bash' 'wget')
source=("https://github.com/AdoptOpenJDK/openjdk${_majver_java}-openj9-releases/releases/download/jdk-${_majver_java}.${_pkgver_minweb}_openj9-${_openj_ver}/OpenJDK${_majver_java}-OPENJ9_x64_Linux_jdk-${pkgver}_openj9-${_openj_ver}.tar.gz")
noextract=("OpenJDK${_majver_java}-OPENJ9_x64_Linux_jdk-${pkgver}_openj9-${_pkgver_minweb}.tar.gz")
# https://github.com/AdoptOpenJDK/openjdk9-openj9-releases/releases/download/jdk-9%2B181/OpenJDK9-OPENJ9_x64_Linux_jdk-9.181.sha256.txt
# extract automatically? [bash -c "${_pkgsum_sha256}"] Could this work?
sha256sums=('1ef0dab3853b2f3666091854ef8149fcb85970254558d5d62cfa9446831779d1')

package() {
    cd "$srcdir"

    mkdir -p "${pkgdir}/usr/lib/jvm/"
    tar -xf OpenJDK${_majver_java}-OPENJ9_x64_Linux_jdk-${pkgver}_openj9-${_openj_ver}.tar.gz -C "${pkgdir}/usr/lib/jvm/"
    mv "${pkgdir}/usr/lib/jvm/jdk-${_majver_java}.${_pkgver_split}+${_pkgver_build}" "${pkgdir}/usr/lib/jvm/java-${_majver_java}-j9"
    mkdir -p "${pkgdir}/usr/share/licenses"
    ln -s "/usr/lib/jvm/java-${_majver_java}-j9/legal" "${pkgdir}/usr/share/licenses/java-${_majver_java}-j9"

}

Here's a contribution. I hope you can find a way to make the sha256sum source a variable. I still couldn't get any variable expansion in checksums to work. This is my first contribution. I refactored naming to match arch packages, but it definitely needs more testing.

WFCody commented on 2017-11-06 12:13

If you have a good automated way to extract the sha sum from the text file or from github in the PKGBUILD, that would be appreciated.

I removed the renaming of the tar ball. I simply did it for convenience in the rest of the PKGBUILD.

timofonic commented on 2017-11-05 18:18

Your sha256 is outdated. Can a url be put instead the sha256 numbers directly in the package?

https://github.com/AdoptOpenJDK/openjdk9-openj9-releases/releases

https://github.com/AdoptOpenJDK/openjdk9-openj9-releases/releases/download/jdk-9%2B181/OpenJDK9-OPENJ9_x64_Linux_jdk-9.181.sha256.txt
https://github.com/AdoptOpenJDK/openjdk9-openj9-releases/releases/download/jdk-9%2B181/OpenJDK9-OPENJ9_x64_Linux_jdk-9.181.tar.gz

this pkg: 74c7656a1f538476fe01471255e2d2bae57dfbd36cc6ab3bccb9c98b486c1a48
the file: e0d31d25adb81005eea1ad1095f8d48c1df9da02c39d4b02b201c55f8bb4dca3

Why do you rename the file to jdk9-j9.tar.gz?

Can this file be parsed in the PKGBUILD instead needing to update the PKGBUILD manually?
https://github.com/AdoptOpenJDK/openjdk9-releases/blob/master/latest_release.json

timofonic commented on 2017-11-05 17:59

-> Downloading jdk9-j9.tar.gz...
** Resuming transfer from byte position 109165105
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 633 0 633 0 0 633 0 --:--:-- --:--:-- --:--:-- 1065
100 86.0M 100 86.0M 0 0 1159k 0 0:01:16 0:01:16 --:--:-- 837k
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
==> Sources are ready.
:: failed to verify integrity or prepare jdk9-openj9-bin package