Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663362 - net-misc/x2goclient with net-libs/libssh-0.8.0: ld: cannot find -lssh_threads
Summary: net-misc/x2goclient with net-libs/libssh-0.8.0: ld: cannot find -lssh_threads
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL: https://bugs.x2go.org/cgi-bin/bugrepo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-11 11:15 UTC by Helmut Jarausch
Modified: 2020-03-09 22:53 UTC (History)
4 users (show)

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


Attachments
build log xz-compressed (x2goclient-4.1.2.1.build.xz,3.94 KB, application/x-xz)
2018-08-11 11:15 UTC, Helmut Jarausch
Details
x2goclient.ebuild.diff (x2goclient.ebuild.diff,535 bytes, patch)
2018-08-11 12:20 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2018-08-11 11:15:05 UTC
Created attachment 543066 [details]
build log  xz-compressed

With standard use flags, libssh-0.8.0 does not install
/usr/lib64/libssh_threads.so and /usr/lib64/libssh_threads.so.4

This brakes emerging net-misc/x2goclient-4.1.2.1 , e.g.

Downgrading to libssh-0.7.5-r2  solves this problem
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-08-11 12:16:33 UTC
libssh-0.8.0 no longer installs that lib. It seems this has moved into the libssh.so file instead.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-08-11 12:20:01 UTC
Created attachment 543068 [details, diff]
x2goclient.ebuild.diff

Possible (but ugly) fix...
Comment 3 Bernard Cafarelli gentoo-dev 2018-08-11 22:52:56 UTC
Bug #663316 shows remmina and openvas-libraries (at least) are affected too.

The clean fix is probably to extend the qmake configuration to check libssh version, and configure LIBS accordingly...
Comment 4 Larry the Git Cow gentoo-dev 2018-08-14 08:04:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93da82777fd5f688dc482e6ca7854e2b2416a6c7

commit 93da82777fd5f688dc482e6ca7854e2b2416a6c7
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-08-14 07:44:07 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-08-14 07:44:07 +0000

    net-libs/libssh: Bump to version 0.8.1. Removed old.
    
    Added compatibility symlink
    
      libssh_threads.so -> libssh.so
    
    until consumers have been fixed.
    
    Bug: https://bugs.gentoo.org/663362
    Bug: https://bugs.gentoo.org/663316
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 net-libs/libssh/Manifest                                     | 2 +-
 net-libs/libssh/{libssh-0.8.0.ebuild => libssh-0.8.1.ebuild} | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
Comment 5 Bernard Cafarelli gentoo-dev 2018-08-14 22:19:07 UTC
Thanks @Poly-C for the compat link! I filed an upstream bug to see if we can get a clean fix.

If too complicated I will make new versions require >=libssh-0.8 and fix the LIBS line
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-10-30 14:00:25 UTC
Upstream added a pkgconfig check for libssh which fixes this issue:

https://code.x2go.org/gitweb?p=x2goclient.git;a=commitdiff;h=b9665ba6c93dc7066c8cd57db1719c87c4f55d41


There's a followup patch handling static builds but I'm no sure if we need this one:

https://code.x2go.org/gitweb?p=x2goclient.git;a=commitdiff;h=77508480840b7f73e0c6648d1a296e7480df69b5
Comment 7 Bernard Cafarelli gentoo-dev 2020-03-09 22:53:12 UTC
Now that 4.1.2.2 is finally released, we have both fixes in (plus compatibility in current libssh).

So job looks like done here