-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On May 11, 2005, at 9:38 PM, Daniel Johnson wrote:
On May 11, 2005, at 5:28 PM, William Scott wrote:
Hi folks:
I've noticed that when fink starts to unpack and build stuff in / sw/src, spotlight immediately kicks in and compilations are significantly slower as a consequence. Also, since the build directories have an evanescent existence, there isn't much point in indexing these files. I've therefore turned off Spotlight indexing in root's control panel for /sw/src, but is there any unix-type command in 10.4 that could be put in an info file to turn off spotlight indexing in an individual build directory? (I assume anything modifying a plist file would violate the primary directive, but if there is a way to just tag the directory made, without doing anything outside of /sw/src/mypackage, it might be helpful to have that option).
See http://www.macosxhints.com/article.php?story=2005050222125145 for a discussion on this. In a nutshell, the file /.Spotlight-V100/ _rules.plist can contain an array of paths to include or exclude from indexing. I suppose you could use the "defaults" command to manipulate the plist, but it seems easier to just disable indexing for all of /sw/src like "sudo defaults write /.Spotlight-V100/ _rules.plist EXCLUDE -array-add '/sw/src'". A caveat is that the file will be converted to binary plist format by "defaults", which makes it non human-readable (the system won't care).
see /usr/bin/plutil to convert plist formats. also, we should check for dup entries, and also some way to manage changing the builddirs, as i use /tmp/fink-build. Some dies may be useful to index, like manpages and/or /sw/share/doc. We need a spotlight plugin to index .deb files...the TOC at a min, maybe even grabbing full metadata from the config file...
- - - -chris zubrzycki - - - - -- PGP public key: http://homepage.mac.com/beren/publickey.txt ID: 0xA2ABC070 Fingerprint: 26B0 BA6B A409 FA83 42B3 1688 FBF9 8232 A2AB C070 ======================================================== "Of course, you realize this means war." - - - -B. Bunny
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) Comment: Please sign reply-http://www.gnupg.org
iEYEARECAAYFAkKC/qoACgkQ+/mCMqKrwHCq/wCfQcxmJMxDS0oPEORnbQmRzy1W K24AoIHreDEaukKa25okT4KDlV77mZrR =pKuc -----END PGP SIGNATURE-----
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ Fink-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-devel
