Bug 665668

Summary: Entry for 'texinfo' is not included in /usr/share/info/dir
Product: [Fedora] Fedora Reporter: Mark Harig <tpeplt>
Component: texinfoAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: pertusus, vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-11 14:13:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark Harig 2010-12-25 20:34:05 UTC
Description of problem:
The Emacs directory file, "/usr/share/info/dir", is not updated when the 'texinfo' RPM package is installed from the Fedora repository.

Version-Release number of selected component (if applicable):
texinfo-4.13a-12.fc14.x86_64

How reproducible:
Every time 'texinfo' is installed using 'yum'/'rpm'.

Steps to Reproduce:
1. Install 'texinfo' using 'yum' directly or the PackageKit applet, 'gpk-application' from the System/Administration menu item, 'Add/Remove Software'.
2. Check for a 'texinfo' entry in /usr/share/info/dir
   $ grep -i texinfo /usr/share/info/dir
  
Actual results:
No entry is listed for 'texinfo' in /usr/share/info/dir

Expected results:
The following lines should be listed in /usr/share/info/dir:
* Texinfo: (texinfo).           The GNU documentation format.
* install-info: (texinfo)Invoking install-info. Update info/dir entries.
* texi2dvi: (texinfo)Format with texi2dvi.      Print Texinfo documents.
* texi2pdf: (texinfo)PDF Output.                PDF output for Texinfo.
* pdftexi2dvi: (texinfo)PDF Output.             PDF output for Texinfo.
* texindex: (texinfo)Format with tex/texindex.  Sort Texinfo index files.
* makeinfo: (texinfo)Invoking makeinfo.         Translate Texinfo source.

Additional info:
It appears that the source of this problem is a small error in the specification for the RPM file for 'texinfo'.  Here are the scripts run for 'texinfo' during installation and un-installation:

rpm -q --scripts texinfo
postinstall scriptlet (using /bin/sh):
if [ -f /usr/share/info/texinfo ]; then # --excludedocs?
    /sbin/install-info /usr/share/info/texinfo /usr/share/info/dir || :
fi
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
    if [ -f /usr/share/info/texinfo ]; then # --excludedocs?
        /sbin/install-info --delete /usr/share/info/texinfo /usr/share/info/dir || :
    fi
fi

Note that the file checked for is /usr/share/info/texinfo.  However, the documentation files included in the 'texinfo' package are compressed:

$ rpm -qd texinfo | grep /usr/share/info
/usr/share/info/texinfo-1.gz
/usr/share/info/texinfo-2.gz
/usr/share/info/texinfo-3.gz
/usr/share/info/texinfo.gz

In the scripts, above, '/usr/share/info/texinfo' should be replaced with '/usr/share/info/texinfo.gz'.

Comment 1 Vitezslav Crhonek 2011-01-11 14:13:15 UTC

*** This bug has been marked as a duplicate of bug 662382 ***

Comment 2 Fedora Update System 2011-01-11 14:25:57 UTC
texinfo-4.13a-13.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/texinfo-4.13a-13.fc14

Comment 3 Fedora Update System 2011-01-19 21:08:13 UTC
texinfo-4.13a-13.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.