[pacman-dev] [PATCH] Option to enable running makepkg in root

Saul Tigh jemzipx at gmail.com
Thu Jan 16 17:42:02 UTC 2020


On Fri, Jan 17, 2020 at 12:10 AM Eli Schwartz <eschwartz at archlinux.org>
wrote:

> On 1/16/20 10:51 AM, Saul Tigh wrote:
>
> > Do you mean there is no user account management set up yet? If it's just
> > about switching users, util-linux "runuser" can let you run makepkg with
> > a different user ID.
>

I re-submitted the patch with 'git send-email' to comply with the rules. As
to user management, none exists at that stage. The system is absolutely
bare however I think the root privilege is needed at that stage and is not
just a question of changing user ID.

>
> > Wouldn't it make more sense in that case to add a build system switch
> > e.g. meson -Dmakepkg-asroot=enabled? I'm concerned about including a
> > codepath that doesn't do anything unless you know it exists and patch
> > the source to use it.
>
> That is a valid point. I have to do more research about meson build system
> as I'm not familiar with it much and will try to re-submit a new patch with
> your suggestion. Has pacman moved away from autotools completely and do
> things with meson?
>
>


More information about the pacman-dev mailing list