Re: Does MacPorts depend on Spotlight?

2021-11-23 Thread Giuseppe 'ferdy' Miceli
ciao, i have stolen lot of stuff myself from this git repository: https://mths.be/macos hth, — > On 22 Nov 2021, at 07:22, Sriranga Veeraraghavan > wrote: > > Hi Dave, > > I’ve often wondered how to find out about the functionality of

Re: Does MacPorts depend on Spotlight?

2021-11-21 Thread Sriranga Veeraraghavan
Hi Dave, I’ve often wondered how to find out about the functionality of all the different command line programs in MacOSX. The best list I’ve come across is: https://git.herrbischoff.com/awesome-macos-command-line/about/ There is also a interesting Git project that shows the differences in

Re: Does MacPorts depend on Spotlight?

2021-11-19 Thread Sriranga Veeraraghavan
According to the following Spotlight FAQ, Spotlight apparently doesn't index, among other things, “[f]iles whose invisible file-system attribute has been enabled” or "[f]iles within hidden or invisible folders”: http://www.thexlab.com/faqs/stopspotlightindex.html

Re: Does MacPorts depend on Spotlight?

2021-11-19 Thread Ryan Schmidt
On Nov 18, 2021, at 08:47, Eric Gallager wrote: > Didn't MacPorts start doing `chflags hidden` on > /opt/local/var/macports at some point to stop Spotlight from indexing > it? You appear to be correct, based on this commit message:

Re: Does MacPorts depend on Spotlight?

2021-11-18 Thread Craig Treleaven
> On Nov 18, 2021, at 9:47 AM, Eric Gallager via macports-users > wrote: > > On Thu, Nov 18, 2021 at 3:02 AM Ryan Schmidt wrote: >> >> MacPorts base doesn't do anything with Spotlight. It doesn't depend on it >> existing, nor does it tell Spotlight to index or not to index anything. >>

Re: Does MacPorts depend on Spotlight?

2021-11-18 Thread Richard L. Hamilton
sh-3.2$ ls -ld@O /opt/local/var/macports drwxr-xr-x@ 13 root wheel - 416 Apr 16 2021 /opt/local/var/macports com.apple.FinderInfo 32 sh-3.2$ lsmac /opt/local/var [...] I- 11 items - macports/ [...] Mine doesn't have the BSD (Windows compatibility) hidden flag,

Re: Does MacPorts depend on Spotlight?

2021-11-18 Thread Eric Gallager via macports-users
On Thu, Nov 18, 2021 at 3:02 AM Ryan Schmidt wrote: > > MacPorts base doesn't do anything with Spotlight. It doesn't depend on it > existing, nor does it tell Spotlight to index or not to index anything. > MacPorts predates the existence of Spotlight. > > As far as I know, ports don't depend on

Re: Does MacPorts depend on Spotlight?

2021-11-18 Thread Ryan Schmidt
MacPorts base doesn't do anything with Spotlight. It doesn't depend on it existing, nor does it tell Spotlight to index or not to index anything. MacPorts predates the existence of Spotlight. As far as I know, ports don't depend on Spotlight having indexed the MacPorts prefix or the build

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Richard L. Hamilton
Mos Applie-supplied command line tools and C programming interfaces are in man pages, the latter only if you have Xcode and/or command line developer tools installed (and those aren't on the default search path for the man command, so finding them might be non-obvious). Some command line

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread raf
On Thu, Nov 18, 2021 at 08:37:17AM +1100, Dave Horsfall wrote: > On Wed, 17 Nov 2021, Bill Cole wrote: > > > > Where are all these obscure commands documented? > > > > /usr/share/man/man1/ and /usr/share/man/man8/ mostly... > > Perhaps I should've expressed it better :-) > > I've found all

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread André-John Mas
Either by trying to find an answer on the internet, where it was documented, someone else discovered it or already knew how to do something with the given command, or using: man -k such as: man -k spotlight So in short, using the man command or an internet search. > On 17 Nov, 2021, at

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Peter Hancock
On 17/11/2021 20:06, Dave Horsfall wrote: On Wed, 17 Nov 2021, Peter Hancock wrote: On Catalina, for me the command "sudo mdutil -i off /opt/local/var/macports" evokes: [...] Where are all these obscure commands documented? I came across them from googled-up places like stack-exchange and

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Dave Horsfall
On Wed, 17 Nov 2021, Bill Cole wrote: Where are all these obscure commands documented? /usr/share/man/man1/ and /usr/share/man/man8/ mostly... Perhaps I should've expressed it better :-) I've found all sorts of obscure commands (such as "security" and the aforementioned "mdutil")

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Bill Cole
On 2021-11-17 at 15:06:23 UTC-0500 (Thu, 18 Nov 2021 07:06:23 +1100 (EST)) Dave Horsfall is rumored to have said: > On Wed, 17 Nov 2021, Peter Hancock wrote: > >> On Catalina, for me the command "sudo mdutil -i off /opt/local/var/macports" >> evokes: > > [...] > > Where are all these obscure

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Sriranga Veeraraghavan
Long ago, I was told that Spotlight would not index a folder and its subfolders if the file .metadata_never_index was present. I can’t vouch for this (mostly because I generally disable Spotlight), but it is perhaps something that someone can try and see if works, for example: $ sudo touch

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Dave Horsfall
On Wed, 17 Nov 2021, Peter Hancock wrote: On Catalina, for me the command "sudo mdutil -i off /opt/local/var/macports" evokes: [...] Where are all these obscure commands documented? -- Dave

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread André-John Mas
Agree with all this. Maybe just something to add to the docs or FAQ? André-John Sent from my phone. Envoyé depuis mon téléphone. > On 17 Nov 2021, at 14:49, Richard L. Hamilton wrote: > >  > >> On Nov 17, 2021, at 14:16, André-John Mas wrote: >> >> When looking at "System Preferences ->

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Richard L. Hamilton
> On Nov 17, 2021, at 14:16, André-John Mas wrote: > > When looking at "System Preferences -> Spotlight -> Privacy", you can > configure exclusions by folder. > > I had a look at the mdutil command and no reference to folders or paths is > mentioned, when looking from macOS 12.0.1: > >

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread André-John Mas
A bit more digging gives me this following stackexchange question: https://apple.stackexchange.com/questions/87090/how-to-programatically-add-folder-to-spotlight-do-not-index On 12.0.1

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread André-John Mas
When looking at "System Preferences -> Spotlight -> Privacy", you can configure exclusions by folder. I had a look at the mdutil command and no reference to folders or paths is mentioned, when looking from macOS 12.0.1: Usage: mdutil -pEsa -i (on|off) -d volume ... mdutil -t

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Richard L. Hamilton
I also haven't found an intended command line way or program API to add a directory to exclude from Spotlight. (they are buried in a plist file in the Spotlight data directory for the particular mount point, and one could use command line tools to add it there, but I would NOT recommend risking

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Peter Hancock
On 17/11/2021 15:46, Chris Jones wrote: Some users might find it useful, and the exact volume to exclude depends on the details of the users installation, which would be difficult to automate. So I think its fine to just leave it to be done by hand by those that wish to. On 17/11/2021 3:09 pm,

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread Chris Jones
Some users might find it useful, and the exact volume to exclude depends on the details of the users installation, which would be difficult to automate. So I think its fine to just leave it to be done by hand by those that wish to. On 17/11/2021 3:09 pm, André-John Mas wrote: Just

Re: Does MacPorts depend on Spotlight?

2021-11-17 Thread André-John Mas
Just wondering whether it would make sense for MacPorts to auto exclude that folder? Does spotlight even provide an API or command that would allow MacPorts to do that? André-John Sent from my phone. Envoyé depuis mon téléphone. > On 16 Nov 2021, at 21:03, Richard L. Hamilton wrote: > >

Re: Does MacPorts depend on Spotlight?

2021-11-16 Thread Richard L. Hamilton
Good, thanks. Perhaps I wouldn't exclude the whole /opt/local (or whatever install prefix) unless performance is a major issue, but /opt/local/var/macports, which is less likely to be interesting in terms of commands or configuration files or documentation, and both large (mine is 24GiB when

Re: Does MacPorts depend on Spotlight?

2021-11-16 Thread Chris Jones
I am not aware of any use macports itself makes of spotlight, so for sure if you don’t plan on using it yourself to search the install prefix, you can disable it. > On 16 Nov 2021, at 6:26 am, Richard L. Hamilton wrote: > > Seems it'd thrash Spotlight a lot less during "port selfupdate" or

Does MacPorts depend on Spotlight?

2021-11-15 Thread Richard L. Hamilton
Seems it'd thrash Spotlight a lot less during "port selfupdate" or "port upgrade outdated" to exclude /opt/local, as long as that wouldn't break anything (obviously one couldn't then use Spotlight to search /opt/local, but that's ok with me).