From 676e07902e175666208b5c644ed8427f7684d3d9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 23 Sep 2009 18:04:55 +0000 Subject: [PATCH] * Darwin hack. --- src/libstore/local-store.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index e91a2559b..619379211 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -518,6 +518,13 @@ void LocalStore::startSubstituter(const Path & substituter, RunningSubstituter & case 0: /* child */ try { + /* Hack to let "make check" succeed on Darwin. The + libtool wrapper script sets DYLD_LIBRARY_PATH to our + libutil (among others), but Perl also depends on a + library named libutil. As a result, substituters + written in Perl (i.e. all of them) fail. */ + unsetenv("DYLD_LIBRARY_PATH"); + fromPipe.readSide.close(); toPipe.writeSide.close(); if (dup2(toPipe.readSide, STDIN_FILENO) == -1)