[MacPorts] #53734: slocate updatedb.conf PRUNEPATHS does not Prune
MacPorts
noreply at macports.org
Mon Mar 6 23:17:39 UTC 2017
#53734: slocate updatedb.conf PRUNEPATHS does not Prune
--------------------+-----------------
Reporter: rsauve | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
--------------------+-----------------
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?
--
Ticket URL: <https://trac.macports.org/ticket/53734>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list