* [gentoo-dev] how to test ebuilds without being root?
@ 2003-08-13 6:42 Karsten Schulz
2003-08-13 11:25 ` Chris Gianelloni
0 siblings, 1 reply; 3+ messages in thread
From: Karsten Schulz @ 2003-08-13 6:42 UTC (permalink / raw
To: gentoo-dev
Hi,
I wonder, how I can test my own ebuilds, without being root. As far as I can
see, there is no necessary need to work as root until the qmerge step.
At the moment, I get access violations, because as a normal user (group:
portage) I do not have write access to /var/tmp/portage/... (of course).
But I don't want to start my (maybe buggy) ebuilds as root, because my system
could become unusable by accident, if there are bugs in my ebuild.
I found the 'sandbox', 'usersandbox' and 'userpriv' things in /etc/make.conf,
but no hints, how that could help me. The section 'testing your ebuilds' in
the HOWTO does not mentions how one would really test a new ebuild on his
machine.
Do I have to setup a chroot environment for that? Or use vmware or bochs or
similar simulations? Or is there an easier and better solution?
Any hints or advices for me?
thank you very much,
Karsten
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] how to test ebuilds without being root?
2003-08-13 6:42 [gentoo-dev] how to test ebuilds without being root? Karsten Schulz
@ 2003-08-13 11:25 ` Chris Gianelloni
2003-08-14 17:58 ` Karsten Schulz
0 siblings, 1 reply; 3+ messages in thread
From: Chris Gianelloni @ 2003-08-13 11:25 UTC (permalink / raw
To: Karsten Schulz; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]
On Wed, 2003-08-13 at 02:42, Karsten Schulz wrote:
> Hi,
>
> I wonder, how I can test my own ebuilds, without being root. As far as I can
> see, there is no necessary need to work as root until the qmerge step.
>
> At the moment, I get access violations, because as a normal user (group:
> portage) I do not have write access to /var/tmp/portage/... (of course).
> But I don't want to start my (maybe buggy) ebuilds as root, because my system
> could become unusable by accident, if there are bugs in my ebuild.
You could try using su to become user portage and working form there, or
you can change permissions on /var/tmp/portage. Personally, I do all
ebuild testing as first root using no FEATURES, then add them one by one
until I have them all tested.
I find that a combination of sandbox and userpriv keep your system from
being hosed in the case of a bad ebuild. These ensure that root
privileges are dropped for the unpack and compile parts of the ebuild
and that nothing is done on your live filesystem until the qmerge, which
requires root.
> I found the 'sandbox', 'usersandbox' and 'userpriv' things in /etc/make.conf,
> but no hints, how that could help me. The section 'testing your ebuilds' in
> the HOWTO does not mentions how one would really test a new ebuild on his
> machine.
>
> Do I have to setup a chroot environment for that? Or use vmware or bochs or
> similar simulations? Or is there an easier and better solution?
I live dangerously and use my live system. There is very little that
you can totally muck up that will bring your system to its knees. Of
course, you can also make a backup before doing anything you deem
dangerous enough to mess up your system.
--
Chris Gianelloni
Developer, Gentoo Linux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] how to test ebuilds without being root?
2003-08-13 11:25 ` Chris Gianelloni
@ 2003-08-14 17:58 ` Karsten Schulz
0 siblings, 0 replies; 3+ messages in thread
From: Karsten Schulz @ 2003-08-14 17:58 UTC (permalink / raw
To: Chris Gianelloni; +Cc: gentoo-dev
Hi Chris,
Chris Gianelloni wrote:
> You could try using su to become user portage and working form there
I think, I'll go that way. Thank you for sharing your experience. As I said
before, I think it is not so good, to develop under the root account. My hope
was, that there was another way, how one can manage that.
anyway, thanks a lot!
Karsten
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-14 17:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-13 6:42 [gentoo-dev] how to test ebuilds without being root? Karsten Schulz
2003-08-13 11:25 ` Chris Gianelloni
2003-08-14 17:58 ` Karsten Schulz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox