On Mon, 14 Mar 2011, Marcus Rueckert wrote:
On 2011-03-14 15:19:36 +0100, Juergen Weigert wrote:
On Mar 14, 11 10:47:27 -0300, Cristian Rodríguez wrote:
Going through this step by step, when I do "osc build openSUSE_Factory", I'm asked to su to root - why? (it seems unnecessary).
You need CAP_SYS_CHROOT , only root has that capability by default.
fakechroot(1) comes to mind. Would that help?
no we really need root permissions because after the chroot we want to get the build process running as user abuild.
Well, we want to provide a real jail for the build (even though people might disagree whether a chroot is appropriate for this).
also installing rpms shouldnt be done as a non root user, so the package cant accidently modify the chroot during the build (misguided make install e.g.)
That sentence has some twisted self-contradicting logic in it ;) Richard.