schroot is a Debian dev-util which allows easy handling of chroots. It handles automatic copying of files from the root into the chroot, as well as the mounting and unmounting issues. It also allows regular users to chroot.
Created attachment 180654 [details] schroot-1.2.1.ebuild
Created attachment 180656 [details] files/schroot.tests.patch Fixes an automagic dependancy on cppunit, which is used if make test is to be run.
Created attachment 180657 [details] files/schroot.pamfix.patch Fixes the defualt PAM configuration to be the same as it is on Debian (which may or may not be a good idea), without using the common-auth files not found in Gentoo.
Created attachment 180681 [details] schroot-1.2.1.ebuild Fix minor style issues, use new patch, thanks to idl0r
Created attachment 180683 [details, diff] configure.ac patch More changes to configure.ac. Fixes --as-needed configure failure due to LDFLAGS being used in place of LIBS.
Created attachment 180782 [details, diff] make check patch Skips/fixes tests which require root access (and thus fail with FEATURES="userpriv").
Created attachment 180783 [details] updated ebuild Use the new patch, and run eautoreconf (as we need to update Makefile.in now)
There has been a vulnerability report for schroot: SA34971 http://secunia.com/advisories/34971/ As overlays are not covered by the Gentoo Security Team, you only get this notification. Howerver, please note that we require the initial commiter to gentoo-x86 to verify that this issue is fixed before adding the package. Thanks!
Created attachment 195766 [details] 1.2.3 + test fixes Version 1.2.3 is out, which addresses the bug noted in Comment #8. This ebuild has been modified from the version in Sunrise to enable use without dev-util/cppunit, as the autoconf patch in Sunrise uses a macro cppunit provides and autoreconf can't resolve.
This package has now been added to the tree. I modified the patches and ebuild a bit, and added an init script based off of Debian's.