mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
linux-pam: don't create dangling symlink during build
This commit is contained in:
parent
dcab2ec6a5
commit
0715ef5968
@ -1035,7 +1035,7 @@ in
|
||||
setuid = true;
|
||||
owner = "root";
|
||||
group = "root";
|
||||
source = "${pkgs.pam}/sbin/unix_chkpwd.orig";
|
||||
source = "${pkgs.pam}/sbin/unix_chkpwd";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -23,18 +23,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
mv -v $out/sbin/unix_chkpwd{,.orig}
|
||||
ln -sv /run/wrappers/bin/unix_chkpwd $out/sbin/unix_chkpwd
|
||||
''; /*
|
||||
rm -rf $out/etc
|
||||
mkdir -p $modules/lib
|
||||
mv $out/lib/security $modules/lib/
|
||||
'';*/
|
||||
# don't move modules, because libpam needs to (be able to) find them,
|
||||
# which is done by dlopening $out/lib/security/pam_foo.so
|
||||
# $out/etc was also missed: pam_env(login:session): Unable to open config file
|
||||
|
||||
preConfigure = lib.optionalString (stdenv.hostPlatform.libc == "musl") ''
|
||||
# export ac_cv_search_crypt=no
|
||||
# (taken from Alpine linux, apparently insecure but also doesn't build O:))
|
||||
|
Loading…
Reference in New Issue
Block a user