Package Details: jdk9-openj9-bin 1:9.0.4b12_openj9_0.9.0-2

Git Clone URL: https://aur.archlinux.org/jdk9-openj9-bin.git (read-only, click to copy)
Package Base: jdk9-openj9-bin
Description: Eclipse (former IBM) OpenJ9 with openjdk9
Upstream URL: https://adoptopenjdk.net/index.html?variant=openjdk9&jvmVariant=openj9
Licenses: GPL2
Conflicts: jdk9-openj9, jdk9-openj9-bin
Provides: java-environment, java-environment-openjdk, java-runtime, java-runtime-headless, java-runtime-headless-openjdk, java-runtime-openjdk
Submitter: WFCody
Maintainer: None
Last Packager: TheGoliath
Votes: 7
Popularity: 0.000000
First Submitted: 2017-09-22 15:41 (UTC)
Last Updated: 2020-05-22 13:02 (UTC)

Required by (2812)

Sources (1)

Pinned Comments

Latest Comments

1 2 Next › Last »

WFCody commented on 2019-02-12 17:39 (UTC)

Yes it can be deleted (I am not using it any more)

fryfrog commented on 2019-02-12 16:49 (UTC) (edited on 2019-02-12 16:49 (UTC) by fryfrog)

The source URL in this package doesn't even work. And I guess jdk10 replaces it. Should this be deleted?

WFCody commented on 2018-09-23 10:40 (UTC)

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

Myrddin commented on 2018-08-28 16:24 (UTC)

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 (UTC)

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 (UTC) (edited on 2018-08-27 03:33 (UTC) by Myrddin)

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 (UTC)

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 (UTC)

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