Bug 15329 - makewhatis issue with cron script
Summary: makewhatis issue with cron script
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 03:21 CET by brian peterson
Modified: 2015-12-14 01:44 CET (History)
3 users (show)

See Also:
Source RPM: man-1.6g-10.mga5.src.rpm
CVE:
Status comment:


Attachments

Description brian peterson 2015-02-20 03:21:34 CET
assuming someone tries Mageia's command console and would like to issue "apropos <string>", I've noticed this is not available for multiple strings such as "bash", "mageia", .. so there's a good few binary names not showing up

The first thing I usually check is to update the whatis db with /etc/cron.daily/makewhatis.cron, however running this script didn't update the db adequately..

There is "-u -w" passed to makewhatis in the cron script.. trying the command alone as "makewhatis<cron>" was then later able to show me whatis entries with "apropos <search string> <enter>"



Reproducible: 

Steps to Reproduce:
Comment 1 brian peterson 2015-02-20 03:38:20 CET
"
There is "-u -w" passed to makewhatis in the cron script.. trying the command alone as "makewhatis<cron>" was then later able to show me whatis entries with "apropos <search string> <enter>"
"

^ typo, command passed without parameters that was issued was "makewhatis<enter>"

BP
Comment 2 brian peterson 2015-02-20 03:51:01 CET
probably the worst bugreport I ever written lol
Comment 3 David Walser 2015-02-20 23:32:01 CET
The real solution is to switch from the old man implementation we still have to man-db.  I've been planning this for a long time, but still haven't gotten around to it.  I know when OpenMandriva switched to it there was *something* else somewhere that they needed to change, like something that wasn't needed anymore, and it's possibly related to this, I just can't remember exactly.

CC: (none) => luigiwalser

Comment 4 David Walser 2015-02-21 00:35:31 CET
Note to self, when switching to man-db, changes like this may need to be made to packages like man-pages-{zh,it,ru,fr,id,ko,da,hu,pl}:
https://abf.rosalinux.ru/openmandriva/man-pages-da/commit/131a6dad6ea044dbd96ca6c9e7e6ff30c206c986

This commit to man-pages may also be relevant:
https://abf.rosalinux.ru/import/man-pages/commit/56901da8a98fbe0389972a42dc1db102a81d8c9d
Samuel Verschelde 2015-06-01 00:14:08 CEST

Whiteboard: (none) => MGA5TOO

Comment 5 Florian Hubold 2015-12-10 10:42:51 CET
(In reply to David Walser from comment #4)
> Note to self, when switching to man-db ...

Well, wasn't cauldron already switched to man-db? At least tv removed the makewhatis cache generation in the man-pages-{de,zh,it,ru,fr,id,ko,da,hu,pl} packages already with no replacement. So this bug report can't be against cauldron, as makewhatis doesn't exist there anymore.

But man-db-cron (which supposedly should now do what makewhatis did before?) is not required by any other package and hence not installed. Apart from that the migration is not documented anywhere ... 

On a further notice this migration removed a safety check in man-pages-de package.

CC: (none) => doktor5000, thierry.vignaud

Comment 6 Florian Hubold 2015-12-11 13:38:21 CET
Scratch the last comment, the migration to man-db is already complete, see the dev ml thread https://ml.mageia.org/wwsympa-wrapper.fcgi/arc/dev/2015-12/msg00184.html

Adjusting the bug as we don't have makewhatis in cauldron anymore. 
Apart from that, I cannot reproduce, I never ran makewhatis manually and e.g. "apropos bash" or "apropos mageia" return expected results. For comparison:

[doktor5000@Mageia5]â[13:35:42]â[~] apropos mageia|wc -l
3
[doktor5000@Mageia5]â[13:36:01]â[~] apropos bash|wc -l
64

Running makewhatis manually without options as root does not change those numbers.

Status: NEW => UNCONFIRMED
Hardware: i586 => All
Version: Cauldron => 5
Ever confirmed: 1 => 0
Whiteboard: MGA5TOO => (none)

Comment 7 David Walser 2015-12-11 16:02:19 CET
You can check the specs of our man related packages vs. openmandriva, as they successfully completed the transition to man-db well before us.
Comment 8 Florian Hubold 2015-12-12 00:26:30 CET
(In reply to David Walser from comment #7)
> You can check the specs of our man related packages vs. openmandriva, as
> they successfully completed the transition to man-db well before us.

Doesn't mean that's the proper way to go. As mentioned on dev ml by tv, we don't package the indexes/caches as those are handled via filetriggers by man-db automagically.

But that's a little OT here ... ;)
Comment 9 Thierry Vignaud 2015-12-12 14:17:53 CET
I've much more confidence in RH that in OM and we're synced with them.
And they've completed the switch _way_ before.

Anyway this bug report was about man on Mageia 5, not man-db on cauldron.
Man-db-cron is _not_ needed.
AFAIK there's no issue with man-db on Cauldron
Comment 10 Thierry Vignaud 2015-12-12 14:20:17 CET
And as for OM changes, packaging indexes that will be updated by mandb when other packages install some man pages under those locations is just bogus (rpm -V will complain, ...)
Comment 11 Florian Hubold 2015-12-14 01:44:23 CET
(In reply to Thierry Vignaud from comment #10)
> packaging indexes that will be updated by mandb when  other packages install
> some man pages under those locations is just bogus (rpm -V will complain, ...)

Well, the indexes could be packaged as %ghost to see which package they belong to, but there's not much practical use in that.


Anyways, as this report was against makewhatis under mga5, and cannot be reproduced as mentioned in comment 6, closing it.

qBrian: Please reopen if it still occurs, and provide clear instructions to reproduce.

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => INVALID


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