Monday, March 26, 2012

automatic rpm dependencies for dbus services

I was querying around the other day trying to determine what items in fedora were providing particular dbus services, and it just occured to me that this might be something nice to expose via rpm dependencies. First step is to determine Provides, and here's my first try.

To test, drop dbus.attr into /usr/lib/rpm/fileattrs/ and dbus.prov into /usr/lib/rpm/, and build some pkg that includes something matching /usr/share/dbus-1/services/*.service. For example, I tested with ksecrets, and I end up with a pkg that has a new provides:
dbus-service(org.freedesktop.secrets).

2 comments:

Richard Hughes said...

Surely this needs to be scoped to session and system?

Unknown said...

indeed