Skip to contentSkip to conversation

How to properly enable PAM integration - docs no longer valid?

DISCUSSION Carlos Rafael Giani 2 participants 2 messages Jan 29, 2022

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
Quoted 24 lines

-----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.

Quoted 7 lines

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