[systemd-bugs] [Bug 72562] New: add new pkg-config libudev-hwdb

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 10 04:21:28 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=72562

          Priority: medium
            Bug ID: 72562
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: add new pkg-config libudev-hwdb
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: desrt at desrt.ca
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

The hwdb functionality of udev actually has very little to do with udev itself,
in the sense that it would be easily possible to have this in a very simple
standalone library.

Some people (colord) use the hwdb database as a hard dependency, but do not
require any of the rest of udev.

It would be nice if they could depend only on the hwdb component, so that other
platforms could implement the udev_hwdb API without having all of udev.

The attached patchset does some minor restructuring and introduces a new
libudev-hwdb.pc and libudev-hwdb.h which can be used as an entry to the
udev-hwdb functionality, without the need to use udev proper.

The changes are minimal -- we still only build one library, and the new .pc
file links this library.  Having a separate .pc file and header, however, will
allow colord to depend only on the hwdb components.

It would also be possible to skip the last two patches in the series and have
colord declare a dependency on udev but only use udev_hwdb, but that would put
3rd party implementations in the awkward position of having to claim to be
'udev' while only implementing a small fraction of the API.

In fact, we could skip everything here entirely and have colord just start
passing NULL to udev_hwdb_new() but I would consider this to be excessively
evil.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20131210/04234ad0/attachment.html>


More information about the systemd-bugs mailing list