Due to a bug in the upstream CMakeLists.txt, USE="-threads" doesn't actually makes libvncserver to be compiled without pthreads support.
Steps to Reproduce:
1.emerge with USE="-threads"
The library will be built with pthreads support regardless of the USE flag as long as C library will have pthreads support. Namely:
- /usr/include/rfb/rfbconfig.h will contain:
#define LIBVNCSERVER_HAVE_LIBPTHREAD 1
and /usr/lib/libvncserver.so will be linked against libpthreads
net-libs/libvncserver should have no pthreads support
Upstream already fixed the issue: https://github.com/LibVNC/libvncserver/commit/48c3ce30dfd7761c6d1718f0c021a0c5cdbbc494
See also #715964
Created attachment 629244 [details, diff]
Note that the patch requires #715964 to be fix first, otherwise it might result in build failures or runtime issues.
The bug has been closed via the following commit(s):
Author: Alexander Tsoy <email@example.com>
AuthorDate: 2020-06-14 22:19:48 +0000
Commit: Thomas Deutschmann <firstname.lastname@example.org>
CommitDate: 2020-06-20 20:30:49 +0000
net-libs/libvncserver: Version bump to 0.9.13
Signed-off-by: Alexander Tsoy <email@example.com>
Signed-off-by: Thomas Deutschmann <firstname.lastname@example.org>
net-libs/libvncserver/Manifest | 1 +
net-libs/libvncserver/libvncserver-0.9.13.ebuild | 71 ++++++++++++++++++++++++
net-libs/libvncserver/metadata.xml | 3 +-
3 files changed, 74 insertions(+), 1 deletion(-)