Bug 487196 - gnome-power-manager has hardcoded Requires: PolicyKit-gnome
gnome-power-manager has hardcoded Requires: PolicyKit-gnome
Product: Fedora
Classification: Fedora
Component: gnome-power-manager (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Richard Hughes
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-02-24 13:11 EST by Kevin Kofler
Modified: 2009-02-27 18:28 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-02-27 13:56:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kevin Kofler 2009-02-24 13:11:41 EST
Description of problem:
gnome-power-manager has a hardcoded dependency on PolicyKit-gnome. Is this really necessary? In the KDE spin, we would like to ship PolicyKit-kde instead of PolicyKit-gnome. PolicyKit-kde also implements the org.freedesktop.PolicyKit.AuthenticationAgent service.

(Note that gnome-power-manager is not included on the current KDE spin.)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. repoquery --repoid=rawhide --whatrequires PolicyKit-gnome
Actual results:
gnome-power-manager requires PolicyKit-gnome.

Expected results:
gnome-power-manager does not require PolicyKit-gnome.

Additional info:
Maybe a common Provides in both PolicyKit-gnome and PolicyKit-kde is needed?
Comment 1 Richard Hughes 2009-02-25 04:01:12 EST
(In reply to comment #0)
> Maybe a common Provides in both PolicyKit-gnome and PolicyKit-kde is needed?

Sure, a provide of SessionAuthenticationAgent would probably be the best idea.
Comment 2 Kevin Kofler 2009-02-27 12:24:06 EST
In Rawhide, both PolicyKit-gnome and PolicyKit-kde now have:
Provides: PolicyKit-authentication-agent
so you can require this instead of PolicyKit-gnome.
Comment 3 Matthias Clasen 2009-02-27 13:55:59 EST
Actually, gnome-power-manager does use the PolicyKit-gnome bits:

        return polkit_gnome_action_create_button (prefs->priv->default_action);

So we wont get rid of the library dependency against PolicyKit-gnome here.
Comment 4 Kevin Kofler 2009-02-27 18:23:17 EST
We can live with that one as well.
Comment 5 Kevin Kofler 2009-02-27 18:24:57 EST
That said, isn't that stuff in PolicyKit-gnome-libs? If it is, we could still avoid dragging in the main package.

But gnome-power-manager isn't going to be used on the KDE spin either way.
Comment 6 Matthias Clasen 2009-02-27 18:28:47 EST
I guess you are right about the -libs. 

Anyway, the package only has an explicit requires for PolicyKit-authentication-agent now.

Note You need to log in before you can comment on or make changes to this bug.