Off nscd by default:

- caching of group and passwd does not make sense because sssd and winbind have their own caches, and NIS is not used nowadays
- caching to accelerate DNS resolution would be useful, but:
- systemd-resolved is used by default in rosa2019.1 and has its own cache
- but hosts cache is offed by default by eglibc-mandriva-nscd-no-host-cache.patch

So, nscd does not make sense. And causes troubles in different situations, e.g. in useradd --root <...> in Anaconda.
This commit is contained in:
Mikhail Novosyolov 2020-12-04 15:05:03 +03:00
parent 0b431f790c
commit 48ad494a7a

View file

@ -132,7 +132,7 @@ Source0: http://ftp.gnu.org/gnu/glibc/%{oname}-%{ver}.tar.xz
#Source1: http://ftp.gnu.org/gnu/glibc/%{oname}-%{ver}.tar.xz.sig
#endif
%endif
Release: 7
Release: 8
License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Group: System/Libraries
Url: http://www.gnu.org/software/libc/
@ -854,7 +854,6 @@ os.execute("/bin/systemctl preset --now nscd.service >/dev/null 2>&1")
%dir %attr(0755,root,root) /run/nscd
%dir %attr(0755,root,root) %{_var}/db/nscd
%dir %attr(0755,root,root) %{_sysconfdir}/netgroup
%{_presetdir}/86-nscd.preset
%{_unitdir}/nscd.service
%{_unitdir}/nscd.socket
%{_sbindir}/nscd
@ -1508,10 +1507,6 @@ install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/nsswitch.conf
install -m755 -d %{buildroot}/run/nscd
touch %{buildroot}/run/nscd/{nscd.pid,socket,passwd,group,hosts,services}
install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-nscd.preset << EOF
enable nscd.socket
enable nscd.service
EOF
%endif
# Include ld.so.conf