mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #6109 from j-keck/libcap_progs
libcap_progs: fix bash path
This commit is contained in:
commit
003896dfe7
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ libcap ];
|
buildInputs = [ libcap ];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
# use relative bash path
|
||||||
|
substituteInPlace progs/capsh.c --replace "/bin/bash" "bash"
|
||||||
|
|
||||||
|
# ensure capsh can find bash in $PATH
|
||||||
|
substituteInPlace progs/capsh.c --replace execve execvpe
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure = "cd progs";
|
preConfigure = "cd progs";
|
||||||
|
|
||||||
installFlags = "RAISE_SETFCAP=no";
|
installFlags = "RAISE_SETFCAP=no";
|
||||||
|
|
Loading…
Reference in a new issue