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

Alan Kozlay alan.kozlay at ves-solutions.com
Tue Nov 12 20:49:54 UTC 2019


All,

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))
                if os.path.exists(manifest):
                ...

I think we wanted something like this:

        pkgarchs = [d.getVar("MACHINE_ARCH")]
        ...

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


More information about the bitbake-devel mailing list