[OE-core] Duplicate package names, was Re: [PATCH v1] glide: Add 0.13.1 version

Burton, Ross ross.burton at intel.com
Thu Feb 1 11:39:17 UTC 2018


On 1 February 2018 at 11:32, Böszörményi Zoltán <zboszor at pr.hu> wrote:

> Of course, this package should not be confused with the old
> 3D library from Voodoo Graphics.
>

I'm pretty sure that this conflict is unlikely to cause problems in the
real world. :)


> The node modules that are built with the help of "inherit npm"
> may want to use a "node-" prefix in their names but it would not
> work as is because npm.bbclass is using ${PN}.
>
> I have a patch against npm.bbclass that I am testing at the moment
> but it may be necessary to talk about this issue in general.
>

Yes, that's definitely the best solution.  For reference, pypi.bbclass does
this:

def pypi_package(d):
    bpn = d.getVar('BPN')
    if bpn.startswith('python-'):
        return bpn[7:]
    elif bpn.startswith('python3-'):
        return bpn[8:]
    return bpn

PYPI_PACKAGE ?= "${@pypi_package(d)}"

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180201/1fca3c2d/attachment-0002.html>


More information about the Openembedded-core mailing list