You're absolutely right. Polkit and Spidermonkey are a nightmare - and it's time to get rid of them!
They say polkit is about security. But I never understood how it works or how to configure it. And a large chain of other packages depend on polkit, making it even more obscure. But obscurity doesn't mean security -- obscurity means insecurity!
I use systemd and Weston as DE. I use some KDE programs like Konsole or Kate and some GTK programs like Firefox or Thunderbird. No matter what I tried to get rid of udisks and polkit, one of those packages always pulled them back in.
Then I realized that I have to
install udisks, polkit & friends, but I don't have to
run them. So udisks and polkit were installed on my machine, but the daemons were disabled and they didn't run.
Today I managed to get completely rid of udisks, polkit, Spidermonkey & friends. I added the lines below to packages.provided:
Code: Select all
sys-auth/polkit-0.115-r4
sys-fs/udisks-2.8.2
sys-auth/polkit-qt-0.112.0_p20160416-r2
kde-plasma/polkit-kde-agent-5.16.5
After that I removed those packages and ran 'emerge --depclean'. I was happy to see that udisks, polkit, Spidermonkey & friends were gone.
A few libraries were preserved, because kauth depended on some sys-auth/polkit-qt libraries. I re-emerged kauth - and the preserved libs were gone.
And now I'm happy that I have a machine without udisks, polkit and Spidermonkey - and everything works nicely.
