Opened 8 years ago

Last modified 8 years ago

#53734 new defect

slocate updatedb.conf PRUNEPATHS does not Prune

Reported by: rsauve Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: slocate

Description (last modified by mf2k (Frank Schima))

I am running an old Apple Power Mac G5 with MacPorts version 2.4.1 I installed port "Secure Locate 3.1 - Released March 7, 2006"

I have added one line in the updatedb.conf file in path /opt/local/etc/:

PRUNEPATHS="/Volumes/Mac-Backup /Volumes/Data-Backup /tmp /private/tmp"

To update the slocate database I run the following command:

sudo /opt/local/bin/slocate -u -c /opt/local/etc/updatedb.conf

However, slocate ignores PRUNEPATHS in updatedb.conf.

Here is an example:

roberts-power-mac-g5:~ robert$ ls /tmp
.                  com.hp.launchport  launch-Sx1bOr      launchd-395.Fg6U5B
..                 launch-QyRnb3      launch-WjqTJg
roberts-power-mac-g5:~ robert$
roberts-power-mac-g5:~ robert$ slocate launch-Sx1bOr
/private/tmp/launch-Sx1bOr
/private/tmp/launch-Sx1bOr/Listeners

I search for launch-Sx1bOr in /tmp, slocate shows it found in /private/tmp/ which path is in PRUNEPATHS.

I have also tested with my external hard drive attached, paths: /Volumes/Mac-Backup /Volumes/Data-Backup. Slocate updates /Volumes/Mac-Backup /Volumes/Data-Backup which is in PRUNEPATHS.

I have had a search on the net but there is very little information available. Is this a bug or a mis-configuration of the updatedb.conf?

Change History (5)

comment:1 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Port: slocate added

comment:2 Changed 8 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

It looks like slocate is obsolete - the website isn't valid and other Linux distro use mlocate now. Although I realize that doesn't really help you now.

comment:5 Changed 8 years ago by rsauve

Thank you for the reply. Yes, my Apple Power Mac G5 is pretty old too. I see the MacPorts does not offer mlocate.

Sorry about the duplication of the original post, something went wrong with editing the message. I will use wiki format next time.

Note: See TracTickets for help on using tickets.