Hi guys, I generally use pacman to install packages, but with it I cannot see AUR pkgs. So I started used yay.
If I try to install anything like:
yay -S prusa-slicer-git
......
==> Avvio di prepare() in corso...
patching file cmake/modules/FindOpenVDB.cmake
Hunk #1 FAILED at 326.
Hunk #2 succeeded at 419 (offset 21 lines).
Hunk #3 succeeded at 450 (offset 21 lines).
Hunk #4 succeeded at 467 (offset 21 lines).
Hunk #5 succeeded at 477 (offset 21 lines).
1 out of 5 hunks FAILED -- saving rejects to file cmake/modules/FindOpenVDB.cmake.rej
==> ERRORE: Si è verificato un errore in prepare().
this happen for most of AUR packages, with LTS kernel or not.
can be solved? I try to make a search but I didn’t get results
thank u in advance
This seems to be an issue with the specific AUR packages you are trying to install. In the case of prusa-slicer-git
that you shared, there are multiple comments under the AUR page reporting the same issue with patches, and some possible solutions too. (I haven’t tried so cannot verify if they work)
https://aur.archlinux.org/packages/prusa-slicer-git/
2 Likes
Oh thank you, so it’s better if I always check aur website before install? btw it happens also for gimp. It’s the same issue?
gideon
October 11, 2021, 9:36am
4
Its good practice to always read the comments on the AUR page before trying to build a package as many times the answer is in the comments
@Athemis , do you have an updated patch? I’m having trouble applying yours, it says it fails on the first hunk.
@Salamandar The openexr3 patch doesn’t apply cleanly anymore. See here for an updated patch.
@Lukas1818 thanks for the patch, I pushed it after testing. Sorry for the rant also
2 Likes
pebcak
October 11, 2021, 9:37am
5
manadipendente:
it happens also for gimp
For what is worth, gimp can be installed from the official repos. But perhaps you prefer the development version from AUR?
3 Likes
So AUR it’s huge, but it contains also pkgs that doesn’t work, so the good practice is:
look at community package first
then look at aur
right?
manuel
October 11, 2021, 10:05am
7
Yeah, first look for the official packages from the repositories (see /etc/pacman.conf for more).
If not found above, try AUR. Note that AUR packages are not officially supported.
3 Likes
You should read these topics:
The Arch User Repository (AUR) is a collection of user-submitted package description files ( PKGBUILD files). These description files can be used to create package archive files ( .pkg.tar.zst files).
These PKGBUILD files can be used by an AUR helper (e.g. yay , aurman , Pamac) or manually built using makepkg. The resulting package archive file can then be installed in the normal way.
All content on the AUR is uploaded by ordinary users and very little checking of their content is done - it is…
The AUR is one of the safest ways to install software, just because it is so transparent. But it does not tolerate just looking up the package in Pamac and clicking on the Build button, or doing yay package_name blindly. It requires that the user knows what’s going on. That’s why I recommend trying to build at least one package manually, to understand what’s going on, before using an AUR helper like pamac or yay.
yay has a nice feature that allows you to inspect a PKGBUILD file before installin…
makepkg is a script that creates a foreign (i.e. non-repo) package, which can be installed using pacman -U.
Before we can make a package, we need to have both base-devel and git packages installed:
sudo pacman -S base-devel git --needed
On EndeavourOS, these should already be preinstalled.
Depending on the specific package, we may also need other programs, like compilers and build systems. These are called “make dependencies”.
Typically, making a package from the AUR involves the following …
5 Likes