clever-tools icon indicating copy to clipboard operation
clever-tools copied to clipboard

Problem with packaged CLI installed via AUR on archlinux

Open hsablonniere opened this issue 10 months ago • 5 comments

This needs some investigation, well gather different environments and outcomes in this thread...

hsablonniere avatar Apr 03 '24 13:04 hsablonniere

Test on archlinux docker container

  • docker image: https://hub.docker.com/_/archlinux/tags
  • docker image ID: 0cda8061254a
  • uname: Linux 6.8.2-arch2-1 x86_64
  • install through makepkg -si works :+1:
  • clever diag works :+1:
clever-tools  3.4.0
Node.js       v18.15.0
Platform      linux
Release       6.8.2-arch2-1
Architecture  x64
Linux         Arch Linux
Shell         /usr/bin/bash
Packaged      true
Exec path     /usr/bin/clever
Config file   /home/foobar/.config/clever-cloud/clever-tools.json
Auth source   none
oAuth token   (none)
User ID       Not connected

hsablonniere avatar Apr 03 '24 13:04 hsablonniere

On clean archlinux installation:

  • installed with yay or with pacman/makepkg -si
  • clever diag cannot work beacause the package seems to be broken
  • not in a VM, nor in container
  • architecture amd64_x86, kernel 6.8.x
  • node v21.7.1

=> Pkg: Error reading from file.

With node v18.15.0, it properly works !

sebartyr avatar Apr 03 '24 13:04 sebartyr

I reproduce it too, as @sebartyr we have:

node --version
v21.7.1

aurrelhebert avatar Apr 03 '24 14:04 aurrelhebert

I just tried in a archlinux docker container:

  • install node via pacman
  • install clever-tools with AUR and makepkg
  • it works

hsablonniere avatar Apr 03 '24 15:04 hsablonniere

The step I did:

yay clever-tools
sha256sum /usr/bin/clever
# 505fd73e846aabaf718f42c2e4f26fd52d54a4cd6d3c778a6ba371212ce81a78  /usr/bin/clever
node --version
# v18.15.0
uname -r
# 6.8.2-arch2-1
/usr/bin/clever diag
# Pkg: Error reading from file.

The yay output is (sorry for French):

==> Récupération des sources…
  -> clever-tools-3.4.0_linux.tar.gz trouvé
==> Validation des fichiers source avec sha256sums…
    clever-tools-3.4.0_linux.tar.gz ... Réussite
==> Suppression du répertoire $srcdir/ existant…
==> Extraction des sources…
  -> Extraction de clever-tools-3.4.0_linux.tar.gz avec bsdtar
==> Les sources sont prêtes.
==> Création du paquet clever-tools-bin 3.4.0-1 (jeu. 04 avril 2024 10:27:40)
==> Vérification des dépendances pour l’exécution…

Same error with makepkg -si

aurrelhebert avatar Apr 04 '24 08:04 aurrelhebert

After a long investigation with @miton18 we found out that editing options=('!strip') into OPTIONS=(!strip) fixes the problem. With the bad options, makepkg was stripping some parts of the binary. We're not sure why it was working before or why it must me uppercase.

hsablonniere avatar Apr 10 '24 16:04 hsablonniere