]> git.ipfire.org Git - thirdparty/systemd.git/commit
localed: downgrade libxkbcommon to an optional runtime dependency
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Apr 2016 16:23:37 +0000 (18:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:31 +0000 (13:43 +0200)
commit5de344704df64d8f31448f1222432bc87ddcfbef
treef191f23c2009ef222eecdfe5255a4bbbd900f689
parent198402d3c9d9b92d6a5e9bca70693011108914e0
localed: downgrade libxkbcommon to an optional runtime dependency

Previously, libxkbcommon was a compile-time option. When enabled the localed
binary would strictly depend on it, thus pulling in libxkbcommon and its
dependencies, which are non-trivial in size.

With this change we dlopen() libxkbcommon when it is available instead. If the
library is available behaviour is as before. However, if it isn't the system is
considered "headless", i.e. without local hardware and all attempts to set the
local keyboard configuration will be refused.

This is useful for general-purpose distributions which want to support
"headless" (such as container systems) and "full" systems with the same build.
Makefile.am
src/locale/localed.c