From 71083f9e5ecfb94d110664499d87cea3e6c61b2e Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 12 May 2015 16:36:15 -0400 Subject: [PATCH] Don't try to map /bin/sh to a store path on non-Linux --- src/libstore/build.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 08b647cd6..2d81f72c1 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1786,8 +1786,10 @@ void DerivationGoal::startBuilder() if (useChroot) { string defaultChrootDirs; +#if CHROOT_ENABLED if (isInStore(BASH_PATH)) defaultChrootDirs = "/bin/sh=" BASH_PATH; +#endif /* Allow a user-configurable set of directories from the host file system. */