[MacPorts] #73455: findutils: cannot use locate; updatedb apparently fails to do anything useful!

MacPorts noreply at macports.org
Thu May 7 12:01:15 UTC 2026


#73455: findutils: cannot use locate; updatedb apparently fails to do anything
useful!
---------------------------+----------------------
  Reporter:  seamusdemora  |      Owner:  mascguy
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.11.6
Resolution:                |   Keywords:  sequoia
      Port:  findutils     |
---------------------------+----------------------

Comment (by seamusdemora):

 I'm going to add the results of a little experiment I did:

 OS version: macOS Mojave, v 10.14.6

 MacPorts version: MacPorts base version 2.12.5 installed

 findutils version: 4.10.0_0


 {{{
 $ touch ~/Rw9Qt57_gcA.random

 $ sudo gupdatedb
 gfind: '/private/var/db/fpsd/dvp': Operation not permitted
 gfind: '/private/var/db/ConfigurationProfiles/Store': Operation not
 permitted
 gfind:
 '/private/var/folders/zy/7_10l4d97996yps2jyddd5rr0000gq/0/com.apple.LaunchServices.dv':
 Operation not permitted
 ...
 gfind:
 '/private/var/folders/8_/myc8fnc57pxbzsjh2zq6zw6c0000gn/0/com.apple.progressd/ClassKit':
 Operation not permitted
 ...
 gfind:
 '/private/var/folders/zz/zyxvpxvq6csfxvn_n00000z000007r/0/com.apple.routined/dv':
 Operation not permitted

 $ glocate Rw9Qt57_gcA.random
 /Users/seamus/Rw9Qt57_gcA.random

 $ mv ~/Rw9Qt57_gcA.random ~/XvW92T0-y7h.modnar

 $ sudo gupdatedb --prunepaths='/private/var'

 $ glocate XvW92T0-y7h.modnar
 /Users/seamus/XvW92T0-y7h.modnar

 }}}

 RESULT: On Mojave, using above-named MacPorts and findutils versions,
 {{{gupdatedb}}} appears to have built a functional locatedb file with - or
 without  - the use of the {{{--prunepaths}}} option.

 --------------------

 On a different Mac:

 OS version: macOS Tahoe, v 26.4.1

 MacPorts version: MacPorts base version 2.12.5 installed,

 findutils version: 4.10.0_0

 {{{
 $ touch ~/Rw9Qt57_gcA.random

 $ sudo gupdatedb
 gfind: '/Library/Caches/com.apple.amsengagementd.classicdatavault':
 Operation not permitted
 gfind: '/Library/Caches/com.apple.aneuserd': Operation not permitted
 gfind: '/Library/Caches/com.apple.aned': Operation not permitted
 gfind: '/System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_Visual':
 Operation not permitted
 ...
 gfind:
 '/System/Volumes/Data/Library/Caches/com.apple.amsengagementd.classicdatavault':
 Operation not permitted
 gfind: '/System/Volumes/Data/Library/Caches/com.apple.aneuserd': Operation
 not permitted
 gfind: '/System/Volumes/Data/Library/Caches/com.apple.aned': Operation not
 permitted
 gfind: failed to read file names from file system at or below '/': No such
 file or directory

 $ locate Rw9Qt57_gcA.random

 $
 #  i.e. null output  =>  empty locatedb

 }}}

 RESULT: On Tahoe, using above-named MacPorts and findutils versions,
 {{{gupdatedb}}} appears to have FAILED to  build a functional locatedb
 file.

-- 
Ticket URL: <https://trac.macports.org/ticket/73455#comment:24>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list