mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #76718 from matthewbauer/fix-etc-sconfigdir
linux-pam: set sconfigdir to /etc for usage at runtime
This commit is contained in:
commit
7743eba511
@ -44,9 +44,7 @@ stdenv.mkDerivation rec {
|
||||
# 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 = ''
|
||||
configureFlags="$configureFlags --includedir=$out/include/security"
|
||||
'' + stdenv.lib.optionalString (stdenv.hostPlatform.libc == "musl") ''
|
||||
preConfigure = stdenv.lib.optionalString (stdenv.hostPlatform.libc == "musl") ''
|
||||
# export ac_cv_search_crypt=no
|
||||
# (taken from Alpine linux, apparently insecure but also doesn't build O:))
|
||||
# disable insecure modules
|
||||
@ -54,6 +52,15 @@ stdenv.mkDerivation rec {
|
||||
sed -e 's/pam_rhosts//g' -i modules/Makefile.in
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--includedir=${placeholder "out"}/include/security"
|
||||
"--enable-sconfigdir=/etc/security"
|
||||
];
|
||||
|
||||
installFlags = [
|
||||
"SCONFIGDIR=${placeholder "out"}/etc/security"
|
||||
];
|
||||
|
||||
doCheck = false; # fails
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user