mirror of
https://abf.rosa.ru/djam/glibc.git
synced 2025-02-23 23:12:48 +00:00
Restore lost ldconfig filetrigger
This commit is contained in:
parent
193916f6ad
commit
32c53efc12
1 changed files with 14 additions and 1 deletions
15
glibc.spec
15
glibc.spec
|
@ -126,7 +126,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: 5
|
||||
Release: 6
|
||||
License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
|
||||
Group: System/Libraries
|
||||
Url: http://www.gnu.org/software/libc/
|
||||
|
@ -606,6 +606,7 @@ LANG variable to their preferred language in their
|
|||
%dir %{_var}/cache/ldconfig
|
||||
%ghost %{_var}/cache/ldconfig/aux-cache
|
||||
%{_var}/db/Makefile
|
||||
%{_var}/lib/rpm/filetriggers/ldconfig.*
|
||||
%if %isarch mips mipsel
|
||||
%if %{build_biarch}
|
||||
%{_slibdir32}/ld-%{fullver}.so
|
||||
|
@ -1473,6 +1474,18 @@ truncate -s 0 %{buildroot}%{_var}/cache/ldconfig/aux-cache
|
|||
# ldconfig is statically linked, so we can use the new version.
|
||||
%{buildroot}/sbin/ldconfig -N -r %{buildroot}
|
||||
|
||||
# automatic ldconfig cache update on rpm installs/removals
|
||||
# (see http://wiki.rosalab.ru/en/index.php/Rpm_filetriggers)
|
||||
install -d %{buildroot}%{_var}/lib/rpm/filetriggers
|
||||
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/ldconfig.filter << EOF
|
||||
^.((/lib|/usr/lib)(64)?/[^/]*\.so\.|/etc/ld.so.conf.d/[^/]*\.conf)
|
||||
EOF
|
||||
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/ldconfig.script << EOF
|
||||
#!/bin/sh
|
||||
ldconfig -X
|
||||
EOF
|
||||
chmod 755 %{buildroot}%{_var}/lib/rpm/filetriggers/ldconfig.script
|
||||
|
||||
echo "include /etc/ld.so.conf.d/*.conf" > %{buildroot}%{_sysconfdir}/ld.so.conf
|
||||
chmod 644 %{buildroot}%{_sysconfdir}/ld.so.conf
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
||||
|
|
Loading…
Add table
Reference in a new issue