kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #38199
Re: eeschema depends on libngspice.so instead of libngspice.so.0?
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Suminski <maciej.suminski@xxxxxxx>
-
Date:
Sat, 27 Oct 2018 11:31:46 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.50) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
Autocrypt:
addr=maciej.suminski@xxxxxxx; prefer-encrypt=mutual; keydata= xsBNBFKfmAwBCAC9tak+4mDO1WiNnAwegusPBMEdl+sV35XeaU4PGSt33mPSlXB2klamg4ih QUykvuWqNEg2KyTvCSKNfnHTpzeeFegEsIwWFdhbIc4uUAD6CHl4+uGTXQiMh1+IJkgLmwuD RCEx9mSKbdzzTKz05w+fzzT3mNfko8NICWlcmhFgo2RXnQRTqFg7CNNBpx4kr4+AWIvb+Rha AVMLVJj1s05+STGyFucu6sZmTmOC53ZtkV8HchJeGuQL0LPkjvX0VKGE3gkvuP4iLBcgFtNC Kcu/L6FmWd24m2IhWaHXoWLBiVFw7gGzUdB7gSAiNO1+SoWX+99rbud7RvqV49vOgoqbABEB AAHNKU1hY2llaiBTdW1pbnNraSA8bWFjaWVqLnN1bWluc2tpQGNlcm4uY2g+wsB5BBMBAgAj BQJSn5gMAhsDBwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AACgkQFHAa7WGlsnU/JQf5AYW0 oFH+jOykZvlRkRZMoqw1vZGOHeRPK92vbjeiau/hALYX1FBvZMx+JMmVHN7DkRIY7bVoiJ6N n4Byn//BSd9F9eXjAphYVuBg2Xe5wp3/l9/z2Iw8KeLpfKAtfIybgpycvTuUxFIxm9mtpPt+ AoNFKBDhfLcpZLJTW7AwwpnzP+GDdjszjnW6rMt8Aq55liR+y/TZfz/tTEDcUcSPLlJBTmda TmkO5aPxPmeCeDMOT3YEd+bK57V5b7RgtqTdIT6CW7tjQKBPJbIGa8PQ0tUfz0yCBEPWghnY w+B/2JeArrRXDui78cGgTDy1ocQNAm3havk2WO2qykxziY6Owc7ATQRSn5gMAQgAxw+MRllT IPNnCeOAbRgX1KRzo7+7WpSIbmhrBzLY0O1SyIa7U05E6+4jDHDfDpSLqc61an1+M69e6l9Z E3ve3hymtj5ucXZQnveQ5klD6z5FBC/04of/YyrS+h6iRSM0nOmu1JOIqM0S2OzwsKRsS86r jCtRE5OxoBDCIB4xNPitezs4uvLoVfO3mVYUhiPRZMtTCInEi+tlM+AmaPjRkPAfhd0wsOjk oxkuJWEnZ8U8oHpeL0uqANZgLlIiT5yJMWsyyqlK01hdFbuIydIFFiyXJw1HDTXWX+tMxJrX VEvQJZALof9RU/jntqGltnQXArUgPMSGGu1f+7AH/CuMyQARAQABwsBfBBgBAgAJBQJSn5gM AhsMAAoJEBRwGu1hpbJ1maAH/RZPbvXaNIOouHZlnlkq/WORHxjkKfve+AbE62Ed8yFIwlAj tyZGKeEG9hDJl6f9BxDv+9qunTfWfXQuHxNIpdXstkxQIx4m043Kx3h7VdEmg53ybeGNgpvz BYk5HdgCH3yP6UbGNiel6xZOywmvpru3pEKNg4mJhzxm9JCG+djrvbRh+BZNOkDBgaSiCAuJ q6Ffo9Qk/qfl6Uim9G7GKSS4930ZQ2GoVObe+jXixOhWXFSDhGKX5meABmELJ9XTcW3Pp6XC 0KXOE2p0EHQPmFvXdU6OePI72jTgRzPJXRXbPkL0/NUfbZfxS/xnAG8jmODc2ufbtrvE2jPu INX35u4=
-
In-reply-to:
<8ad5ea2d-b845-81fa-ecce-40453600031e@t-online.de>
-
Openpgp:
preference=signencrypt
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0
Hi Carsten,
On 10/27/18 12:12 AM, Carsten Schoenert wrote:
> Hello Orson,
>
> Am 26.10.18 um 22:30 schrieb Maciej Suminski:
>> What about libngspice.so.0 symlink? Which package ships that? Anyway, it
>> makes sense to request a particular version of the library in case the
>> API changes in the future.
>
> Simon already has written some more technical explanation but to answer
> your question here in detail, libspice.so.0 is provided (for the reason
> Simon mentioned) in the plain library package in Debian, and this is
> libngspice0.
>
> https://packages.debian.org/sid/amd64/libngspice0/filelist
>
>>> So looking manually at the binaries build from the kicad source by ldd I
>>> can see a lot linked libraries but no library libngspice.so.0! Seems the
>>> library is simply opened by dlopen. So that's the reason why the
>>> packaging isn't adding a dependency on the package libngspice0.
>>
>> You are correct. The library used to be linked with eeschema, but we
>> have faced problems that could be resolved only by reloading the
>> library. I am afraid it has to stay this way for the time being.
>
> As a potential step into the right direction it would be good if
> eeschema would search for libngspice.so.0 on Linux platforms. I can then
> add a manual dependency on the library package instead on the -dev
> package (which is gladly for ngspice rather small compared to other -dev
> packages).
Done, courtesy of Stefan who provided the patch.
> nsgpice and especially the upstream packaging did from a Debain POV
> really big steps forwards and I'm really happy that Holger from the
> upstream team was really responsive to my questions and suggestions in
> the past year! Without this it wouldn't be possible that KiCad in Debian
> can now use ngspice from Debian main!
>
> So far I know Holger is also reading on this list, so I suggest to get
> in contact with Holger Vogt about the problems you have or had in the
> past. I'm quite sure Holger is willing to improve the situation if possible.
I know that Holger has already helped us a few times with ngspice
support, I appreciate that. If I recall correctly, the issue has been
discussed on forum.kicad.info, but indeed deserves a separate bug report
with a minimal example.
In any case, we still need to keep the current approach until the fix is
available in packages, meaning it will take time. Even then I would
rather stay on the safe path and let us recover from errors by reloading
the library.
Cheers,
Orson
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References