[Buildbot-devel] How to compile code as root user
dustin at spy.net
Sat Jun 19 19:09:03 UTC 2010
On Jun 18, 2010, at 3:04, rajasekhar naidu wrote:
> I am using buildbot for scheduling build at particular time. For my code to compile, one should run make as root user. I installed buildbot in root user account. When i try to build i am getting error which is caused because build is not triggered with root privileges. Please help me how to start build with root permissions.
> f2 = factory.BuildFactory()
> f2.addStep(CVS(cvsroot=cvsroot, cvsmodule=cvsmodule, mode="clobber", branch="Branch_Name"))
> f2.addStep(Compile(command=["make"], workdir="build/build"))
You've got a pretty fundamental flaw with your build process if it has to run as root. Most users are able to run compilers and what-not.
It wouldn't be particularly hard to run (at least part of) your build with escalated privileges, but I'd be very surprised to find out that you're building something that actually requires uid 0 to complete.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel