summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2022-11-12 14:09:51 +0100
committerArmin Kuster <akuster808@gmail.com>2022-11-18 10:11:36 -0500
commitaa811aa7762109661c8978d19ef930059d07d63f (patch)
tree0f316aadcdd9115f4828300d16eb64a2fcc6cb4c /meta-networking
parent16c5d44d421a10510e7d31f9368df5a9560ddd05 (diff)
downloadmeta-openembedded-aa811aa7762109661c8978d19ef930059d07d63f.tar.gz
chrony: Make it possible to enable editline support again
Support for readline was dropped in Chrony 4.2. However, the --disable-readline option still remains (it is used to completely ignore all forms of command line editing, even though the only remaining variant is editline). So keeping the readline PACKAGECONFIG and making it pass --disable-readline when it is not enabled disabled support for editline, and if it was enabled it instead passed --without-editline, which also disabled support for editline. Thus there was no way to enable editline support. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-support/chrony/chrony_4.3.bb13
1 files changed, 4 insertions, 9 deletions
diff --git a/meta-networking/recipes-support/chrony/chrony_4.3.bb b/meta-networking/recipes-support/chrony/chrony_4.3.bb
index d0e2c4b540..dad09f826c 100644
--- a/meta-networking/recipes-support/chrony/chrony_4.3.bb
+++ b/meta-networking/recipes-support/chrony/chrony_4.3.bb
@@ -53,14 +53,6 @@ USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '
53USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /bin/nologin chronyd;', '', d)}" 53USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /bin/nologin chronyd;', '', d)}"
54 54
55# Configuration options: 55# Configuration options:
56# - For command line editing support in chronyc, you may specify either
57# 'editline' or 'readline' but not both. editline is smaller, but
58# many systems already have readline for other purposes so you might want
59# to choose that instead. However, beware license incompatibility
60# since chrony is GPLv2 and readline versions after 6.0 are GPLv3+.
61# You can of course choose neither, but if you're that tight on space
62# consider dropping chronyc entirely (you can use it remotely with
63# appropriate chrony.conf options).
64# - Security-related: 56# - Security-related:
65# - 'sechash' is omitted by default because it pulls in nss which is huge. 57# - 'sechash' is omitted by default because it pulls in nss which is huge.
66# - 'privdrop' allows chronyd to run as non-root; would need changes to 58# - 'privdrop' allows chronyd to run as non-root; would need changes to
@@ -70,7 +62,6 @@ USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--sys
70PACKAGECONFIG ??= "editline \ 62PACKAGECONFIG ??= "editline \
71 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ 63 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
72" 64"
73PACKAGECONFIG[readline] = "--without-editline,--disable-readline,readline"
74PACKAGECONFIG[editline] = ",--without-editline,libedit" 65PACKAGECONFIG[editline] = ",--without-editline,libedit"
75PACKAGECONFIG[sechash] = "--without-tomcrypt,--disable-sechash,nss" 66PACKAGECONFIG[sechash] = "--without-tomcrypt,--disable-sechash,nss"
76PACKAGECONFIG[privdrop] = "--with-libcap,--disable-privdrop --without-libcap,libcap" 67PACKAGECONFIG[privdrop] = "--with-libcap,--disable-privdrop --without-libcap,libcap"
@@ -79,6 +70,10 @@ PACKAGECONFIG[ipv6] = ",--disable-ipv6,"
79PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss" 70PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss"
80PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" 71PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
81 72
73# This is left for backwards compatibility, to avoid breaking existing
74# configurations.
75PACKAGECONFIG[readline] = ""
76
82# --disable-static isn't supported by chrony's configure script. 77# --disable-static isn't supported by chrony's configure script.
83DISABLE_STATIC = "" 78DISABLE_STATIC = ""
84 79