From: Chris Gianelloni <wolf31o2@gentoo.org>
To: Karsten Schulz <kaschu@t800.ping.de>
Cc: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] how to test ebuilds without being root?
Date: 13 Aug 2003 07:25:09 -0400 [thread overview]
Message-ID: <1060773909.4130.12.camel@vertigo> (raw)
In-Reply-To: <200308130842.15639.kaschu@t800.ping.de>
[-- 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 --]
next prev parent reply other threads:[~2003-08-13 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-13 6:42 [gentoo-dev] how to test ebuilds without being root? Karsten Schulz
2003-08-13 11:25 ` Chris Gianelloni [this message]
2003-08-14 17:58 ` Karsten Schulz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1060773909.4130.12.camel@vertigo \
--to=wolf31o2@gentoo.org \
--cc=gentoo-dev@gentoo.org \
--cc=kaschu@t800.ping.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox