Hi @Cobra. You're right: That solution was indeed overcomplicated. PortfolioPerformance just uses the java executable found via $PATH, so it is sufficient to set PATH=$JAVA_HOME/bin:$PATH with $JAVA_HOME being set using archlinux-java-run. No need for bubblewrap as an additional dependency.
Still, a run script and a runtime dependency on archlinux-java-run is required. I prepared a git patch that can be applied to this repository via:
curl https://pastebin.com/raw/40HRFNb5 | git am
PortfolioPerformance 0.80.0 just came out. I hope you don't mind that I sneaked that update right into that patch 😉
Regarding the option to just set Java 21 as default: That's a valid solution if you just want to get PortfolioPerformance working. However, other Java software packages might require different versions. So, making sure that a valid version is used via a run script seems to me to be the best option.
Pinned Comments
Cobra commented on 2023-08-19 13:34 (UTC)
Thanks to Bevan, we now have a simple and elegant (compared to my attempt) workaround that lets the PKGBUILD download and use the most recent version of maven (currently 3.9.4). Should not need any intervention from you. :)