public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Conditional weak assignments behave unexpectedly
@ 2023-04-23  7:48 Moessbauer, Felix
  2023-04-23  9:11 ` Moessbauer, Felix
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Moessbauer, Felix @ 2023-04-23  7:48 UTC (permalink / raw)
  To: isar-users; +Cc: Bezdeka, Florian, Kiszka, Jan, Schild, Henning

Dear developers,

I just stumbled upon the following pattern, which needs further
investigation:

- use the qemuamd64 machine on debian-bullseye
- define a custom WKS_FILE in local.conf

While the qemuamd64.conf file contains the following line:
WKS_FILE:debian-bullseye ?= "sdimage-efi-btrfs"
I expected that I'm able to override that unconditionally in the
local.conf using: WKS_FILE = "foo.wks"

However, the final value of the WKS_FILE variable is "sdimage-efi-
btrfs". In the bitbake documentation, I cannot find any example of
combining weak assignments and overrides. However, the implementation
seems to evaluate the weak assignment on the override first. Then, the
WKS_FILE part from the local conf is evaluated and finally the
WKS_FILE:debian-bullseye overrides what was in WKS_FILE. This suspicion
is also backed by the following test:

local.conf: WKS_FILE:debian-bullseye = "foo.wks"
Now, the final value of WKS_FILE is "foo.wks".

I'm unsure if that has ever been like that and was just unnoticed, or
if the behavior change was introduced in bitbake 2.0.
Anyways, we must not use overrides in combination with weak
assignments. And we also need to fix that on the qemuamd64 machine
config immediately (even if we loose some tests by doing that).
Otherwise it is impossible to override the WKS_FILE of the qemuamd64
machine.

Best regards,
Felix

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

end of thread, other threads:[~2023-04-28 19:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-23  7:48 Conditional weak assignments behave unexpectedly Moessbauer, Felix
2023-04-23  9:11 ` Moessbauer, Felix
2023-04-24 13:28   ` Henning Schild
2023-04-27  6:58 ` Anton Mikanovich
2023-04-28 19:12 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox