From e8a5e806b48a36046ef78a95f4d4cd428e8ea4c2 Mon Sep 17 00:00:00 2001 From: Konrad Weihmann Date: Mon, 16 Jan 2023 08:25:26 +0100 Subject: common-source: fix create-spdx handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - do_create_spdx does have to wait till the shared source tree is properly populated - override the spdx class code detection to determine if sources are under work-shared. the core code does only look at WORKDIR, which isn’t overridden in every case, more likely only S and B are touched, which make the spdx class code assume that these are per-workdir sources and starts to remove the shared sources via bitbake’s cleandirs settings. Avoid that by let the code always handle recipes including common-source as shared sources. Closes #721 Signed-off-by: Konrad Weihmann --- recipes-devtools/clang/common-source.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-devtools/clang/common-source.inc b/recipes-devtools/clang/common-source.inc index e7fb06f..cd95453 100644 --- a/recipes-devtools/clang/common-source.inc +++ b/recipes-devtools/clang/common-source.inc @@ -9,3 +9,9 @@ SRC_URI = "" do_configure[depends] += "llvm-project-source-${PV}:do_patch" do_populate_lic[depends] += "llvm-project-source-${PV}:do_unpack" +do_create_spdx[depends] += "llvm-project-source-${PV}:do_patch" + +# spdx shared workdir detection fails as not WORKDIR is altered but S and B +# return always true to fix that +def is_work_shared_spdx(d): + return True -- cgit v1.2.3-54-g00ecf