]> git.ipfire.org Git - thirdparty/systemd.git/commit
journalctl: make libqrencode a weak dependency 16145/head
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Jun 2020 11:16:53 +0000 (13:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jun 2020 07:28:27 +0000 (09:28 +0200)
commite44b5004840c80610a732e014ae8672277f16ee2
tree88684d2cc84d0f06bd419e0ff7476ae2f0331627
parenta4df1f0b9dca67c07167d51c17e21ea273dc14e3
journalctl: make libqrencode a weak dependency

This way journalctl can make use of libqrencode if it's there, but will
quietly not use it if it isn't.

This means libqrencode remains a build-time dep, but not a strict
runtime dependency.

I figure we should do something similar for a bunch of other "leaf"
libraries we only use few symbols of. Specifically the following are
probably good candidates:

* pcre2
* libpwquality
* p11kit
* elfutils

and possibly:

* libcryptsetup (only in some parts. i.e. building systemd-cryptsetup
  without it makes no sense. However building the dissect option with
  libcryptsetup as optional dep does make sense)
* possibly the compression libraries (at least the ones we never use for
  compression, but only as alternative ones for decompression)

Already covered like this is:

* libxkcommon
meson.build
src/journal/journal-qrcode.c