summarylogtreecommitdiffstats
path: root/graalvm-ee-rebuild-libpolyglot.hook
diff options
context:
space:
mode:
authorGodeps2023-02-09 21:02:14 +0100
committerGodeps2023-02-09 21:02:14 +0100
commit81b8752cd2a367eebe25e99fd47e431a34a798a7 (patch)
tree0260cd8fe2d56e068292b63acfa71747536d3561 /graalvm-ee-rebuild-libpolyglot.hook
parentbd814cbeac8724635f71eb71df47cb3bc0aaf19c (diff)
downloadaur-81b8752cd2a367eebe25e99fd47e431a34a798a7.tar.gz
new maintainer
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."