[OE-core] [PATCH v2] util-linux: Use PACKAGECONFIG to control pam and system config options

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Wed Jul 10 16:26:22 UTC 2013


Saul Wold <sgw-VuQAYsv1563Yd54FQh9/CA at public.gmane.org> writes:

> The PACKAGECONFIG will ensure consistent enabling and disabling of the pam and systemd related
> options for configure and the correct dependencies
>
> v2: fixed PACKAGECONFIG line continuation grammar
>     added _class-target for PACKAGECONFIG to work on target only
> ...
> +PACKAGECONFIG_class-target ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
> +                                ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} "

This does not work here. d.getVar('PACKAGECONFIG', True) evaluates to 'None'
in the anonymous python function in base.bbclass so that non-systemd options
are selected in systemd distributions and packaging fails in a sanity check.

Using the less weak '?=' operator makes thing work as expected.



Enrico



More information about the Openembedded-core mailing list