Package Details: tmsu 0.7.5-2

Git Clone URL: https://aur.archlinux.org/tmsu.git (read-only, click to copy)
Package Base: tmsu
Description: A tool for tagging your files and accessing them through a virtual filesystem.
Upstream URL: https://tmsu.org/
Licenses: GPL3
Submitter: tmladek
Maintainer: MarcinWieczorek (TrialnError)
Last Packager: TrialnError
Votes: 25
Popularity: 0.050372
First Submitted: 2015-08-29 19:21 (UTC)
Last Updated: 2024-05-16 16:02 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

MarcinWieczorek commented on 2024-05-16 14:22 (UTC)

@TrialnError feel free to push your patch to AUR. I added you as a co-maintainer.

TrialnError commented on 2024-05-15 19:11 (UTC) (edited on 2024-05-15 19:17 (UTC) by TrialnError)

IIRC the git variant also needed some adjustment.
Following is a patch to make this PKGBUILD work again.
Several issues come together with the project structure of the 7.5.0 release which makes the normal workaround non-functional. Solution to that: Backport three upstream changes as patches

diff --git a/PKGBUILD b/PKGBUILD
index ee08a80..9493841 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,26 +4,36 @@

 pkgname=tmsu
 pkgver=0.7.5
-pkgrel=1
+pkgrel=2
 pkgdesc="A tool for tagging your files and accessing them through a virtual filesystem."
 arch=('i686' 'x86_64')
 url="https://tmsu.org/"
 depends=('fuse' 'sqlite>=3')
-makedepends=('git' 'go')
+makedepends=('go')
 provides=('tmsu')
 license=('GPL3')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/oniony/TMSU/archive/v$pkgver.tar.gz")
-sha256sums=('0ac7f09336aaedf73623c4f486c05137c024a726c16dd32525463aee9d70b46a')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/oniony/TMSU/archive/v$pkgver.tar.gz"
+        0001-${pkgname}-structure.patch::https://github.com/oniony/TMSU/commit/0beb23187d14a48f217f8ede2981cb5eaf6d89f2.patch
+        0002-${pkgname}-go-files.patch::https://github.com/oniony/TMSU/commit/66a9facdacb48e1f81bb8a854f70485e3a361e59.patch
+        0003-${pkgname}-makefile.patch::https://github.com/oniony/TMSU/commit/b10338e9136e35cbbd9ac4ebcf7d366f3a1b4a9e.patch)
+sha256sums=('0ac7f09336aaedf73623c4f486c05137c024a726c16dd32525463aee9d70b46a'
+            'c6e19521d7ba204193701507c7267f0bdd1e413f128205c57c34af279212a502'
+            '914404ff4ce9e1afdf4a420d44734d2e4caf760d120bba41f2722b6ff57218e0'
+            '267f40a0379491bc10327a498daaf0b2bda3cb616efa484ec26f5601145126fd')
+
+prepare() {
+  cd "TMSU-$pkgver"
+
+  # Add upstream patches as the latest release has a wrong project structure
+  # and cannot be compiled with recent go versions
+  patch -Np1 -i ${srcdir}/0001-${pkgname}-structure.patch
+  patch -Np1 -i ${srcdir}/0002-${pkgname}-go-files.patch
+  patch -Np1 -i ${srcdir}/0003-${pkgname}-makefile.patch
+}

 build() {
   export GOPATH=/tmp

-  echo "Now getting go-sqlite3..."
-  go get -u github.com/mattn/go-sqlite3
-
-  echo "Now getting go-fuse..."
-  go get -u github.com/hanwen/go-fuse/fuse
-
   cd "$srcdir/TMSU-$pkgver"
   make
 }

Edit: Only noticing it now. The provides line should also be removed. And fuse be changed to fuse2

MarcinWieczorek commented on 2024-05-15 13:58 (UTC)

There is a package tmsu-git, use it if this one doesn't work.

stan-servaenergy commented on 2024-05-14 17:41 (UTC)

Another problem is that latest release (0.7.5) is from 2019 and doesn't seem to build on current Arch. The master branch works though. Here is PKGBUILD that I used:

# Maintainer:  Marcin Wieczorek <marcin@marcin.co>
# Contributor: Tomáš Mládek <tmladek{at}inventati{dt}org>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=tmsu
pkgver=master
pkgrel=1
pkgdesc="A tool for tagging your files and accessing them through a virtual filesystem."
arch=('i686' 'x86_64')
url="https://tmsu.org/"
depends=('fuse' 'sqlite>=3')
makedepends=('git' 'go')
provides=('tmsu')
license=('GPL3')
source=("https://github.com/oniony/TMSU/archive/refs/heads/master.zip")
sha256sums=('32e93d53cf0d6446270a76a9354bfa6b0ca06c5249b5e2cbdfe4155df9b13389')


build() {
  export GOPATH=/tmp

  cd "$srcdir/TMSU-$pkgver"
  make
}

package() {
  mkdir -p "$pkgdir/usr/bin" \
           "$pkgdir/usr/bin" \
           "$pkgdir/usr/share/man/man1" \
           "$pkgdir/usr/share/zsh/site-functions"

  cd "$srcdir/TMSU-$pkgver"
  make DESTDIR="$pkgdir/" \
  MOUNT_INSTALL_DIR="$pkgdir/usr/bin" \
  install
}

MarcinWieczorek commented on 2024-05-14 07:33 (UTC)

I'll be happy to add you as co-maintainer if you provide a patch.

JeppeX commented on 2024-05-11 19:55 (UTC)

Is there a reason why the below presented workaround is not added to the PKGBUILD of this repo?

TrialnError commented on 2023-11-09 20:59 (UTC)

Regarding the missing files for Go modules see the following from Go package guildelines: https://wiki.archlinux.org/title/Go_package_guidelines#Upstream_project_without_go_modules

In short add the mentioned prepare function and remove the go get-commands from build.

darosio commented on 2022-09-01 13:38 (UTC)

go get is no longer supported.

==> Starting build()... Now getting go-sqlite3... go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'. ==> ERROR: A failure occurred in build(). Aborting... -> error making: tmsu

MarcinWieczorek commented on 2021-11-10 09:30 (UTC)

I don't know much about go build system, could you please bump the issue/PR upstream so they merge that fix? It would be a better solution, but in the end I could just patch it here.

Laman commented on 2021-11-10 08:59 (UTC)

the installation was dying on me with no required module provides package github.com/oniony/TMSU: go.mod file not found in current directory or any parent directory until i ran go env -w GO111MODULE=auto as per https://github.com/oniony/TMSU/issues/224