Summary: | net-im/coturn - add libressl support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Kenzelmann <gentoo> |
Component: | Current packages | Assignee: | Andreas Schürch <nativemad> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 561854 |
Description
Daniel Kenzelmann
2018-04-05 12:36:21 UTC
libevent should not be built with USE=ssl in that case! I will do these changes with a version bump in a few days. This is done now in coturn-4.5.0.7 and coturn-9999. Thanks for reporting! Do you know if that is a generic issue with libevent? I.e. is that a problem with libevent including something when having both ssl and libressl keywords enabled? If yes, maybe libevent should be reworked to maybe internally configure things correctly when the libressl use flag is in use? At the moment the default would be to have libressl and ssl enabled at the same time, if I understand it correctly this should enable ssl with libressl instead of openssl. Disabling the ssl use flag is basically telling libevent configure to use "--disable-openssl" which I think might be disabling SSL support completely? (i.e. also not using libressl?) Any ideas on this? (also it seems the coturn ebuild does not force it either way, if both ssl and libressl are enabled it simply accepts that because of the [ssl] condition which does not specify any use of the libressl flag. so maybe better to use something like || ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl,-libressl] ) You are so right!! coturn used to fail to build if libevent didn't had ssl support. Thats why the dep was there in the first place. That seems to no longer be the case. And libevent really doesn't seem to build ssl support with -ssl, even with libressl enabled. I stumbled over the commit message from libevent [1] that says that those BIO_.. APIS are implemented in libressl-2.7.4, expect for BIO_get_init! I now upgraded my chroot to libressl-2.7.4, rebuilt libevent with USE="ssl libressl" and tried to build coturn against it... I guess you know what happened! ;-) /usr/lib//libevent_openssl.so: undefined reference to `BIO_get_init' The good news is that the other errors are gone! ;-) [1] https://github.com/libevent/libevent/commit/28b8075400c70b2d2da2ce07e590c2ec6d11783d One more thing... It compiles against dev-libs/libenevt-9999 with USE="ssl libressl"! I haven't tested that with the older libressl package... Unfortunately there is still no newer libevent release. I made it now like that... || ( dev-libs/libevent[-ssl,libressl] dev-libs/libevent[ssl,-libressl] >dev-libs/libevent-2.1.8[ssl,libressl] ) Thanks! |