]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
packages.bbclass: Correct the check for conflicts with renamed packages
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Tue, 3 Oct 2023 17:44:54 +0000 (19:44 +0200)
committerSteve Sakoman <steve@sakoman.com>
Thu, 19 Oct 2023 14:34:38 +0000 (04:34 -1000)
commit3fc3e55933716ce9cfa8b2e8e4cc8fa2e94a0061
treecd677d0969de04ee3215b414ac373759f7c4b05e
parentbd487f92103acd7e97d7815c8c6e233932f6f1f1
packages.bbclass: Correct the check for conflicts with renamed packages

The original solution replaced all overrides with the package name that
was being checked. This can have unforseen consequences where some
variable involved in defining the value for the PKG:<package> variable
may rely on some override which is not set as expected. It also meant
that any PKG variable set using an override would not be caught, e.g.,
PKG:${PN}:${MACHINE} = "${PN}-dev" (made up example that would always
fail with the old code).

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit de62d538dbfe6caf123ff366643f893077175583)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-global/package.bbclass