Serendipitously, I was troubleshooting this last night. I got it to build by updating the source and target compiler version as so:
diff --git a/PKGBUILD b/PKGBUILD
index c2c327c..3c7fdc3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,10 +29,9 @@ esac
prepare() {
cd tuxguitar-$pkgver-src
- for file in pom.xml TuxGuitar-lib/pom.xml; do
- sed -i -e 's|<source>1\.6</source>|<source>1\.7</source>|g' \
- -e 's|<target>1\.6</target>|<target>1\.7</target>|g' "$file"
- done
+ find . -type f -name "*pom.xml" -exec \
+ sed -i -e 's|<source>1\.7</source>|<source>1\.8</source>|g' \
+ -e 's|<target>1\.7</target>|<target>1\.8</target>|g' {} \;
sed -i 's|http://maven-eclipse.github.io/maven|https://maven-eclipse.github.io/maven|' pom.xml
}
However, I'm still having the issue which led me to rebuild tuxguitar on my system in the first place. When running tuxguitar, I get this:
Error: LinkageError occurred while loading main class org.herac.tuxguitar.app.TGMainSingleton
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-20-openjdk/lib/libnio.so: /usr/lib/jvm/java-20-openjdk/lib/libnio.so: undefined symbol: reuseport_available
Edit: LinXuan's fix, below, solves that problem.
Pinned Comments
Visne commented on 2024-04-13 10:54 (UTC)
I've adopted the package and updated to 1.6.2. Sadly this means that GTK2 support is dropped (SWT dropped support back in 2018...). I'm not sure if anyone was using this on Arch Linux ARM, but temporarily support for that is also dropped. They did some work on that upstream though but it is not part of 1.6.2 yet, so hopefully it can be supported after the next release.
Let me know if you run into any issues.