Package Details: tuxguitar 1.6.4-1

Git Clone URL: https://aur.archlinux.org/tuxguitar.git (read-only, click to copy)
Package Base: tuxguitar
Description: A multitrack guitar tablature editor and player
Upstream URL: https://www.tuxguitar.app/
Licenses: LGPL-3.0-or-later
Replaces: tuxguitar-common, tuxguitar-gtk2
Submitter: Barthalion
Maintainer: Visne
Last Packager: Visne
Votes: 64
Popularity: 0.51
First Submitted: 2018-01-05 17:06 (UTC)
Last Updated: 2024-08-23 18:47 (UTC)

Dependencies (19)

Required by (1)

Sources (3)

Pinned Comments

Visne commented on 2024-04-13 10:54 (UTC) (edited on 2024-06-11 21:53 (UTC) by Visne)

I've adopted the package and updated to the latest version. 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. It should now support ARM64 (please let me know if it works for you).

Let me know if you run into any issues.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »

dvzrv commented on 2021-11-04 14:08 (UTC)

@actionless: If tuxguitar-common links against libfluidsynth.so.2, then your package is broken and needs to be rebuilt (as it likely was not built against the current fluidsynth 2.2.3). There is nothing more to that.

Please read through the AUR submission guidelines to understand which packages are accepted and why this package is considered not okay for the AUR and please also have a look at the debugging section to understand how to debug the build and how to build in a clean chroot (the chroot directory may entirely exist in RAM btw.).

actionless commented on 2021-11-04 13:20 (UTC) (edited on 2021-11-04 13:20 (UTC) by actionless)

@dvzrv first of all it's not BUILD failure, but RUNTIME

second, i dont have multiple gigs of free space on my laptop to build stuff in chroot, whlist workaround with extra fluidsynth library just works

dvzrv commented on 2021-11-04 08:40 (UTC)

@actionless: Please follow the pinned comment (which instructs you to build in a clean chroot). There is nothing wrong with the package and fluidsynth2-compat is not needed at all:

find-libdeps tuxguitar-common-1.5.4-2-any.pkg.tar.zst
libc.so=6-64
libjack.so=0-64
libfluidsynth.so=3-64
libasound.so=2-64

actionless commented on 2021-11-04 02:09 (UTC)

after fluidsynth upgraded i needed this package in order to run tuxguitar with fluidsynth output plugin:

https://aur.archlinux.org/packages/fluidsynth2-compat

tunalad commented on 2021-08-23 21:18 (UTC) (edited on 2021-08-23 21:21 (UTC) by tunalad)

For whatever reason, solutions below didn't work for me and I found a simpler way to fix this (with a friend of mine). If you don't have it, get jre11-openjdk. Now you should be able to open it with this command:

JAVA_HOME=/usr/lib/jvm/java-11-openjdk tuxguitar
.

djandries commented on 2021-06-30 04:37 (UTC) (edited on 2021-06-30 04:39 (UTC) by djandries)

Looks like the upgrade to Java 16 broke playback:

org.herac.tuxguitar.player.base.MidiPlayerException: class org.herac.tuxguitar.midi.synth.impl.GervillProcessor (in unnamed module @0x14de7401) cannot access class com.sun.media.sound.SoftSynthesizer (in module java.desktop) because module java.desktop does not export com.sun.media.sound to unnamed module @0x14de7401

Changed the PKGBUILD to rely on Java 11 (jre11-openjdk) in the meantime. I set the JAVA_HOME and PATH to use Java 11 in the app startup scripts, rather than setting my system default Java version to 11.

diff --git a/PKGBUILD b/PKGBUILD
index d21e71f..068e61b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,15 +12,15 @@ pkgdesc="multitrack guitar tablature editor and player"
 arch=('any')
 url="https://sourceforge.net/projects/tuxguitar/"
 license=('LGPL')
-depends=('jre-openjdk' 'alsa-lib' 'libxtst')
+depends=('jre11-openjdk' 'alsa-lib' 'libxtst')
 makedepends=('unzip' 'zip' 'ant' 'jack' 'fluidsynth' 'jdk-openjdk' 'maven')
 optdepends=('fluidsynth')
 source=(https://downloads.sourceforge.net/tuxguitar/tuxguitar-$pkgver-src.tar.gz
         tuxguitar
         tuxguitar-gtk2)
 sha256sums=('8f73c8c9a90d5df7828f9854a93068c623eec9ed27240436411552484d71503a'
-            'efeef39d43ecf5a87ed64abc7d8cf63a01f3c9b08bac0ea299bf959fcb7c216a'
-            '39f92c0de6fcf86635dec5ac3b83613ca980fa7d24f66888fd06e5bb2c7c571f')
+            '40a9e904004fce3bee0fb68ec873100eb61bcd590d242cdc923cbc115fc3e752'
+            '35f77e2c59c22698a1f15f7b9985e4dfe9601ed7528824d29a63324b4c6cb6f2')

 case $CARCH in
   i686) _arch=x86;;
@@ -96,3 +96,4 @@ package_tuxguitar-gtk2 () {
   install -Dm 755 "${srcdir}/tuxguitar-$pkgver-src/build-scripts/tuxguitar-linux-$_arch/target/tuxguitar-$pkgver-linux-$_arch/tuxguitar.sh" \
                   "${pkgdir}/usr/share/tuxguitar/tuxguitar.sh"
 }
+
diff --git a/tuxguitar b/tuxguitar
index 1940436..d5d47ae 100755
--- a/tuxguitar
+++ b/tuxguitar
@@ -1,3 +1,5 @@
 #!/bin/sh -e
 cd /usr/share/tuxguitar
+export PATH="/usr/lib/jvm/java-11-openjdk/bin:$PATH"
+export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
 exec ./tuxguitar.sh "$@"
diff --git a/tuxguitar-gtk2 b/tuxguitar-gtk2
index 6c78512..50edd8f 100755
--- a/tuxguitar-gtk2
+++ b/tuxguitar-gtk2
@@ -1,3 +1,5 @@
 #!/bin/sh -e
 cd /usr/share/tuxguitar
+export PATH="/usr/lib/jvm/java-11-openjdk/bin:$PATH"
+export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
 exec ./tuxguitar.sh -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false "$@"

buzo commented on 2021-05-10 16:53 (UTC)

Thanks Argus, fixed.

Argus commented on 2021-05-09 14:17 (UTC) (edited on 2021-05-09 14:19 (UTC) by Argus)

To fix the error mentioned by st33n it seems to suffice to replace http with https. With the following changes in PKGBUILD the build succeeded for me:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,6 +33,7 @@ prepare() {
       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
+  sed -i 's|http://maven-eclipse.github.io/maven|https://maven-eclipse.github.io/maven|' pom.xml
 }

 build() {

Downloading dependencies via http sounds really bad. Does this mean that before the current maven version, the build process would have allowed a man in the middle to execute arbitrary code?

st33n commented on 2021-05-02 18:47 (UTC) (edited on 2021-05-02 18:50 (UTC) by st33n)

Getting an error when building:

[ERROR] Failed to execute goal on project tuxguitar-ui-toolkit-swt: Could not resolve dependencies for project org.herac.tuxguitar:tuxguitar-ui-toolkit-swt:jar:1.5.4: Failed to collect dependencies at org.eclipse.swt:org.eclipse.swt.gtk.linux.x86_64:jar:4.6.1: Failed to read artifact descriptor for org.eclipse.swt:org.eclipse.swt.gtk.linux.x86_64:jar:4.6.1: Could not transfer artifact org.eclipse.swt:org.eclipse.swt.gtk.linux.x86_64:pom:4.6.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [swt-repo (http://maven-eclipse.github.io/maven, default, releases+snapshots)] -> [Help 1]

I'm guessing this has something to do with the latest version of Maven, which blocks http repos: https://maven.apache.org/docs/3.8.1/release-notes.html

ljrk commented on 2020-08-09 12:30 (UTC)

If this program doesn't load successfully with something like

Exception in thread "main" org.eclipse.swt.SWTError: No more handles
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.graphics.Cursor.<init>(Unknown Source)

you should use the x11 GDK backend (GDK_BACKEND=x11) or force GTK2 (SWT_GTK3=0), c.f. https://bugs.eclipse.org/bugs/show_bug.cgi?id=527545