Package Details: tut 2.0.1-1

Git Clone URL: https://aur.archlinux.org/tut.git (read-only, click to copy)
Package Base: tut
Description: A TUI for Mastodon with vim inspired keys
Upstream URL: https://github.com/RasmusLindroth/tut
Licenses: MIT
Conflicts: tut-bin
Submitter: rasmus
Maintainer: rasmus
Last Packager: rasmus
Votes: 12
Popularity: 0.75
First Submitted: 2020-04-09 09:08 (UTC)
Last Updated: 2023-01-26 17:49 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

kchr commented on 2024-12-28 23:24 (UTC) (edited on 2025-01-05 23:37 (UTC) by kchr)

The build seems to fail due to /etc/makepkg.conf setting the LDFLAGS evironment variable to a value with spaces in it. It was introduced with the following commit:

https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/commit/0f10f032b02bc7823b3ac11f4807b5515c996821

The PKGBUILD for the tut package uses the $LDFLAGS variable in the invocation of go build, but does not properly escape it when passed as value for -extldflags (the external linker):

[...]

build() {
  cd $pkgname-$pkgver
  go build \
    -gcflags "all=-trimpath=$PWD" \
    -asmflags "all=-trimpath=$PWD" \
    -ldflags "-extldflags $LDFLAGS" \ <--- not escaped with quotes
    -o $pkgname .
}

[...]

This seems to cause everything after whitespace to be parsed as additional arguments for -ldflags (the internal linker), rather than -extldflags (the external linker).

Adding quotes around $LDFLAGS fixes the issue and the package will build again:

[...]

build() {
  cd $pkgname-$pkgver
  go build \
    -gcflags "all=-trimpath=$PWD" \
    -asmflags "all=-trimpath=$PWD" \
    -ldflags "-extldflags '$LDFLAGS'" \
    -o $pkgname .
}

[...]

I have sent a patch to the maintainer.

jrd commented on 2024-12-21 19:47 (UTC)

Just delete the line with -ldflags "-extldflags $LDFLAGS" in it and it compiles correctly.

BenjaminVoisin commented on 2024-08-08 00:37 (UTC) (edited on 2024-08-08 00:38 (UTC) by BenjaminVoisin)

I have an issue building this package, I get this error :

==> Lancement de build()…
# github.com/RasmusLindroth/tut
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o

[...A long list of options...]

==> ERREUR : Une erreur s’est produite dans build().
    Abandon…
erreur : échec de la compilation de 'tut-2.0.1-1': 
erreur : la compilation des paquets suivants a échouée : tut-2.0.1-1

I have go version 1.22.6, and using paru as an AUR helper.

robertoqs commented on 2023-04-14 15:40 (UTC)

Thank you very much for this excellent application. It's my favourite Mastodon TUI.

rasmus commented on 2022-12-29 14:11 (UTC)

@quite now themes are included in the location you suggested :)

quite commented on 2022-12-14 07:40 (UTC)

Please also bundle the example themes. Maybe in /usr/share/tut/doc/themes ? (or does tut read /usr/share/tut/themes/ ?)

rasmus commented on 2022-05-27 11:53 (UTC)

Now it includes doc and licenses, thanks @m040601 :)

m040601 commented on 2022-05-24 06:42 (UTC) (edited on 2022-05-24 06:44 (UTC) by m040601)

Small request:

....You can find ... in this repo named config.example.ini. I....
.... copy ./config/toot.tmpl and ./config/user.tmpl from this repo ...

Could you please add the README and all these example/template files to the PKGBUILD of "tut" and "tut-bin" ?

They should end up in something like

/usr/share/tut/doc/README
/usr/share/tut/doc/config.example.ini
/usr/share/tut/doc/toot.tmpl
/usr/share/tut/doc/examples/some_file.bla

Especially the README. It would avoid having to open and go back to the browser.

Also you might want to add that LICENCE file to

/usr/share/licenses/tut/LICENSE

m040601 commented on 2022-05-24 03:47 (UTC)

Just to report that it runs perfectly on x64 and Archlinux arm:

  • Raspberry Pi 2 (armv7h, 7 years old)
  • Chromebook (armv7h, 10 years)

Memory usage reported by btop around 10-15 MB. Very smooth and ridiculous low light CPU usage, no spikes etc.

Big thank you for making it possible to not throw away perfectly good old hardware.

rasmus commented on 2022-05-23 17:33 (UTC)

Now there's a binary package, checkout tut-bin. Please report if it doesn't work as I don't have any machine that runs Arch on arm.

And it's nice to see a fellow Arch users :)