<html><head></head><body>I think this will solve build/autopkgtest issue but not the real problem. You should instead add a:<br><br>  Breaks: nodejs (<< ${source:Version}~)<br><br>In both libnode-dev and libnodeXX<br><br><br><div class="gmail_quote">Le 20 juin 2020 14:06:47 GMT+02:00, "Jérémy Lal" <kapouer@melix.org> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 19 juin 2020 à 19:34, Paul Gevers <<a href="mailto:elbrus@debian.org">elbrus@debian.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jérémy and Xavier,<br>
<br>
On 19/06/2020 13.33, Jérémy Lal wrote:<br>
> libnode68 and libnode72 can be co-installed.<br>
<br>
Sure.<br>
<br>
> /usr/bin/node is going to load the lib with the SONAME it's been built for.<br>
<br>
Of course, like any normal binary that is linked against a library in<br>
Debian.<br>
<br>
> So of course nodejs 12.x loads libnode72 and nodejs 10.x loads libnode68.<br>
> Otherwise the SONAME bump wouldn't be major.<br>
> <br>
> Paul: you're right to point out that it is perfectly possible for<br>
> another application<br>
> to link against libnode72 without needing to install nodejs 12.<br>
> <br>
> Xavier: i didn't think about that beforehand, but the approach you suggest<br>
> will break things (maybe other packages using libv8-dev, for example).<br>
> <br>
> I'm not sure why node-iconv depends on nodejs.<br>
<br>
As my other bug, node-expat seems to have the same issue.<br>
<br>
> Its autopkgtests should however depend on nodejs >= <version><br>
> where <version> is the one built against the same libnode SONAME as<br>
> node-iconv (?)<br>
<br>
That doesn't scale, because it's every package that has an autopkgtest<br>
that depends on node-iconv that has this issue. So it's node-iconv that<br>
needs to declare the right versioned relation to nodejs. It looks like<br>
the binary executable already knows it, but the Debian package doesn't<br>
know it yet. The internal knowledge needs to be exposed somehow.<br></blockquote><div><br></div><div>Since all packages that Build-Depend: libnode-dev are concerned,</div><div>maybe the solution is to declare:</div><div><br></div><div>libnode-dev</div><div>Depends: nodejs (= ${binary:Version})</div><div><br></div><div>- downside: packages depending on libv8-dev will install nodejs (this shouldn't be a problem).</div><div>- a multi-arch issue ?</div><div><br></div><div>?</div><div><br></div></div></div>
</blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>