[bitbake-devel] MACHINE_ARCH not in pkgarch (sstatesig.py)

Christopher Larson kergoth at gmail.com
Wed Nov 13 03:01:44 UTC 2019


On Nov 12, 2019, 1:50 PM -0700, Alan Kozlay <alan.kozlay at ves-solutions.com>, wrote:
> In:
> oe-core/meta/lib/oe/sstatesig.py
>
> The find_sstate_manifest function will search for a manifest assuming a number of potential paths based on various package architecture names.  However, a few of the choices appear to have needed to be queried from the bitbake database but their bb database variable names are used, instead.  That yields search paths which could never be correct:
>
>         pkgarchs = ['${MACHINE_ARCH}']
>         pkgarchs = pkgarchs + list(reversed(d2.getVar("PACKAGE_EXTRA_ARCHS").split()))
>         pkgarchs.append('allarch')
>         pkgarchs.append('${SDK_ARCH}_${SDK_ARCH}-${SDKPKGSUFFIX}')
>
>         for pkgarch in pkgarchs:
>                 manifest = d2.expand("${SSTATE_MANIFESTS}/manifest-%s-%s.%s" % (pkgarch, taskdata, taskname))

d2.expand() expands all the variable references from pkgarch, so unless it’s also used later on and *isn’t* passed to expand(), this isn’t an issue.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20191112/fa50b1be/attachment.html>


More information about the bitbake-devel mailing list