> -----Original Message-----
> From: [email protected] <openembedded-
> [email protected]> On Behalf Of Carlos Rafael Giani via
> lists.openembedded.org
> Sent: den 29 januari 2022 05:19
> To: [email protected]
> Subject: [OE-core] How to properly enable PAM integration - docs no longer
> valid?
> 
> According to this document:
> 
>    https://wiki.yoctoproject.org/wiki/PAM_Integration
> 
> PAM can be enabled by adding this line to local.conf:
> 
>    DISTRO_FEATURES_append += " pam"
> 
> In newer Yocto versions, this would be:
> 
>    DISTRO_FEATURES:append += " pam"
> 
> and this works. I *had* to use "+=" instead of "=" here, otherwise pam
> would not be added correctly.
> 
> But, then I get this warning:
> 
>    WARNING: DISTRO_FEATURES:append += is not a recommended operator
> combination, please replace it
> 
> So, how am I supposed to enable PAM in local.conf if I need to enable it
> quickly for a test by using poky and can't set up my own distro right now?

The correct form is:

DISTRO_FEATURES:append = " pam"

There should be no reason to use += above (which is also why it now 
generates a warning if you do).

You can always check the value of a variable and how it got defined by 
using `bitbake -e`, or the new bitbake-getvar, e.g., `bitbake-getvar 
DISTRO_FEATURES`.

//Peter

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#161098): 
https://lists.openembedded.org/g/openembedded-core/message/161098
Mute This Topic: https://lists.openembedded.org/mt/88761315/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to