Skip to contentSkip to conversation

poky-tiny: fix PACKAGE_EXCLUDE

PATCH Superseded [email protected] 2 participants 4 messages Nov 6, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 poky-tiny: fix PACKAGE_EXCLUDE

From: Ross Burton <[email protected]>

poky-tiny does a PACKAGE_EXCLUDE on shadow-base as the kernel doesn't support multiple users. However it does this by assigning to an override, which makes it impossible for images or machines to extend PACKAGE_INCLUDE with their own exclusions.

---
 meta-poky/conf/distro/poky-tiny.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-poky/conf/distro/poky-tiny.conf +1 -1
index 32c2ec3e1fa..24bcbee9bb6 100644
@@ -125,4 +125,4 @@ PACKAGECONFIG:remove:pn-opkg-utils = "python"
 
 # If shadow-base is brought into the image, logins will fail because it
 # doesn't have the heuristics to work when CONFIG_MULTIUSER is unset.
-PACKAGE_EXCLUDE:poky-tiny = "shadow-base"
+PACKAGE_EXCLUDE += "shadow-base"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Ross Burton

From: Ross Burton <[email protected]>

poky-tiny does a PACKAGE_EXCLUDE on shadow-base as the kernel doesn't support multiple users. However it does this by assigning to an override, which makes it impossible for images or machines to extend PACKAGE_INCLUDE with their own exclusions.

PACKAGE_INCLUDE?

Quoted 11 lines
---
 meta-poky/conf/distro/poky-tiny.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-poky/conf/distro/poky-tiny.conf +0 -0
index 32c2ec3e1fa..24bcbee9bb6 100644

meta-poky/conf/distro/poky-tiny.conf PACKAGECONFIG:remove:pn-opkg-utils = "python" · line 128

Quoted 5 lines
meta-poky/conf/distro/poky-tiny.conf +1 -1
@@ -125,4 +125,4 @@ PACKAGECONFIG:remove:pn-opkg-utils = "python"
 
 # If shadow-base is brought into the image, logins will fail because it
 # doesn't have the heuristics to work when CONFIG_MULTIUSER is unset.
-PACKAGE_EXCLUDE:poky-tiny = "shadow-base"
+PACKAGE_EXCLUDE += "shadow-base"

Does yocto-check-layer still pass?

Cheers,

Richard

#2 lore raw
Quoted 10 lines · Richard Purdie
Quoted 6 lines · Ross Burton

From: Ross Burton <[email protected]>

poky-tiny does a PACKAGE_EXCLUDE on shadow-base as the kernel doesn't support multiple users. However it does this by assigning to an override, which makes it impossible for images or machines to extend PACKAGE_INCLUDE with their own exclusions.

PACKAGE_INCLUDE?

More coffee needed. V2 incoming.

Quoted 6 lines

meta-poky/conf/distro/poky-tiny.conf PACKAGECONFIG:remove:pn-opkg-utils = "python" · line 128

Quoted 4 lines

# If shadow-base is brought into the image, logins will fail because it # doesn't have the heuristics to work when CONFIG_MULTIUSER is unset.

meta-poky/conf/distro/poky-tiny.conf +1 -1
-PACKAGE_EXCLUDE:poky-tiny = "shadow-base"
+PACKAGE_EXCLUDE += "shadow-base"

Does yocto-check-layer still pass?

This is in the distro configuration so it still does nothing when not included, but:

INFO: meta-poky … PASS

Ross

#3 lore raw
Quoted 21 lines · Ross Burton
Quoted 10 lines · Richard Purdie
Quoted 6 lines · Ross Burton

From: Ross Burton <[email protected]>

poky-tiny does a PACKAGE_EXCLUDE on shadow-base as the kernel doesn't support multiple users. However it does this by assigning to an override, which makes it impossible for images or machines to extend PACKAGE_INCLUDE with their own exclusions.

PACKAGE_INCLUDE?

More coffee needed. V2 incoming.

Quoted 6 lines

meta-poky/conf/distro/poky-tiny.conf PACKAGECONFIG:remove:pn-opkg-utils = "python" · line 128

Quoted 4 lines

# If shadow-base is brought into the image, logins will fail because it # doesn't have the heuristics to work when CONFIG_MULTIUSER is unset.

meta-poky/conf/distro/poky-tiny.conf +1 -1
-PACKAGE_EXCLUDE:poky-tiny = "shadow-base"
+PACKAGE_EXCLUDE += "shadow-base"

Does yocto-check-layer still pass?

Quoted 3 lines

This is in the distro configuration so it still does nothing when not included, but:

INFO: meta-poky … PASS

Of course, that was the detail I was overlooking, thanks :)

Cheers,

Richard