~alpine/aports

testing/opendht: enable python binding v1 REJECTED

Gavin Henry: 1
 testing/opendht: enable python binding

 1 files changed, 6 insertions(+), 1 deletions(-)
given the gcc version in that picture, the issue there is you are backporting this library from edge into 3.15- and that doesn't work because it was built against edge libstdc++, which is that undefined reference you are seeing

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224791
you either need to be on edge, or you need to build it locally on 3.15 yourself, since it only exists in edge- sometimes these repository mixes work, but sometimes they don't for the reasons you see- it's not a supported configuration for that reason

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224793
replace v3.15 with edge in /etc/apk/repositories, then `apk upgrade -Ua` and you should be done :)

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224800
You certainly know your stuff!

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224827
makes sense :)

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224807
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3988/mbox | git am -3
Learn more about email & git

[PATCH] testing/opendht: enable python binding Export this patch

---
 testing/opendht/APKBUILD | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/testing/opendht/APKBUILD b/testing/opendht/APKBUILD
index d31f68762e..ea3b75b970 100644
--- a/testing/opendht/APKBUILD
+++ b/testing/opendht/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Gavin Henry <ghenry@sentrypeer.org>
pkgname=opendht
pkgver=2.4.0
pkgrel=1
pkgrel=2
pkgdesc="C++14 Distributed Hash Table implementation"
url="https://github.com/savoirfairelinux/opendht"
arch="all"
@@ -11,9 +11,13 @@ makedepends="
	argon2-dev
	asio-dev
	cmake
	cython
	gnutls-dev
	jsoncpp-dev
	msgpack-cxx-dev
	nettle-dev
	py3-setuptools
	python3-dev
	readline-dev
	samurai
	"
@@ -31,6 +35,7 @@ build() {
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DOPENDHT_C=ON \
		-DOPENDHT_TOOLS=ON \
		-DOPENDHT_PYTHON=ON \
		-G Ninja \
		$CMAKE_CROSSOPTS .
	cmake --build build
-- 
2.34.1
you should split this into `py3-opendht` instead of putting it into the main package, by adding something like `py3-$pkgname:_py3` to subpackages, then adding a function into the file:  
```
_py3() {
	pkgdesc="$pkgdesc (python bindings)"
	amove usr/lib/python*
}
```

i also notice this added a `dhtcluster` binary, not sure if it's related to the python binding

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224782
@psykose This :-)

Hmm, now I get this attached.

Ah, OK. I'll do that and ask upstream ![Screenshot_from_2022-03-24_15-36-23](https://gitlab.alpinelinux.org/alpine/aports/uploads/af99d5a68ecc1cd593e30f5bcd3c8e83/Screenshot_from_2022-03-24_15-36-23.png)about the dhtcluster. Didn't spot that!

I'll get upstream to improve their docs and CI too!

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224785
Ah, yeah true. I should upgrade to edge on this build VM. Is that easy to do to go from 3.15.x or should I just reinstall?

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224795
`dhtcluster` is built because python bindings are enabled, so I should put that in `py3-opendht` too.

https://github.com/savoirfairelinux/opendht/search?q=dhtcluster

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/32427#note_224802