Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937745 - net-misc/electrum-ltc: is not compatible with >dev-libs/libsecp256k1-0.1
Summary: net-misc/electrum-ltc: is not compatible with >dev-libs/libsecp256k1-0.1
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-08-11 07:32 UTC by Richard Steinmetz
Modified: 2024-11-06 20:38 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Depend on the correct subslot of libsecp256k1 (libsecp256k1-subslot.patch,376 bytes, patch)
2024-08-11 14:56 UTC, Richard Steinmetz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Steinmetz 2024-08-11 07:32:28 UTC
Running electrum-ltc after emerging it without additional masks breaks the program. It doesn't seem to be compatible with libsecp256k1-0.4.0 which is the latest, unkeyworded release of the lib (at the time of writing). This release ships version libsecp256k1.so.2 instead of libsecp256k1.so.0.

When I manually mask >=dev-libs/libsecp256k1-0.2.0 and re-emerge the lib it works again. The correct version libsecp256k1.so.0 will then be built via dev-libs/libsecp256k1-0.1_pre20201028-r1:0/0::gentoo.

So perhaps the dependency spec of dev-libs/libsecp256k1 should be restricted accordingly.

$ electrum-ltc
Error: Failed to load libsecp256k1.
E | ecc_fast | libsecp256k1 library failed to load. exceptions: [OSError('/usr/lib/python3.11/site-packages/electrum_ltc/libsecp256k1.so.0: cannot open shared object file: No such file or directory'), OSError('libsecp256k1.so.0: cannot open shared object file: No such file or directory')]
Comment 1 Richard Steinmetz 2024-08-11 14:56:00 UTC
Created attachment 899843 [details, diff]
Depend on the correct subslot of libsecp256k1

Here is a patch that I tested locally. It implements my proposed solution of pulling in the correct subslot (libsecp256k1:0/0).
Comment 2 Matt Whitlock 2024-11-06 16:10:41 UTC
I'm inclined to say WONTFIX, as Electrum LTC has not seen a release in more than two years, and dev-libs/libsecp256k1-0.4.0 is soon to be stabilized, after which all pre-release versions will be dropped from the tree. In any case, I respectfully decline to spend any of my time on altcoins.