15 Dec
2021
15 Dec
'21
15:24
On 2021/12/15 Wed 16:09, Marcus Hüwe wrote:
On 2021-12-15 16:07:07 +0100, Marcus Hüwe wrote:
On 2021-12-15 22:56:23 +0800, Kai Liu wrote:
I noticed that on my private instance, build as root is not working.
I had the "# needsrootforbuild" line in my spec, but build log showed it's still building as the abuild user. Is there any specific setup action I need to take on the OBS server side for this to work?
You have to explicitly allow root builds for a specific package in the BSConfig.pm. Adding something like
our $norootexception = {'your_project/your_package' => 1};
should do the trick.
Note: the key can also be a perl regex (which is implicitly surrounded by a leading "^" and a trailing "$").
Great! Thanks a lot for your kind help. Regards, Kai