Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 345881

Summary: sys-apps/mlocate-0.23.1 please add info to updatedb after emerge
Product: Gentoo Linux Reporter: Felix Schuster <felix.schuster>
Component: [OLD] Core systemAssignee: Christian Faulhammer (RETIRED) <fauli>
Status: RESOLVED FIXED    
Severity: enhancement CC: base-system, jlec
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Felix Schuster 2010-11-17 13:38:55 UTC
Because of masking slocate I have unmerged slocate und emerged mlocate (as suggested). When I was trying to run "locate" it fails with:

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

Searching the web I found out to run "updatedb" first.
Now it works. Perhaps the ebuild should do that instead of me (or any other user).

Reproducible: Always

Steps to Reproduce:
1.emerge mlocate
2.execute locate <pattern>
3.error
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2010-11-18 08:08:24 UTC
The ebuild installs a cronjob which is running on a daily basis. Adding a run to the ebuild would make the emerge and specially the reemerge last very long. Nevertheless a short info to the user might be nice, so assigning to maintainer for that.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2010-11-21 14:57:08 UTC
Note added, thanks for the notice.