Package Details: python-primp 0.14.0-3

Git Clone URL: https://aur.archlinux.org/python-primp.git (read-only, click to copy)
Package Base: python-primp
Description: HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints
Upstream URL: https://github.com/deedy5/primp
Licenses: MIT
Submitter: Junker
Maintainer: Magi3r
Last Packager: Magi3r
Votes: 1
Popularity: 0.67
First Submitted: 2024-09-07 11:16 (UTC)
Last Updated: 2025-03-19 17:50 (UTC)

Latest Comments

Magi3r commented on 2025-03-19 17:54 (UTC)

Thanks! Should be fixed now.

haxibami commented on 2025-03-19 17:35 (UTC)

@Magi3r Using mold linker (or disabling LTO) will solve the problem.

diff --git a/PKGBUILD b/PKGBUILD
index b4bf59d..e7e2aff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,12 +8,13 @@ arch=('x86_64' 'aarch64')
 url=https://github.com/deedy5/primp
 license=('MIT')
 depends=('python')
-makedepends=('git' 'cmake' 'python-maturin' 'python-build' 'python-installer' 'python-wheel' 'clang')
+makedepends=('git' 'cmake' 'python-maturin' 'python-build' 'python-installer' 'python-wheel' 'clang' 'mold')
 source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$_name/$_name-$pkgver.tar.gz")
 sha256sums=('b6f23b2b694118a9d0443b3760698b90afb6f867f8447e71972530f48297992e')

 build() {
    cd $_name-$pkgver
+   export RUSTFLAGS="${RUSTFLAGS} -Clink-arg=-fuse-ld=mold"
    python -m build --wheel --skip-dependency-check --no-isolation
 }

Magi3r commented on 2025-03-18 17:29 (UTC)

@micwoj92 You are right. I don't get this error on my machine, however building and installing the package in a clean chroot results in the same error message as you have. A bit of web search later it seems like the issue could be related to openssl. Installing openssl into the chroot however did not fix the problem. I am not sure how to fix it...

micwoj92 commented on 2025-03-17 20:07 (UTC)

Doesn't work:

import primp
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import primp
  File "/usr/lib/python3.13/site-packages/primp/__init__.py", line 14, in <module>
    from .primp import RClient
ImportError: /usr/lib/python3.13/site-packages/primp/primp.abi3.so: undefined symbol: BIO_meth_set_puts

haxibami commented on 2025-03-15 05:20 (UTC)

This needs git and cmake in makedepends for building in a clean chroot.

evine commented on 2024-11-21 02:08 (UTC) (edited on 2024-11-21 02:09 (UTC) by evine)

It should be arch=("x86_64" "aarch64") and depends=("python").