Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715968 - net-libs/libvncserver-0.9.12-r5: automagical depend on pthreads
Summary: net-libs/libvncserver-0.9.12-r5: automagical depend on pthreads
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexander Tsoy
Keywords: PullRequest
Depends on:
Reported: 2020-04-03 02:01 UTC by Fat-Zer
Modified: 2020-06-20 20:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Suggested patch (file_715968.txt,845 bytes, patch)
2020-04-03 02:05 UTC, Fat-Zer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fat-Zer 2020-04-03 02:01:01 UTC
Due to a bug in the upstream CMakeLists.txt, USE="-threads" doesn't actually makes libvncserver to be compiled without pthreads support.

Reproducible: Always

Steps to Reproduce:
1.emerge with USE="-threads" 

Actual Results:  
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:


and /usr/lib/ will be linked against libpthreads

Expected Results:  
net-libs/libvncserver should have no pthreads support

Upstream already fixed the issue:

See also #715964
Comment 1 Fat-Zer 2020-04-03 02:05:15 UTC
Created attachment 629244 [details, diff]
Suggested patch

Note that the patch requires #715964[1] to be fix first, otherwise it might result in build failures or runtime issues.

Comment 2 Larry the Git Cow gentoo-dev 2020-06-20 20:31:04 UTC
The bug has been closed via the following commit(s):

commit 0220c0523306b9f439f4a2a2dd27d81b1a55ebcb
Author:     Alexander Tsoy <>
AuthorDate: 2020-06-14 22:19:48 +0000
Commit:     Thomas Deutschmann <>
CommitDate: 2020-06-20 20:30:49 +0000

    net-libs/libvncserver: Version bump to 0.9.13
    Signed-off-by: Alexander Tsoy <>
    Signed-off-by: Thomas Deutschmann <>

 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(-)