Bug 202866 - info command does not find grep's info file
Summary: info command does not find grep's info file
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: texinfo
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-16 20:42 UTC by Paul Dickson
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-29 21:59:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
/usr/share/info/dir (76.33 KB, text/plain)
2006-08-18 12:40 UTC, Paul Dickson
no flags Details

Description Paul Dickson 2006-08-16 20:42:25 UTC
Description of problem:
When I type "info grep", I get the info for grepjar

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

How reproducible:
Always

Steps to Reproduce:
1. Type "info grep"
2.
3.
  
Actual results:
The info for grepjar is displayed from fastjar.info

Expected results:
The info from grep.info

Additional info:

Comment 1 Tim Waugh 2006-08-17 09:04:53 UTC
I don't see this here, so I expect it's to do with which order grep and libgcj
are installed.

mitr: any better idea?

Comment 2 Miloslav Trmač 2006-08-17 13:28:09 UTC
Not really.  Paul, can you please attach your /usr/share/info/dir and, if you
still have it, /root/install.log ?

Comment 3 Paul Dickson 2006-08-18 12:40:03 UTC
Created attachment 134440 [details]
/usr/share/info/dir

My /root/install.log is 16 months old (April 2005), FC4-test2.	Do you still
want this?  /usr/share/info/dir is attached.

Comment 4 Tim Waugh 2006-08-18 13:02:39 UTC
Seems like /sbin/install-info (which gets run during grep's %postinstall
scriptlet) failed for some reason.  Does /usr/share/info/grep.info.gz exist?

Comment 5 Paul Dickson 2006-08-18 16:38:20 UTC
$ ll /usr/share/info/grep.info.gz
-rw-r--r-- 1 root root 25983 Jul 12 06:36 /usr/share/info/grep.info.gz


Comment 6 Paul Dickson 2006-08-18 16:41:16 UTC
Should I try reinstalling grep with rpm?

Comment 7 Tim Waugh 2006-08-18 16:50:40 UTC
Definitely looks like a problem with install-info then.

Paul: what happens when you run this command as root?:

/sbin/install-info --info-dir=/usr/share/info /usr/share/info/grep.info.gz

(this is the command that gets run when grep is installed)

Comment 8 Paul Dickson 2006-08-18 18:08:28 UTC
# /sbin/install-info --info-dir=/usr/share/info /usr/share/info/grep.info.gz
# info grep

No errors and the "info grep" now finds the info file.

Could an incomplete yum update have cause this?  The last grep update seems to
have occurred when yum wasn't logging its activity (June 29 - July 14), but then
yum doesn't appear to log error messages that might have occurred either.

Comment 9 Miloslav Trmač 2006-08-29 17:22:24 UTC
Thanks.

This seems to confirm both install-info and grep.info.gz are correct.  Both
info and grep were rebuild during the June 29..July 14 time, but there were
no code changes at all.

I'm afraid I can't think of a way to determine how this could have happened,
my best guess is an rpm database corruption (incorrect package install
counts) causing grep's %preun scriptlet to remove the entry from
/usr/share/info/dir.

Can you run (rpm --rebuilddb) and paste the output of (rpm -q info grep),
please?

Please also try reinstalling the grep package and check whether the info/dir
entry was removed;
try both (grep -Uvh --replacepkgs grep-VERSION.rpm)
and (rpm -ev grep && rpm -Uvh grep-VERSION.rpm).

Comment 10 Paul Dickson 2006-08-29 18:53:42 UTC
# rpm --rebuilddb
# rpm -q info grep
info-4.8-11.1
grep-2.5.1-54.1
# rpm -Uvh --replacepkgs
/var/cache/yum/development/packages/grep-2.5.1-54.1.i386.rpm 
Preparing...                ########################################### [100%]
   1:grep                   ########################################### [100%]
# info grep
# rpm -ev grep --nodeps && rpm -Uvh
/var/cache/yum/development/packages/grep-2.5.1-54.1.i386.rpm 
Preparing...                ########################################### [100%]
   1:grep                   ########################################### [100%]
# rpm -q grep
grep-2.5.1-54.1
# info grep
# 

The "info grep" worked in both cases.

Comment 11 Miloslav Trmač 2006-08-29 21:59:23 UTC
Thanks for the quick answer.

I really have no idea how this could have happened, and unless there are other
reports of this issue, or you can reproduce it, the best I can do is to assume
this was caused by some random rawhide breakage.

Please reopen this report if you have any additional information.


Note You need to log in before you can comment on or make changes to this bug.