]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane: error out on UNPACKDIR = WORKDIR
authorKonrad Weihmann <kweihmann@outlook.com>
Sat, 1 Jun 2024 08:07:03 +0000 (08:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Jun 2024 11:04:36 +0000 (12:04 +0100)
as this will clear WORKDIR and create race conditions
across various handling tasks

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/insane.bbclass

index 822d190a3046b81a0839f072bc460a41c867f92e..bd05da0378e6bd7aeedce39875c52ef8f54db8e6 100644 (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] == '/':