From b0d9b910aab737ec937b9d6bacb8cfd95b14f55b Mon Sep 17 00:00:00 2001 From: lipengyu Date: Thu, 4 Jul 2024 13:51:37 +0800 Subject: [PATCH] Fix bug "info command is unable to index the doc info" (cherry picked from commit 7501d16918c1b5fc9f786d71383a11073930f7e4) --- glibc.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 65621d9..e3b955e 100644 --- a/glibc.spec +++ b/glibc.spec @@ -67,7 +67,7 @@ ############################################################################## Name: glibc Version: 2.38 -Release: 30 +Release: 31 Summary: The GNU libc libraries License: %{all_license} URL: http://www.gnu.org/software/glibc/ @@ -1307,6 +1307,16 @@ if [ -L %{_prefix}/include/scsi ] ; then rm -f %{_prefix}/include/scsi fi +%if %{with docs} +%post help +/sbin/install-info %{_infodir}/libc.info.gz %{_infodir}/dir > /dev/null 2>&1 || : + +%preun help +if [ "$1" = 0 ]; then + /sbin/install-info --delete %{_infodir}/libc.info.gz %{_infodir}/dir > /dev/null 2>&1 || : +fi +%endif + %pre -n nscd getent group nscd >/dev/null || /usr/sbin/groupadd -g 28 -r nscd getent passwd nscd >/dev/null || @@ -1423,6 +1433,10 @@ fi %endif %changelog +* Thu Jul 4 2024 lipengyu - 2.38-31 +- fix bug “info command cannot index the glibc help documentation“ +- add the install-info libc.info.gz step during the glibc-help installation process + * Wed Jun 5 Qingqing Li - 2.38-30 - misc: Add support for Linux uio.h RWF_NOAPPEND flag - Disable Intel Xeon Phi tests for GCC 15 and above (BZ 31782) -- Gitee