[systemd-devel] Compiling in a sandbox
Steve Herber
herber at thing.com
Thu Jul 8 13:42:53 PDT 2010
In gentoo, the only way I know to install packages is to run the emerge
command as root. The point of gentoo is to automate the download, untar,
configure, compile, and install process. I don't know of a way to do this
without being root. Does anyone know how to configure gentoo to split
the install phase, which must be run as root, from the other phases that
don't really need to be run as root? Otherwise, the suggestion from
Lennart is not useful for gentoo.
Thanks for any suggestions.
--
Steve Herber herber at thing.com work: 206-221-7262
Software Engineer, UW Medicine, IT Services home: 425-454-2399
On Thu, 8 Jul 2010, Lennart Poettering wrote:
> On Thu, 08.07.10 19:11, Ozan Çağlayan (ozan at pardus.org.tr) wrote:
>
>>
>> On 16.06.2010 16:32, Lennart Poettering wrote:
>>> On Wed, 16.06.10 15:08, olechrt at stud.ntnu.no (olechrt at stud.ntnu.no) wrote:
>>>
>>>> Compiling using portage in gentoo currently fails, since make
>>>> tries to create and mount /cgroup. Is this necessary for compilation?
>>>
>>> Well, not if you build from a tarball. Unfortunately we have no tarballs
>>> available yet.
>>
>> I just tested systemd-1 on a sandboxed build and it still fails:
>>
>> make[1]: Entering directory `/var/pisi/systemd-1-1/work/systemd-1'
>> ./systemd --introspect=org.freedesktop.systemd1.Job > org.freedesktop.systemd1.Job.xml
>> Sandbox violation: mkdir (/cgroup -> /cgroup)
>> Failed to mount /cgroup/systemd: No such file or directory
>> make[1]: *** [org.freedesktop.systemd1.Job.xml] Error 1
>>
>> Note that this is built as root too.
>
> Don't build this as root, please.
>
> Lennart
>
>
More information about the systemd-devel
mailing list