chrony: Remove the libcap and nss PACKAGECONFIGs

There is no need for these configs on their own and they would only mess
up the sechash and privdrop configs. To actually enable sechash one also
had to enable nss, and to enable privdrop one also had to enable libcap.

This also avoids passing --with-libcap if privdrop is enabled since the
option does not exist.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Peter Kjellerstedt
2022-11-12 14:10:28 +01:00
committed by Armin Kuster
parent 2a9e9f919e
commit 94d737223b
@@ -64,14 +64,14 @@ PACKAGECONFIG ??= "editline \
"
PACKAGECONFIG[editline] = ",--without-editline,libedit"
PACKAGECONFIG[sechash] = "--without-tomcrypt,--disable-sechash,nss"
PACKAGECONFIG[privdrop] = "--with-libcap,--disable-privdrop --without-libcap,libcap"
PACKAGECONFIG[privdrop] = ",--disable-privdrop,libcap"
PACKAGECONFIG[scfilter] = "--enable-scfilter,--without-seccomp,libseccomp"
PACKAGECONFIG[ipv6] = ",--disable-ipv6,"
PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss"
PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
# This is left for backwards compatibility, to avoid breaking existing
# These are left for backwards compatibility, to avoid breaking existing
# configurations.
PACKAGECONFIG[libcap] = ""
PACKAGECONFIG[nss] = ""
PACKAGECONFIG[readline] = ""
# --disable-static isn't supported by chrony's configure script.