Making halt and shutdown work fine in sysvinit (they had hardcoded /sbin, and

now I hardcode $out/sbin)
I also remove a patch I don't know what was it for.


svn path=/nixpkgs/branches/stdenv-updates/; revision=24874
This commit is contained in:
Lluís Batlle i Rossell
2010-11-26 14:34:29 +00:00
parent cbb3b6f1dc
commit 7ff9a49929
2 changed files with 4 additions and 23 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ stdenv.mkDerivation {
sha256 = "068mvzaz808a673zigyaqb63xc8bndh2klk16zi5c83rw70wifv0";
};
patches = [ ./sysvinit-2.85-exec.patch ];
prePatch = ''
# Patch some minimal hard references, so halt/shutdown work
sed -i -e 's,/sbin/,$out/sbin/,' src/halt.c src/init.c src/paths.h
'';
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man";