You are not logged in.

#1 2017-10-11 03:43:03

theonlylawislove
Member
Registered: 2015-01-05
Posts: 38

Running makepkg as root.

I understand it was disabled, and I get it.

However, on a build server (Ubuntu), I need to generate .SRCINFO and update checksums in PKGBUILD. I have to use "base/arch" Docker image to run the command, and I'd like to disable that requirement.

Is there an environment variable I can set? Small modification to the bash script?

Offline

#2 2017-10-11 03:52:11

theonlylawislove
Member
Registered: 2015-01-05
Posts: 38

Re: Running makepkg as root.

Or, is there a way to run makepkg on Ubuntu? How portable is it?

Offline

#3 2017-10-11 05:25:32

phw
Member
Registered: 2013-05-27
Posts: 318

Re: Running makepkg as root.

theonlylawislove wrote:

However, on a build server (Ubuntu), I need to generate .SRCINFO and update checksums in PKGBUILD. I have to use "base/arch" Docker image to run the command, and I'd like to disable that requirement.

What about changing the user in the Docket image?

Not sure about if makepkg can run on Ubuntu, but I would probably just give this a try to compile and run it there smile

Offline

#4 2017-10-11 05:36:44

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: Running makepkg as root.

does docker have a nobody user?

maybe use that instead because makepkg can't run as root by all-... by design.


Well, I suppose that this is somekind of signature, no?

Offline

#5 2017-10-11 06:06:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Running makepkg as root.

makepkg will run on ubuntu.

Offline

#6 2017-10-11 22:07:04

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Running makepkg as root.

It may run, but you might find it difficult to handle make/depends if you want to actually build anything... not to mention building against system libraries that only make sense in the context of creating a package *for* Ubuntu...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2017-10-12 01:13:32

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Running makepkg as root.

Sounds like OP is running makepkg inside an Arch Docker container on Ubuntu?  I'm not up-to-speed with Docker, but you should be able to run makepkg as any user inside the container?

Offline

Board footer

Powered by FluxBB