[pacman-dev] makepkg in a constrained environment
allan at archlinux.org
Wed Dec 2 06:18:11 EST 2009
Ciprian Dorin, Craciun wrote:
> * if one has declared of using only MD5 sums (most of the packages
> do this), it insists on using `openssl dgst` to create them;
> * it insists on using file tool to identify the file type;
> * it insists on using bsdtar to untar the tar archives;
You need libarchive (bsdtar) for pacman and need pacman to resolve deps...
> * it breaks if it's not able to chown the source tree; (this
> happens as inside UML I'm root, but outside UML the file system is
> owned by a normal user (the root filesystem of UML is exported by
> using hostfs));
There is this in makepkg:
if (( EUID == 0 )); then
# change perms of all source files to root user & root group
chown -R 0:0 "$srcdir"
It would seem the assumption that root has root permissions is not
always true... We could probably also add a check the user has
permissions to change the file permissions too.
More information about the pacman-dev