Use Lua to compile the installation scripts of glibc-common and glibc-locale-archive.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
This commit is contained in:
parent
e94dd6c969
commit
56e49a9484
35
glibc.spec
35
glibc.spec
@ -66,7 +66,7 @@
|
||||
##############################################################################
|
||||
Name: glibc
|
||||
Version: 2.34
|
||||
Release: 85
|
||||
Release: 86
|
||||
Summary: The GNU libc libraries
|
||||
License: %{all_license}
|
||||
URL: http://www.gnu.org/software/glibc/
|
||||
@ -1258,35 +1258,27 @@ else
|
||||
io.stdout:write ("Error: Missing " .. iconv_cache .. " file.\n")
|
||||
end
|
||||
|
||||
%postun common
|
||||
%postun -p <lua> common
|
||||
archive_path = "%{_prefix}/lib/locale/locale-archive"
|
||||
if [ -f "$archive_path" ];then
|
||||
unlink "$archive_path"
|
||||
fi
|
||||
os.remove (archive_path)
|
||||
|
||||
%posttrans common
|
||||
%posttrans -p <lua> common
|
||||
archive_path = "%{_prefix}/lib/locale/locale-archive"
|
||||
default_path = "%{_prefix}/lib/locale/locale-archive.default"
|
||||
if [ -f "$archive_path" ];then
|
||||
unlink "$archive_path"
|
||||
fi
|
||||
ln "$default_path" "$archive_path"
|
||||
os.remove (archive_path)
|
||||
posix.link(default_path, archive_path)
|
||||
|
||||
%postun locale-archive
|
||||
%postun -p <lua> locale-archive
|
||||
archive_path = "%{_prefix}/lib/locale/locale-archive"
|
||||
default_path = "%{_prefix}/lib/locale/locale-archive.default"
|
||||
if [ -f "$archive_path" ];then
|
||||
unlink "$archive_path"
|
||||
fi
|
||||
ln "$default_path" "$archive_path"
|
||||
os.remove (archive_path)
|
||||
posix.link(default_path, archive_path)
|
||||
|
||||
%posttrans locale-archive
|
||||
%posttrans -p <lua> locale-archive
|
||||
archive_path = "%{_prefix}/lib/locale/locale-archive"
|
||||
update_path = "%{_prefix}/lib/locale/locale-archive.update"
|
||||
if [ -f "$archive_path" ];then
|
||||
unlink "$archive_path"
|
||||
fi
|
||||
ln "$update_path" "$archive_path"
|
||||
os.remove (archive_path)
|
||||
posix.link(update_path, archive_path)
|
||||
|
||||
%pre devel
|
||||
# this used to be a link and it is causing nightmares now
|
||||
@ -1401,6 +1393,9 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Jun 14 2022 Yang Yanchao <yangyanchao6@huawei.com> - 2.34-86
|
||||
- Use Lua to compile the installation scripts of glibc-common and glibc-locale-archive.
|
||||
|
||||
* Wed Jun 1 2022 Qingqing Li <liqingqing3@huawei.com> - 2.34-85
|
||||
- use locale-archive to prevent basic command performance regression
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user