about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2003-08-20 11:13:13 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2003-08-20 11:13:13 +0000
commiteaadea1e2a8f54ff8707490613ac50d32af8d761 (patch)
tree7496f2c2ca4a78d1ccd49d4392c2fb814ce626af /pkgs
parentea7ab231095f3fa0e1d03e738ccb9deb45b94943 (diff)
* Initialise the PATH immediately at the start of stdenv-linux, otherwise
  baseenv won't work properly (because it can't find programs such as `cat').

svn path=/nixpkgs/trunk/; revision=331
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/baseenv/setup.sh2
-rw-r--r--pkgs/stdenv-linux/setup.sh6
-rwxr-xr-xpkgs/stdenv-linux/stdenv-build.sh1
-rwxr-xr-xpkgs/stdenv-linux/stdenv-nativetools-build.sh2
4 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/baseenv/setup.sh b/pkgs/baseenv/setup.sh
index 3b8263a8df3e2..4cdd3518247b5 100644
--- a/pkgs/baseenv/setup.sh
+++ b/pkgs/baseenv/setup.sh
@@ -1,5 +1,5 @@
 # Add the directory containing the GCC wrappers to the PATH.
-export PATH=@OUT@/bin
+export PATH=@OUT@/bin:$PATH
 
 # Recursively add all envpkgs to the relevant environment variables.
 addtoenv()
diff --git a/pkgs/stdenv-linux/setup.sh b/pkgs/stdenv-linux/setup.sh
index 3d37b2750c9c7..396abf41c54bf 100644
--- a/pkgs/stdenv-linux/setup.sh
+++ b/pkgs/stdenv-linux/setup.sh
@@ -1,9 +1,9 @@
+export PATH=@PATH@
+export SHELL=@SHELL@
+
 . @BASEENV@/setup
 
 export NIX_CFLAGS="-isystem @GLIBC@/include $NIX_CFLAGS"
 export NIX_LDFLAGS="-L @GLIBC@/lib -Wl,-dynamic-linker,@GLIBC@/lib/ld-linux.so.2,-rpath,@GLIBC@/lib $NIX_LDFLAGS"
 export NIX_CC=@CC@
 export NIX_CXX=@CXX@
-
-export PATH=@PATH@
-export SHELL=@SHELL@
diff --git a/pkgs/stdenv-linux/stdenv-build.sh b/pkgs/stdenv-linux/stdenv-build.sh
index 6695cb058a9b4..005a6f8043d35 100755
--- a/pkgs/stdenv-linux/stdenv-build.sh
+++ b/pkgs/stdenv-linux/stdenv-build.sh
@@ -14,7 +14,6 @@ for i in $tools; do
     fi
     p=$p$i/bin
 done
-p=$p':$PATH'
 
 cc=$gcc/bin/gcc
 cxx=$gcc/bin/g++
diff --git a/pkgs/stdenv-linux/stdenv-nativetools-build.sh b/pkgs/stdenv-linux/stdenv-nativetools-build.sh
index 8d2094c9204cd..3c0e61b2ba4bd 100755
--- a/pkgs/stdenv-linux/stdenv-nativetools-build.sh
+++ b/pkgs/stdenv-linux/stdenv-nativetools-build.sh
@@ -4,7 +4,7 @@ export PATH=/bin:/usr/bin
 
 mkdir $out || exit 1
 
-p='$PATH:/usr/local/bin:/usr/bin:/bin'
+p='/usr/local/bin:/usr/bin:/bin'
 
 cc=/usr/bin/gcc
 cxx=/usr/bin/g++