summarylogtreecommitdiffstats
path: root/graalvm-ee-rebuild-libpolyglot.hook
diff options
context:
space:
mode:
authorGodeps2023-02-11 16:57:45 +0100
committerGodeps2023-02-11 16:57:45 +0100
commit45ad0b4a373f2fc6dc85e0e86940472b5281cbf1 (patch)
tree05310e68ed634b9cd5c3fcb8e0fe299bcb757898 /graalvm-ee-rebuild-libpolyglot.hook
downloadaur-jdk19-graalvm-ee-bin.tar.gz
Initial Push.
Diffstat (limited to 'graalvm-ee-rebuild-libpolyglot.hook')
-rw-r--r--graalvm-ee-rebuild-libpolyglot.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/graalvm-ee-rebuild-libpolyglot.hook b/graalvm-ee-rebuild-libpolyglot.hook
new file mode 100644
index 000000000000..3a8cfb845dbd
--- /dev/null
+++ b/graalvm-ee-rebuild-libpolyglot.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/jvm/java-JAVA-graalvm-ee/*
+
+[Action]
+Description = Suggest rebuilding GraalVM EE libpolyglot component
+When = PostTransaction
+Exec = /usr/bin/printf '%s\n' 'Changes to GraalVM EE detected.' 'You may need to rebuild libpolyglot (and possibly other components) with the following command:' ' /usr/lib/jvm/java-JAVA-graalvm-ee/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."