KBuildSycoca4 running very frequently

Nicolas Pavillon nicos at macports.org
Sun Feb 17 04:30:29 PST 2013


On Feb 17, 2013, at 4:08 PM, Ian Wadham <iandw.au at gmail.com> wrote:
> 
> Maybe I did load the agent or maybe it got loaded automatically last time
> I upgraded KDE, which was a week or two ago.  I saw something about it
> in the Macports note output at the time and I thought it was a great idea.
> I have been an advocate of running KBuildSycoca4, but not this often … :-)

In fact, from your log messages, it is clear that the agent is loaded, as it is run from org.macports.kdecache. I did not look closely before.

> Maybe KBuildSycoca4 thinks it has "unfinished business" due to not finding
> things on a previous run (see log messages in my previous post).

True. It may be possible to solve it by clearing the kdecache folder and running kbuildsycoca4 manually once, even though I am not fully clear about the errors.

> So, how do I throttle it back?  Sometimes it runs after 60 secs and sometimes
> longer.  The average interval is about 3 or 4 mins.

It is possible by editing the file in /Library/LaunchAgents/org.macports.kdecache.plist and setting the key

    <key>ThrottleInterval</key>
        <integer>60</integer>

to the desired amount of seconds. It may be necessary to reload the agent for the change to be effective. Furthermore, this is partly a hack, in the sense that an upgrade of kdelibs4 would overwrite the change. 

However, if these types of issues appear, I may have to consider changing the interval also in the portfile. 

Cheers, 

Nicolas


More information about the macports-users mailing list