Problems with kdepim4

Fernando Rodriguez frodriguez.developer at outlook.com
Sun May 24 13:10:07 PDT 2015


Hello,

I installed kdepim4 on OSX 10.10.3 and I've had several problems with it. I've 
managed to solve most of them but right now I'm stuck trying to sync with 
google calendar. Once I add the calendar I get "The server failed the 
authenticity check (www.googleapis.com). The certificate authority's certificate 
is invalid." If I click details it doesn't show any problems with the 
certificate, so I clicked "Continue" and then "Forever" but I keep getting the 
same popup. If I accept it 4 times it shows my calendars on the add calendar 
dialog but if I click OK to add them I keep getting the popup until I delete 
the googlecalendar resource config file from ~/.config/akonadi and restart 
akonadi. I had the same error when I first added my outlook.com imap account on 
kmail (it would popup every 5 mins. but it would sync my mail everytime). Then 
I rebooted and kmail wouldn't start, but after I sorted that out I added the 
account again and it worked fine. I found some posts about this same issue with 
Linux but that's from 2009 and I'm using the same version (4.14.3) on Linux 
(Gentoo and Arch) without problems so I assume it's fixed.

The other problem I had is that after installing I ran kbuildsycoca4 and 
started the LaunchAgent. After this kmail would start, but after a reboot it 
would not start anymore. After much thinkering I *think* the problem is 
related to kmail starting with the wrong environment variables, it tries to 
start akonadi by calling akonadi_control but akonadi_control hangs because it 
can't find akonadictl and also with the dbus LaunchAgent permissions. This is 
how I fixed it (please let me know if there's a better solution):

1. Remove dbus LaunchAgent symlink from /Library/LaunchAgents.
2. Copy it to ~/Library/LaunchAgents and chown it to my user.
3. Add another LaunchAgent to run the following script:

#!/bin/bash
export PATH=/opt/local/bin:$PATH
akonadictl start
kwalletd

After this kmail works find but I'm stuck with the above problem adding the 
google calendar resource.

As a side note, in the process of troubleshooting this I ran: port upgrade -
Rvfs dbus to rebuild all dbus dependencies and dependands (thinking that since 
I had gentoo prefix in my path before macports something may have gotten mixed 
up while building kdepim) and it seems to have gone on an endless build loop, 
I noticed some packages being built like 3 times. Is that the correct 
behaviour? what is the correct way to accomplish this?

Thanks,
Fernan


More information about the macports-users mailing list