[Pkg-electronics-devel] Bug#911965: kicad: Add libngspice to dependancy list
Carsten Schoenert
c.schoenert at t-online.de
Sat Oct 27 09:01:29 BST 2018
Hello Felix,
Am 26.10.18 um 21:12 schrieb Felix Salfelder:
> It seems to me that kicad does not link against ngspice, but rather
> dlopens the shared library on demand.
that's correct, so dh_shlibdeps won't detect the needed library
automatically.
> While the reasons are probably different, this approach is very similar
> to how gnucap-python uses libgnucap. The issue is related to the
> SONAME and file name used in lib${simulator}0 vs lib${simulator}-dev.
>
> Probably the approach used in gnucap-python will work here as well:
> - find the SONAME in ./configure, tweak the dlopen call, see [1],
> - tweak d/rules: link a dummy executable, inject shlibdeps [2].
>
> I am curious if there is a better way..
The dlopen call is currently searching for libngspice.so instead of
libngspice.so.0 so your suggestion would not solve all problems. As
Stefan BrĂ¼ns has the same problem within the OBS he provided a small fix
up patch which I just did picked up. So now eeschema is looking for
libngspice.so.0. For now I can live with a manually adjusted Depends
field for the kicad package. I believe upstream will fix this all so the
dlopen call can get removed at least for the Linux builds in the future,
but maybe not not for the 5.x series.
--
Regards
Carsten Schoenert
More information about the Pkg-electronics-devel
mailing list