[Pkg-electronics-devel] Bug#911965: Bug#911965: kicad: Add libngspice to dependancy list

Felix Salfelder felix at salfelder.org
Fri Oct 26 20:12:04 BST 2018


On Fri, Oct 26, 2018 at 08:22:45PM +0200, Carsten Schoenert wrote:
> partially correct.
> KiCad in Debian now supports ngspice based simulations provided by the
> library libngspice.so.0.0.0 from the package libngspice0.
> 
> The question is why the packaging doesn't detect this dependency
> automatically ... I will have a look.

Dear Carsten.

It seems to me that kicad does not link against ngspice, but rather
dlopens the shared library on demand.

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..

hth
felix

[1] https://salsa.debian.org/electronics-team/Gnucap/gnucap-python/blob/master/configure.ac
[2] https://salsa.debian.org/electronics-team/Gnucap/gnucap-python/blob/master/debian/rules



More information about the Pkg-electronics-devel mailing list