about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-12-14T14·15+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-12-14T14·15+0000
commit1e90b4189d5b922479a10eac550736d608b038fd (patch)
treeae6a1194df53e446adcb93a3220d8f5aabbc8b0f /tests
parent485d71c54a323e967ef4f0b4c5ebf97e97d7d725 (diff)
* Another insane Mac OS X 10.5 compatibility hack.
Diffstat (limited to 'tests')
-rw-r--r--tests/init.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh
index c45a617e9f75..2713aa590b9f 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -77,6 +77,20 @@ sed "s|^$|PATH='$PATH'|" < $NIX_DATA_DIR/nix/corepkgs/nar/nar.sh > tmp
 chmod +x tmp
 mv tmp $NIX_DATA_DIR/nix/corepkgs/nar/nar.sh
 
+# An uberhack for Mac OS X 10.5: download-using-manifests uses Perl,
+# and Perl links against Darwin's libutil.dylib (in /usr/lib), but
+# when running "make check", the libtool wrapper script around the Nix
+# binaries sets DYLD_LIBRARY_PATH so that Perl finds Nix's (completely
+# different) libutil --- so it barfs.  So generate a shell wrapper
+# around download-using-manifests that clears DYLD_LIBRARY_PATH.
+mv $NIX_BIN_DIR/nix/download-using-manifests.pl $NIX_BIN_DIR/nix/download-using-manifests.pl.real
+cat > $NIX_BIN_DIR/nix/download-using-manifests.pl <<EOF
+#! $SHELL -e
+export DYLD_LIBRARY_PATH=
+exec $NIX_BIN_DIR/nix/download-using-manifests.pl.real "\$@"
+EOF
+chmod +x $NIX_BIN_DIR/nix/download-using-manifests.pl
+
 # Initialise the database.
 $nixstore --init