Chroot for package testing

Btrfs
Prepare a btrfs subvolume stable-vol and mount it to /vol/stable

Setup a stable gentoo from stage3 in /vol/stable and make a snapshot. Make adjustments for package testing. (make.conf ...)

Preparing a chroot environment
Get the stage 3 tarball. Create a subdirectory, then unpack stage3 in it.

Then you may chroot and set up a stable gentoo from stage 3 by following.

Testing the package
Once chrooted in a stable gentoo from stage 3, create a custom repository and copy in it the ebuild you want to test.

Add the gentoo-dev use flag to portage and re-emerge it.

Before testing the package foo/bar, emerge all its test depencencies.

Make the adjustments of the make.conf file (see ), and then emerge the package

Resources

 * get latest stage3 by script https://github.com/nado/chroot-helper/blob/oldscript/setup-stage3.sh