Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24299 - emerge suggests using option --verbose when regenerating the gnu info cache, which is absolutly useless information
Summary: emerge suggests using option --verbose when regenerating the gnu info cache, ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2003-07-11 12:30 UTC by jochen
Modified: 2004-10-22 08:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to disable the --verbose check (info-error-message.diff,630 bytes, patch)
2004-02-04 20:57 UTC, Marius Mauch (RETIRED)
Details | Diff
Fixes most (all on my system) 'error'-counts for info-files by suppressing a specific warning (emerge.info-warnings.patch,626 bytes, patch)
2004-03-15 08:58 UTC, Peter van Kampen
Details | Diff
Testprogram to (re)generate the infofile with the patch from the previous entry. (infotest.py,2.59 KB, text/plain)
2004-03-20 05:45 UTC, Peter van Kampen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jochen 2003-07-11 12:30:30 UTC
Something obviously went wrong sometime with my GNU info pages directory. Now
emerge suggests me after emerging some random package to run use "emerge
--verbose" to see what went wrong. However just typing "emerge --verbose" just
displays the help. Trying to reemerge the same package with --verbose doesn't
help either since the gnu info pages cache isn't updated then

Reproducible: Always
Steps to Reproduce:
1. "break gnu info packages"
2. emerge foo
3. emerge --verbose # as suggested
Actual Results:  
shows help

Expected Results:  
shows what went wrong with the info pages
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-02-04 20:57:21 UTC
Created attachment 24981 [details, diff]
patch to disable the --verbose check

Many users get confused by this message, so I think we should always show the
error message or never (as most people don't use them anyway).
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2004-02-10 18:44:10 UTC
IMO, if we do this fix we need changing to always do "print myso" and display "post it to bugzilla" as well.

What do you think?
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-02-15 18:27:08 UTC
Yes on the "print myso", not so sure about the bugzilla hint as it could be portage related, package related or texinfo related.
Comment 4 Masatomo Nakano (RETIRED) gentoo-dev 2004-02-26 20:38:12 UTC
Fixed in CVS
Comment 5 Peter van Kampen 2004-03-15 08:58:48 UTC
Created attachment 27401 [details, diff]
Fixes most (all on my system) 'error'-counts for info-files by suppressing a specific warning

Info files with an INFO-DIR-SECTION produce a warning when install-info is run
(see /usr/bin/emerge def post_emerge):

install-info: warning: no info dir entry in $infofile

This warning is harmless and this patch suppreses them. The infofiles are
created and 

$info $infofile 

will work. 

The only drawback is that $infofile isn't included in the default 'dir'-file.
To fix this the info-files should be patched upstream I guess...
Comment 6 Peter van Kampen 2004-03-20 05:45:51 UTC
Created attachment 27689 [details]
Testprogram to (re)generate the infofile with the patch from the previous entry.


You can run this file to see the 'errors' produced by regenerating the
infofiles. You can also run it with the -p option to include the patch in the
test to see the difference. 

It is the same source as 'emerge' but stripped of everything not related to the
infofiles. In addition it prints a comment for every infodir that is being
processed and it removes duplicates that don't normally occur (is taken care of
by some code I took).

On my system this produces:

bash-2.05b# python infotest.py
* Processing infodir:  /usr/share/info .
install-info: warning: no info dir entry in `/usr/share/info/jed.1in.gz'
install-info: warning: no info dir entry in `/usr/share/info/jed.2in.gz'
install-info: warning: no info dir entry in `/usr/share/info/jed.3in.gz'
install-info: warning: no info dir entry in `/usr/share/info/libcdio.info.gz'
* Processing infodir:  /usr/share/gcc-data/i686-pc-linux-gnu/3.3/info .
 * Processed 278 info files; 4 errors.
bash-2.05b# python infotest.py -p
* Processing infodir:  /usr/share/info .
* Processing infodir:  /usr/share/gcc-data/i686-pc-linux-gnu/3.3/info .
 * Processed 278 info files.
bash-2.05b#
Comment 7 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 07:52:50 UTC
Fixed again.
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:14 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2