Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262026 - sys-apps/mlocate-0.21.1 ~ppc64 keyword request
Summary: sys-apps/mlocate-0.21.1 ~ppc64 keyword request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Christian Faulhammer (RETIRED)
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on:
Blocks:
 
Reported: 2009-03-10 19:44 UTC by Sabuj Pattanayek
Modified: 2009-03-15 13:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sabuj Pattanayek 2009-03-10 19:44:58 UTC
This seems to work fine when installed from scratch into /usr/local :

orca ~ # ls -l /etc/updatedb.conf 
lrwxrwxrwx 1 root root 28 Mar 10 14:16 /etc/updatedb.conf -> /usr/local/etc/updatedb.conf

# stolen from RHEL5

orca ~ # cat /etc/updatedb.conf 
PRUNEFS="sysfs selinuxfs usbdevfs devpts nfsv4 nfs auto autofs afs sfs proc smbfs cifs iso9660 udf"
PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /net /sfs /selinux /udev /mnt/floppy /media"

# stolen from RHEL5

orca ~ # cat /etc/cron.daily/mlocate.cron 
#!/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }')
renice +19 -p $$ >/dev/null 2>&1
/usr/local/bin/updatedb -f "$nodevs"

orca ~ # locate .mp3
locate: can not open `/usr/local/var/mlocate/mlocate.db': No such file or directory
orca ~ # ls -l /usr/local/var/mlocate/
total 14440
-rw------- 1 root root 14766080 Mar 10 14:44 mlocate.db.8gNI7r

^ still building initial DB :)
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-10 20:07:38 UTC
Reassigning to maintainer, CCing base-system herd.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2009-03-10 20:24:37 UTC
So using an entry in /etc/portage/package.keywords like

   sys-apps/mlocate **

did not work for you to install it via Portage and use the configuration and cron files shipped with the ebuild?  Those are enhanced in comparison to the ones from RHEL.
Comment 3 Sabuj Pattanayek 2009-03-10 20:45:57 UTC
will probably work, I'm going to wait until this updatedb is complete (currently cataloging ~5.5TB of files), then I'll backup the db, un-install mlocate in /usr/locate, and re-install via portage.
Comment 4 Sabuj Pattanayek 2009-03-12 18:58:53 UTC
Went ahead and killed the mlocate process that was running from the previous install and installed mlocate from portage, moved the mlocate.db into /var/lib/mlocate from /usr/local/var/mlocate/. Locate seems to work and the new mlocate should have no problems merging changes into the mlocate.db from the previous instance in /usr/local .
Comment 5 Brent Baude (RETIRED) gentoo-dev 2009-03-15 13:18:43 UTC
keyworded ~arch for ppc64, closing