summarylogtreecommitdiffstats
path: root/graalvm-ee-rebuild-libpolyglot.hook
blob: 3a8cfb845dbdc49088efda7163fd9a2156b51f81 (plain)
1
2
3
4
5
6
7
8
9
10
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."