summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2024-06-01 08:07:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-04 12:04:52 +0100
commit3bb4c6bd18a088f20ee343cf7c96aabe73fa8ca0 (patch)
treefd22a10836dfc681171024b32b2d655a6429f2cf
parent6b44e5bfa1f02addbe8de692783e775e3b176048 (diff)
downloadpoky-3bb4c6bd18a088f20ee343cf7c96aabe73fa8ca0.tar.gz
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>
-rw-r--r--meta/classes-global/insane.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 822d190a30..bd05da0378 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1596,10 +1596,13 @@ python () {
1596 sourcedir = d.getVar("S") 1596 sourcedir = d.getVar("S")
1597 builddir = d.getVar("B") 1597 builddir = d.getVar("B")
1598 workdir = d.getVar("WORKDIR") 1598 workdir = d.getVar("WORKDIR")
1599 unpackdir = d.getVar("UNPACKDIR")
1599 if sourcedir == workdir: 1600 if sourcedir == workdir:
1600 bb.fatal("Using S = ${WORKDIR} is no longer supported") 1601 bb.fatal("Using S = ${WORKDIR} is no longer supported")
1601 if builddir == workdir: 1602 if builddir == workdir:
1602 bb.fatal("Using B = ${WORKDIR} is no longer supported") 1603 bb.fatal("Using B = ${WORKDIR} is no longer supported")
1604 if unpackdir == workdir:
1605 bb.fatal("Using UNPACKDIR = ${WORKDIR} is not supported")
1603 if sourcedir[-1] == '/': 1606 if sourcedir[-1] == '/':
1604 bb.warn("Recipe %s sets S variable with trailing slash '%s', remove it" % (d.getVar("PN"), d.getVar("S"))) 1607 bb.warn("Recipe %s sets S variable with trailing slash '%s', remove it" % (d.getVar("PN"), d.getVar("S")))
1605 if builddir[-1] == '/': 1608 if builddir[-1] == '/':