[OE-core] [PATCH V3] alsa-lib: update 1.1.2 -> 1.1.3

Tanu Kaskinen tanuk at iki.fi
Tue Feb 7 15:27:09 UTC 2017


On Mon, 2017-01-23 at 14:04 +0000, Burton, Ross wrote:
> On 23 January 2017 at 13:29, Andreas Müller <schnitzeltony at googlemail.com>
> wrote:
> 
> > +# no python -> smixer is not build
> > +ALLOW_EMPTY_${PN} = "1"
> > 
> 
> Not sure this is the right fix.  What package does the Python support go
> into?  The smixer files should be in that package, and the real dependency
> on PN-dev is to libasound, not PN.  Can we fiddle the PN-dev RDEPENDS to
> ensure that it depends on libasound instead of PN?

Andreas got busy with other stuff, so I started working on this. This
seems to work:

RDEPENDS_${PN}-dev = "libasound"

I first tried this:

RDEPENDS_${PN}-dev_remove = "alsa-lib"

That didn't work, I got an exception in some Python code. The full
error message is attached. Is using _remove like this expected to work?

-- 
Tanu

https://www.patreon.com/tanuk
-------------- next part --------------
ERROR: alsa-lib-1.1.3-r0 do_package: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:package_fixsymlinks(d)
     0003:
File: '/home/tanu/dev/openembedded-core/meta/classes/package.bbclass', lineno: 1271, function: package_fixsymlinks
     1267:        rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg) or "")
     1268:        for p in newrdepends[pkg]:
     1269:            if p not in rdepends:
     1270:                rdepends[p] = []
 *** 1271:        d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
     1272:}
     1273:
     1274:
     1275:python package_package_name_hook() {
File: '/home/tanu/dev/openembedded-core/bitbake/lib/bb/utils.py', lineno: 276, function: join_deps
     0272:    for dep in deps:
     0273:        if deps[dep]:
     0274:            if isinstance(deps[dep], list):
     0275:                for v in deps[dep]:
 *** 0276:                    result.append(dep + " (" + v + ")")
     0277:            else:
     0278:                result.append(dep + " (" + deps[dep] + ")")
     0279:        else:
     0280:            result.append(dep)
Exception: TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

ERROR: alsa-lib-1.1.3-r0 do_package: Function failed: package_fixsymlinks
ERROR: Logfile of failure stored in: /media/tanu/LaCie2/oe_build/tmp-glibc/work/core2-64-oe-linux/alsa-lib/1.1.3-r0/temp/log.do_package.10804
ERROR: Task (/home/tanu/dev/openembedded-core/meta/recipes-multimedia/alsa/alsa-lib_1.1.3.bb:do_package) failed with exit code '1'


More information about the Openembedded-core mailing list