* Hack to allow derivations to disable chroot builds by setting the

attribute "__noChroot = true" (requested by Rob).
This commit is contained in:
Eelco Dolstra 2010-06-01 10:01:14 +00:00
parent b92a2e5cc2
commit a443c7573b

View file

@ -1545,6 +1545,9 @@ void DerivationGoal::startBuilder()
if (fixedOutput) useChroot = false; if (fixedOutput) useChroot = false;
/* Hack to allow derivations to disable chroot builds. */
if (drv.env["__noChroot"] == "1") useChroot = false;
if (useChroot) { if (useChroot) {
#if CHROOT_ENABLED #if CHROOT_ENABLED
/* Create a temporary directory in which we set up the chroot /* Create a temporary directory in which we set up the chroot