[oe] [PATCH 20/34] networkmanager: fix introspection and vala support
Adrian Freihofer
adrian.freihofer at gmail.com
Sun Feb 28 13:10:11 UTC 2016
Hi Alexander
Please consider the following lines before adding polkit to DEPENDS:
PACKAGECONFIG[systemd] = " \
--with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
--without-systemdsystemunitdir, \
polkit \
"
I think the final solution should be a flag on DISTRO_FEATURES level to enable/disable polkit for systemd, networkmanager, modemmanager and other packages.
As a first step you might split polkit PACKAGECONFIG from systemd PACKAGECONFIG. The (untested) patch allows to enable disable polkit independently from systemd without changing
the default settings.
> diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.0.10.bb b/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.0.10.bb
> index b00c9bb..1e64c4b 100644
> --- a/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.0.10.bb
> +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager_1.0.10.bb
> @@ -35,15 +35,15 @@ EXTRA_OECONF = " \
> "
>
> PACKAGECONFIG ??= "nss ifupdown netconfig dhclient dnsmasq \
> - ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)} \
> + ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd polkit','consolekit',d)} \
> ${@bb.utils.contains('DISTRO_FEATURES','bluetooth','${BLUEZ}','',d)} \
> ${@bb.utils.contains('DISTRO_FEATURES','wifi','wifi','',d)} \
> "
> PACKAGECONFIG[systemd] = " \
> - --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
> - --without-systemdsystemunitdir, \
> - polkit \
> + --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd, \
> + --without-systemdsystemunitdir \
> "
> +PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit"
> PACKAGECONFIG[bluez5] = "--enable-bluez5-dun,--disable-bluez5-dun,bluez5"
> # consolekit is not picked by shlibs, so add it to RDEPENDS too
> PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
Regards,
Adrian
More information about the Openembedded-devel
mailing list