FS#78420 - [libsecp256k1] Fix blockchain python on Arch Linux
Attached to Project:
Community Packages
Opened by jpic (isnull) - Friday, 05 May 2023, 17:26 GMT
Last edited by Christian Heusel (gromit) - Saturday, 02 September 2023, 18:14 GMT
Opened by jpic (isnull) - Friday, 05 May 2023, 17:26 GMT
Last edited by Christian Heusel (gromit) - Saturday, 02 September 2023, 18:14 GMT
|
Details
Hi all!
Please add --enable-module-extrakeys --enable-module-schnorrsig to; https://github.com/archlinux/svntogit-community/blob/packages/libsecp256k1/trunk/PKGBUILD#L35 Those were added in upstream: https://github.com/bitcoin-core/secp256k1/tree/master/src/modules And secp256k1 python package already ships bindings for these modules: https://github.com/rustyrussell/secp256k1-py/tree/master/_cffi_build So blockchain SDKs in python vastly use this module, it has already been done in the AUR -git package version: https://aur.archlinux.org/packages/libsecp256k1-git#comment-850788 Also, please change pkgver=20220630+1625+g43756da over to pkgver=v0.3.1 Additional info: * package version(s) All the tests proposed above were tested on arch linux up to date and working on both old 20220630 version and latest upstream v0.3.1 * config and/or log files etc. Good version of PKGBUILD attached * link to upstream bug report, if any Some arch users reportedly have issues on various github blockchain python repos Steps to reproduce: $ strings /usr/lib/libsecp256k1.so | grep secp256k1_keypair_xonly_pub Returns nothing with current, problematic version of libsecp256k1 package version. As such, a lot of blockchain python modules won't work, and fail to import with: ImportError: /tmp/venv/lib/python3.11/site-packages/secp256k1/_libsecp256k1.cpython-311-x86_64-linux-gnu.so: undefined symbol: secp256k1_keypair_xonly_pub With above PKGBUILD, this symbol (from extrakeys module) is defined, and we are up to date with v0.3.1 |
This task depends upon
Closed by Christian Heusel (gromit)
Saturday, 02 September 2023, 18:14 GMT
Reason for closing: Implemented
Additional comments about closing: fixed in 1:0.3.2-3:
Saturday, 02 September 2023, 18:14 GMT
Reason for closing: Implemented
Additional comments about closing: fixed in 1:0.3.2-3:

PS: Then, I think you can remove the "Out of date" flag.

PKGBUILD working fine here:
https://yourlabs.io/oss/containers/-/jobs/29426

Attached the PKGBUILD with --enable-module-schnorrsig that I
forgot in previous attachment.