Bug 1192538

Summary: texinfo not reading all of /usr/share/info content
Product: Red Hat Enterprise Linux 7 Reporter: gpagnoni
Component: emacsAssignee: Petr Hracek <phracek>
Status: CLOSED ERRATA QA Contact: Marek Haicman <mhaicman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: hartsjc, ksrot, ovasik, vanhoof, vcrhonek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: emacs-24.3-14.el7 Doc Type: Bug Fix
Doc Text:
Cause: Info is not reading whole content of /usr/share/info Consequence: Some info files are missing by command `info`. Emacs info is missing. Fix: Emacs installs info files correctly. Result: All info menus are available again including emacs menu.
Story Points: ---
Clone Of:
: 1193309 (view as bug list) Environment:
Last Closed: 2015-11-19 13:52:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1223033    
Bug Blocks: 1133060, 1193309    

Description gpagnoni 2015-02-13 16:15:19 UTC
Description of problem:

I noticed that Info is not reading all of the /usr/share/info content. If I run `info', for example, I get Info menus corresponding to some of the info files present in /usr/share/info, but not all of them (eg, I can't see a menu for emacs, even though the file emacs.info.gz exists there). The command "info emacs" works, but even Emacs' built-in info reader can't find "Emacs" in the root info directory that comes up in the buffer.

Note that INFOPATH is not defined on this machine.

Version-Release number of selected component (if applicable):

texinfo 5.0 

How reproducible:


Steps to Reproduce:
1. ls /usr/share/info
2. info
3. see that the menu items in the Info screen do not include many of the info files present in /usr/share/info

Actual results:


Expected results:


Additional info:

Comment 2 Vitezslav Crhonek 2015-02-16 13:58:44 UTC
Info doesn't read /usr/share/info content. When invoked without arguments, it shows content of /usr/share/info/dir file (show top-level dir menu).

/sbin/install-info is used to update info/dir entries and packages have to call this command in post install scripts in order to make changes in the menu.

E.g.
# /sbin/install-info /usr/share/info/emacs.info.gz /usr/share/info/dir
adds 
* Emacs: (emacs).               The extensible self-documenting text editor.
entry into the menu.

The problem is in emacs-common post install script. It calls install-info with
/usr/share/info/efaq-w32.info.gz
which doesn't exist and the update of /usr/share/info/dir fails bacause of it.

Comment 4 gpagnoni 2015-02-17 14:55:27 UTC
Thank you for the `info' :-)

I'll just add manually the relevant info file to the dir file via install-info, for the time being.

best
giuseppe

Comment 5 James Hartsock 2015-02-19 20:40:56 UTC
This was report to fedora in bz 1062792

Comment 6 James Hartsock 2015-02-19 23:30:55 UTC
# rpm -q emacs-common
emacs-common-24.3-11.el7.x86_64

# rpm -q --scripts emacs-common | grep -A3 postinstall
postinstall scriptlet (using /bin/sh):
for f in ada-mode auth autotype bovine calc <snip> widget wisent woman; do
  /sbin/install-info /usr/share/info/$f /usr/share/info/dir 2> /dev/null || :
done


Example showing fir instance in above for loop where $f fails, but $f.info.gz works:

# f=ada-mode ; /sbin/install-info /usr/share/info/$f /usr/share/info/dir
install-info: No such file or directory for /usr/share/info/ada-mode

# f=ada-mode ; /sbin/install-info /usr/share/info/$f.info.gz /usr/share/info/dir


---


Assuming we can get an ACK for this on RHEL 7.2, will request z-stream for RHEL 7.1

Comment 7 Petr Hracek 2015-02-20 09:22:07 UTC
Thanks for the bug,

I will check why efaq-w32 was not removed from the list.

Comment 10 Petr Hracek 2015-02-20 12:02:43 UTC
Strange I have installed RHEL-7 server with emacs

Package versions are:
[root@localhost yum.repos.d]# rpm -q emacs-common
emacs-common-24.3-11.el7.x86_64
[root@localhost yum.repos.d]# rpm -ql emacs-common | grep efaq
/usr/share/info/efaq.info.gz
[root@localhost yum.repos.d]# 

Where did you find efaq-w32.info.gz?

But you are right, emacs.info is not visible in menu.

Comment 11 James Hartsock 2015-02-20 17:28:48 UTC
(In reply to Petr Hracek from comment #10)
> Strange I have installed RHEL-7 server with emacs
> 
> Package versions are:
> [root@localhost yum.repos.d]# rpm -q emacs-common
> emacs-common-24.3-11.el7.x86_64
> [root@localhost yum.repos.d]# rpm -ql emacs-common | grep efaq
> /usr/share/info/efaq.info.gz
> [root@localhost yum.repos.d]# 
> 
> Where did you find efaq-w32.info.gz?


That was from a RHEL 7.1 HTB system, wanted to make sure issue wasn't already fixed in RHEL 7.1

[root@rhel7-1 ~]# rpm -qf /usr/share/info/efaq.info.gz
emacs-common-24.3-11.el7.x86_64

Comment 17 errata-xmlrpc 2015-11-19 13:52:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2434.html