[systemd-devel] Excluding .hwdb files

Tom Gundersen teg at jklm.no
Mon Jul 22 09:31:49 PDT 2013

On 22 Jul 2013 18:19, "Michael Biebl" <mbiebl at gmail.com> wrote:
> 2013/7/22 Kay Sievers <kay at vrfy.org>:
> > On Mon, Jul 22, 2013 at 3:32 PM, Umut Tezduyar <umut at tezduyar.com>
> >> For an embedded system that is not using hwdb.bin, we are shipping
> >> roughly 4 mb .hwdb files under /usr/lib/udev/hwdb.d. Is it
> >> distributions responsibility to clean up .hwdb files after build or
> >> should we have a configure option to exclude hwdb support?
> >
> > It's probably not really worth to compile-out the hwdb support, the
> > involved code is quite small.
> >
> > Deleting/sub-packaging the ,hwdb source files (which are only needed
> > to re-compile the database in /etc), or not compiling a the binary
> > database at all should probably be a decision at the packaging/install
> > level, and not a configure option. It should be reasonable easy to do
> > step that at packaging/install time.
> >
> Is the data in hwdb really optional, i.e. does it only contain strings
> for representational purposes?

In principle it can contain anything, so while it now mostly contain data
for representation purposes, that's not really a safe assumption to make in

For instance the keyboard database shipped with systemd contains quirks,
and the database to be shipped with gphoto2 contains data to classify media
devices (without which no cameras will be recognized as such by varies UIs).

That said, there may be plenty of situations where you know you don't need
a particular sub-database, so packaging these separately may make sense.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130722/99d4a19c/attachment.html>

More information about the systemd-devel mailing list