Add missing import statement to fix build failures:
File:
'/scratch/jenkins_builds/arago-master-wip/build/sources/oe-core/meta/classes/create-spdx-2.2.bbclass',
lineno: 722, function: collect_package_providers
0718: deps.append((d.getVar("PN"), d.getVar("BB_HASHFILENAME")))
0719:
0720: for dep_pn, dep_hashfn in deps:
0721: localdata = d
*** 0722: recipe_data = oe.packagedata.read_pkgdata(dep_pn, localdata)
0723: if not recipe_data:
0724: localdata = bb.data.createCopy(d)
0725: localdata.setVar("PKGDATA_DIR", "${PKGDATA_DIR_SDK}")
0726: recipe_data = oe.packagedata.read_pkgdata(dep_pn,
localdata)
Exception: AttributeError: module 'oe' has no attribute 'packagedata'
Signed-off-by: Ryan Eatmon <[email protected]>
---
meta/classes/create-spdx-2.2.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/create-spdx-2.2.bbclass
b/meta/classes/create-spdx-2.2.bbclass
index 9b28d124c7..ff319207f7 100644
--- a/meta/classes/create-spdx-2.2.bbclass
+++ b/meta/classes/create-spdx-2.2.bbclass
@@ -708,6 +708,7 @@ def collect_package_providers(d):
from pathlib import Path
import oe.sbom
import oe.spdx
+ import oe.packagedata
import json
deploy_dir_spdx = Path(d.getVar("DEPLOY_DIR_SPDX"))
--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187930):
https://lists.openembedded.org/g/openembedded-core/message/187930
Mute This Topic: https://lists.openembedded.org/mt/101480881/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-