Skip to contentSkip to conversation

poky.conf: move pam DISTRO_FEATURE from altcfg to default poky

PATCH In review Alexander Kanavin 2 participants 2 messages May 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 poky.conf: move pam DISTRO_FEATURE from altcfg to default poky

This is needed to run libpam-ptest and also for running weston under systemd which is an increasingly common configuration.

---
 meta-poky/conf/distro/include/poky-distro-alt-test-config.inc | 4 ++--
 meta-poky/conf/distro/poky.conf                               | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
meta-poky/conf/distro/include/poky-distro-alt-test-config.inc +2 -2
index 273ebfdfef..4c377b4deb 100644
@@ -1,5 +1,5 @@
-# Add an extra DISTRO_FEATURE
-DISTRO_FEATURES_append = " pam"
+# Remove an extra DISTRO_FEATURE
+DISTRO_FEATURES_remove = "pam"
 
 # Use the LTSI Kernel
 PREFERRED_VERSION_linux-yocto = "5.4%"
meta-poky/conf/distro/poky.conf +1 -1
index 522cc92f74..03abc6c55a 100644
@@ -13,7 +13,7 @@ TARGET_VENDOR = "-poky"
 LOCALCONF_VERSION = "1"
 
 # Override these in poky based distros
-POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland vulkan"
+POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl pam ptest multiarch wayland vulkan"
 POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
 POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
 
Signature · 1 line
2.31.1
#1 lore raw
Quoted 14 lines · Alexander Kanavin

This is needed to run libpam-ptest and also for running weston under systemd which is an increasingly common configuration.

---
 meta-poky/conf/distro/include/poky-distro-alt-test-config.inc | 4 ++--
 meta-poky/conf/distro/poky.conf | 2 +-

 2 files changed, 3 insertions(+), 3 deletions(-)
meta-poky/conf/distro/include/poky-distro-alt-test-config.inc +0 -0
index 273ebfdfef..4c377b4deb 100644

meta-poky/conf/distro/include/poky-distro-alt-test-config.inc line 2

Quoted 4 lines
meta-poky/conf/distro/include/poky-distro-alt-test-config.inc +2 -2
@@ -1,5 +1,5 @@
-# Add an extra DISTRO_FEATURE
-DISTRO_FEATURES_append = " pam"
+# Remove an extra DISTRO_FEATURE
+DISTRO_FEATURES_remove = "pam"

Red flag number one is a remove in our own configuration flags. We should never really be doing that. I know we do in some cases, I still hate it every time I see it and we need to minimise it.

Quoted 11 lines
meta-poky/conf/distro/include/poky-distro-alt-test-config.inc +0 -0
  # Use the LTSI Kernel

 PREFERRED_VERSION_linux-yocto = "5.4%"

meta-poky/conf/distro/poky.conf +0 -0
index 522cc92f74..03abc6c55a 100644
@@ -13,7 +13,7 @@ TARGET_VENDOR = "-poky"

 LOCALCONF_VERSION = "1"
  # Override these in poky based distros

meta-poky/conf/distro/poky.conf +1 -1
-POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland vulkan"
+POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl pam ptest multiarch wayland vulkan"
Quoted 2 lines

 POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot" POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"

This change moves pam away from our systemd configuration which I suspect will break your wayland changes.

I also would like to maintain the pam distro feature in testing and I suspect this way around, we have more users testing it and the other way around we'd see a lot of bitrot and breakage.

I've commented elsewhere there is a perception pam is heavy, both through extra dependencies and also in more convoluted codepaths for things like logins. Some users need/want the simpler option.

The reason driving the change is being able to test libpam-ptest and I suspect adding that on its own to one of our altcfg images and triggering the ptest runner may be a better way to resolve the issue.

Cheers,

Richard