On Wed, 2023-09-20 at 10:30 -0500, Ryan Eatmon via lists.openembedded.org wrote: > 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 <reat...@ti.com> > --- > 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"))
We've realised that packagedata is missing in BBIMPORTS in meta/lib/oe/__init__.py which should fix this but also add missing dependency information so I'm likely to go with that change and this one shouldn't be needed. Let me know if that isn't the case. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#188043): https://lists.openembedded.org/g/openembedded-core/message/188043 Mute This Topic: https://lists.openembedded.org/mt/101480881/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-