noraj / haiti

:key: Hash type identifier (CLI & lib)
https://noraj.github.io/haiti/
MIT License
781 stars 54 forks source link

Can't install with makepkg under archlinux #123

Closed Hitoride57 closed 2 years ago

Hitoride57 commented 2 years ago

Hi there,

I'm not very familiar with Github so I'm not sure if I'm doing it the right way but I encountered an issue while installing haiti as an AUR Package.

Here is the error message while making package (sorry for the french interface) : Successfully installed haiti-hash-1.3.0 1 gem installed rm: impossible de supprimer '/home/____/____/builds/haiti/pkg/haiti//usr/lib/ruby/gems/3.0.0/gems/haiti-hash-1.3.0/test': Aucun fichier ou dossier de ce type ==> ERREUR : Une erreur s’est produite dans package(). Abandon…

I thought that the problem was with an path issue because of the 2 slashes in it (.../haiti//usr/lib/...), or a file issue, so I commented the line 26 of PKGBUILD file : rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/test"

Doing that solved the problem for me.

I hope this can help, I didn't find anything about it elsewhere.

noraj commented 2 years ago

Bonjour @Hitoride57,

It's because back in the days, the Gem was including the tests in it (c7d0e6f04d83692aef6ee9b2dcfc20ef7f35f40b) so the PKGBUILD was removing them as they are useless from runtime. But two years ago I stopped shipping the tests in the Gem so that's why there is an error. I'm surprised because during this period the removal of the unexisting folder has never triggered an error before.

Thanks for the report I have fixed the AUR package.