Merge pull request #109102 from Izorkin/libcap-update

This commit is contained in:
Jörg Thalheim
2021-01-18 17:00:05 +00:00
committed by GitHub
2 changed files with 6 additions and 9 deletions
+4 -7
View File
@@ -7,11 +7,11 @@ assert usePam -> pam != null;
stdenv.mkDerivation rec {
pname = "libcap";
version = "2.44";
version = "2.46";
src = fetchurl {
url = "mirror://kernel/linux/libs/security/linux-privs/libcap2/${pname}-${version}.tar.xz";
sha256 = "1qf80lifygbnxwvqjf8jz5j24n6fqqx4ixnkbf76xs2vrmcq664j";
sha256 = "1d6q447wf0iagiyzhfdqcj4cv0dmzc49i0czwikrcv7s2cad3lsf";
};
patches = lib.optional isStatic ./no-shared-lib.patch;
@@ -34,11 +34,8 @@ stdenv.mkDerivation rec {
];
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
# use full path to bash
substituteInPlace progs/capsh.c --replace "/bin/bash" "${stdenv.shell}"
# set prefixes
substituteInPlace Make.Rules \