insane: error out on UNPACKDIR = WORKDIR

as this will clear WORKDIR and create race conditions
across various handling tasks

(From OE-Core rev: 1cf99ce3f79b2c96bdef5aa9b69c2b3ead7e46f1)

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Konrad Weihmann
2024-06-01 08:07:03 +00:00
committed by Richard Purdie
parent 6b44e5bfa1
commit 3bb4c6bd18

View File

@@ -1596,10 +1596,13 @@ python () {
sourcedir = d.getVar("S")
builddir = d.getVar("B")
workdir = d.getVar("WORKDIR")
unpackdir = d.getVar("UNPACKDIR")
if sourcedir == workdir:
bb.fatal("Using S = ${WORKDIR} is no longer supported")
if builddir == workdir:
bb.fatal("Using B = ${WORKDIR} is no longer supported")
if unpackdir == workdir:
bb.fatal("Using UNPACKDIR = ${WORKDIR} is not supported")
if sourcedir[-1] == '/':
bb.warn("Recipe %s sets S variable with trailing slash '%s', remove it" % (d.getVar("PN"), d.getVar("S")))
if builddir[-1] == '/':