Hi, looking at the pamac manual, I am missing an item about the building of aur packages.
When one tries to build an install a package from the aur, how is the build managed? Does it work similarly to what would happen calling buildpkg that builds in a clean chroot, so that all the build dependencies remain nicely separated? Or does it build in the current root by first installing the necessary build dependencies on the system?
May I suggest that this is better clarified on the pamac man page?
What I am mostly interested in is the following: the documentation of buildpkg explicitly states that “The buildpkg script creates a closed environment for building the package. This is done, so not to pollute your system with build artifacts”.
So my question could have been formulated as “when one installs aur packages with pamac can build artifacts remain around polluting the system or is the build directory used as a fully confined space?”
Indeed, but in this regard they can be used for a similar task: install a package from the aur.
With pamac you do it in an easy way with a single command.
With buildpkg you manually need to go through the 3 tasks:
download the package source from the aur (e.g. with a git clone and maybe --depth=1 in it)
build a binary package with buildpkg
install the package with pacman
What I am trying to find out is the following: buildpkg gives you a guarantee that the packages get built in a confined environment so you know that your system will not get polluted with build artifacts. To some extent, this confined way of building can also marginally protect you in case the PKGBUILD file is less than perfect.
If pamac can give you a similar guarantee, being it easier to use, there is no reason for taking the download+build+install route that is needed by buildpkg. The other way round, if pamac does not use a confined build environment and may leave artifacts around or have a higher probability of leaving issues in case the PKGBUILD script is sub-optimal, then I’d prefer to take to longer buildpkg route.