All of lore.kernel.org
 help / color / mirror / Atom feed
* conditional inheriting classes does not work with bbappends
@ 2022-04-07 14:17 Christian Eggers
  2022-04-07 21:59 ` [bitbake-devel] " Christopher Larson
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Eggers @ 2022-04-07 14:17 UTC (permalink / raw)
  To: bitbake-devel


[-- Attachment #1.1: Type: text/plain, Size: 1860 bytes --]

Example: meta-openembedded/meta-networking/recipes-support/chrony/chrony_4.2.bb

--------------------------------8<--------------------------------
# Add chronyd user if privdrop packageconfig is selected
inherit ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', d)}
USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '', d)}"
USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /bin/nologin chronyd;', '', d)}"

...

PACKAGECONFIG ??= ...
-------------------------------->8--------------------------------


Problem #1: useradd is not inherited because PACKAGECONFIG is set below the conditional "inherit"
statement. Even when I add "privdrop" to PACKAGECONFIG here, useradd.bbclass is not inherited. I
must move the PACKAGECONFIG line above the inherit statement to make this work.

Problem #2: Due to problem #1, useradd.bbclass is also not inherited when I add "privdrop" to
PACKAGECONFIG in bbappend file (in a custom layer).

regards
Christian





_______________________________________________________
Christian
Eggers
Software Engineer
​
ARRI
Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Arriweg 17,
83071
Stephanskirchen
www.arri.com

+49 8036 3009-3118
CEggers@arri.de

​
Get all the latest information from www.arri.com, Facebook, Twitter, Instagram, LinkedIn and YouTube.

Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRA 57918
Persönlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRB 54477
Geschäftsführer: Dr. Matthias Erb (Chairman); Dr. Michael Neuhäuser; Stephan Schenk; Walter Trauninger

​

[-- Attachment #1.2: Type: text/html, Size: 10917 bytes --]

[-- Attachment #2: image372264.png --]
[-- Type: image/png, Size: 528 bytes --]

[-- Attachment #3: image543396.png --]
[-- Type: image/png, Size: 824 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-04-14 16:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-07 14:17 conditional inheriting classes does not work with bbappends Christian Eggers
2022-04-07 21:59 ` [bitbake-devel] " Christopher Larson
2022-04-08 16:54   ` Christian Eggers
2022-04-12 14:12     ` Peter Kjellerstedt
2022-04-13  6:03       ` Christian Eggers
2022-04-13 10:24   ` Jose Quaresma
2022-04-13 10:35     ` Peter Kjellerstedt
2022-04-13 16:33       ` Diego Santa Cruz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.