Package: tuxguitar
Version: 1.6.6+dfsg1-2
Severity: important
Tags: patch
X-Debbugs-Cc:
m@juchem.pro
Opening Guitar Pro 7 files in tuxguitar 1.6.6 causes a NullInputStream exception to occur, preventing the file from being opened.
A quick research pointed me to an upstream issue suggesting it has to do
with a missing dependency to commons-io (
https://github.com/helge17/tuxguitar/issues/283).
There's already a transitive dependency from tuxguitar's package to
commons-io (through commons-compress), so I'll point it out but won't
opine on whether or not the package itself should have a direct
dependency to commons-io.
As far as the fix that worked for me, it was to add commons-io the
classpath by changing `tuxguitar.sh`. I've appended the patch to the
bottom of this email, which sould apply cleanly to Debian's source
package for tuxguitar 1.6.6+dfsg1-2.
Regards,
-mj
-- System Information:
Debian Release: trixie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.17-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages tuxguitar depends on:
ii default-jre 2:1.21-76
ii fluid-soundfont-gm 3.1-5.3
ii libcommons-compress-java 1.27.1-2
ii libeclipse-e4-ui-widgets-java 1.4.0+eclipse4.29-1
ii libswt-cairo-gtk-4-jni 4.29.0-1
Versions of packages tuxguitar recommends:
ii fonts-wqy-zenhei 0.9.45-8
pn libswt-webkit-gtk-4-jni <none>
Versions of packages tuxguitar suggests:
pn lilypond <none>
-- no debconf information
Patch follows:
--- a/desktop/build-scripts/common-resources/common-linux/tuxguitar.sh
+++ b/desktop/build-scripts/common-resources/common-linux/tuxguitar.sh
@@ -12,6 +12,7 @@ CLASSPATH=${CLASSPATH}:/usr/share/java/itext5.jar
CLASSPATH=${CLASSPATH}:/usr/share/java/itext5-pdfa.jar
CLASSPATH=${CLASSPATH}:/usr/share/java/itext5-xmlworker.jar
CLASSPATH=${CLASSPATH}:/usr/share/java/commons-compress.jar +CLASSPATH=${CLASSPATH}:/usr/share/java/commons-io.jar
CLASSPATH=${CLASSPATH}:${TG_DIR}/lib/*
CLASSPATH=${CLASSPATH}:${TG_DIR}/dist/
##MAINCLASS
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)