From b669d17e9d870b2bed9921b311a68cf78e5256a0 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 10 Dec 2023 10:09:22 +0100 Subject: [PATCH] del: jdk20-graalvm-bin --- .woodpecker.yml | 1 + aur.txt | 3 +- build.sh | 2 + jdk21-graalvm-bin/.SRCINFO | 25 ---------- jdk21-graalvm-bin/PKGBUILD | 35 -------------- .../graalvm-rebuild-libpolyglot.hook | 11 ----- jdk21-graalvm-bin/jdk21-graalvm-bin.install | 47 ------------------- 7 files changed, 4 insertions(+), 120 deletions(-) delete mode 100644 jdk21-graalvm-bin/.SRCINFO delete mode 100644 jdk21-graalvm-bin/PKGBUILD delete mode 100644 jdk21-graalvm-bin/graalvm-rebuild-libpolyglot.hook delete mode 100644 jdk21-graalvm-bin/jdk21-graalvm-bin.install diff --git a/.woodpecker.yml b/.woodpecker.yml index 4d1cfc9..e40868c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -13,6 +13,7 @@ steps: - "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" - mkdir /build - chown -R build:build . /build + - env - sudo -u build --preserve-env=PGP_KEY,PGP_PWD,PGP_ID sh -c 'mkdir ~/.gnupg && echo -e "default-cache-ttl 3600\nallow-preset-passphrase" > ~/.gnupg/gpg-agent.conf && echo "$PGP_KEY" | gpg --import --no-tty --batch --yes && echo "$PGP_PWD" | /usr/lib/gnupg/gpg-preset-passphrase --preset $PGP_ID' - sudo -u build --preserve-env=CI_REPO_CLONE_URL,CI_COMMIT_BRANCH,CI_PREV_COMMIT_SHA,GIT_PASSWORD sh -c './build.sh' secrets: [pgp_id, pgp_key, pgp_pwd, git_password] diff --git a/aur.txt b/aur.txt index 23b835e..2b96f96 100644 --- a/aur.txt +++ b/aur.txt @@ -25,14 +25,13 @@ httpdirfs iprange it87-dkms-git jdk17-graalvm-bin -jdk20-graalvm-bin +jdk21-graalvm-bin kodi-standalone-service kopia ksmbd-dkms ksmbd-tools memtest86-efi native-image-jdk17-bin -native-image-jdk19-bin ncurses5-compat-libs nginx-mod-fancyindex nordvpn-bin diff --git a/build.sh b/build.sh index 08e213c..ddb0c00 100755 --- a/build.sh +++ b/build.sh @@ -86,9 +86,11 @@ while read -r p; do cd .. done "graalvm-jdk${java_}-rebuild-libpolyglot.hook" - install -DTm644 "graalvm-jdk${java_}-rebuild-libpolyglot.hook" "$pkgdir/usr/share/libalpm/hooks/graalvm-jdk${java_}-rebuild-libpolyglot.hook" -} diff --git a/jdk21-graalvm-bin/graalvm-rebuild-libpolyglot.hook b/jdk21-graalvm-bin/graalvm-rebuild-libpolyglot.hook deleted file mode 100644 index 9f35151..0000000 --- a/jdk21-graalvm-bin/graalvm-rebuild-libpolyglot.hook +++ /dev/null @@ -1,11 +0,0 @@ -[Trigger] -Type = Path -Operation = Install -Operation = Upgrade -Operation = Remove -Target = usr/lib/jvm/java-JAVA-graalvm/* - -[Action] -Description = Suggest rebuilding GraalVM libpolyglot component -When = PostTransaction -Exec = /usr/bin/printf '%s\n' 'Changes to GraalVM detected.' 'You may need to rebuild libpolyglot (and possibly other components) with the following command:' ' /usr/lib/jvm/java-JAVA-graalvm/bin/gu rebuild libpolyglot' "Note that this will take a while (which is why it's not done automatically):" 'the package maintainer has experienced CPU times upwards of _four hours_.' '(However, it parallelizes fairly well, so wall-clock time will depend on your CPU.)' "If you don't rebuild libpolyglot, then --polyglot without --jvm probably won't work right." diff --git a/jdk21-graalvm-bin/jdk21-graalvm-bin.install b/jdk21-graalvm-bin/jdk21-graalvm-bin.install deleted file mode 100644 index 7755460..0000000 --- a/jdk21-graalvm-bin/jdk21-graalvm-bin.install +++ /dev/null @@ -1,47 +0,0 @@ -THIS_JDK='java-21-graalvm' - -fix_default() { - if [ ! -x /usr/bin/java ]; then - /usr/bin/archlinux-java unset - echo "" - else - /usr/bin/archlinux-java get - fi -} - -post_install() { - default=$(fix_default) - case ${default} in - "") - /usr/bin/archlinux-java set ${THIS_JDK} - ;; - ${THIS_JDK}) - # Nothing - ;; - *) - echo "Default Java environment is already set to '${default}'" - echo "See 'archlinux-java help' to change it" - ;; - esac - - if [ ! -f /etc/ssl/certs/java/cacerts ]; then - /usr/bin/update-ca-trust - fi -} - -post_upgrade() { - default=$(fix_default) - if [ -z "${default}" ]; then - /usr/bin/archlinux-java set ${THIS_JDK} - fi - - if [ ! -f /etc/ssl/certs/java/cacerts ]; then - /usr/bin/update-ca-trust - fi -} - -pre_remove() { - if [ "x$(fix_default)" = "x${THIS_JDK}" ]; then - /usr/bin/archlinux-java unset - fi -}