<div dir="ltr">On 1 February 2018 at 11:32, Böszörményi Zoltán <span dir="ltr"><<a href="mailto:zboszor@pr.hu" target="_blank">zboszor@pr.hu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Of course, this package should not be confused with the old<br>
3D library from Voodoo Graphics.<br></blockquote><div><br></div><div>I'm pretty sure that this conflict is unlikely to cause problems in the real world. :)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">The node modules that are built with the help of "inherit npm"<br>
may want to use a "node-" prefix in their names but it would not<br>
work as is because npm.bbclass is using ${PN}.<br>
<br>
I have a patch against npm.bbclass that I am testing at the moment<br>
but it may be necessary to talk about this issue in general.<br></blockquote><div><br></div><div>Yes, that's definitely the best solution. For reference, pypi.bbclass does this:</div><div><br></div><div><div>def pypi_package(d):</div><div> bpn = d.getVar('BPN')</div><div> if bpn.startswith('python-'):</div><div> return bpn[7:]</div><div> elif bpn.startswith('python3-'):</div><div> return bpn[8:]</div><div> return bpn</div></div><div><br></div><div>PYPI_PACKAGE ?= "${@pypi_package(d)}"<br></div><div><br></div><div>Ross</div></div></div></div>