Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710620 - dev-libs/libuv: automagic dependency on libnsl
Summary: dev-libs/libuv: automagic dependency on libnsl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on: 710624
Blocks:
  Show dependency tree
 
Reported: 2020-02-23 21:26 UTC by Georgy Yakovlev
Modified: 2020-05-17 22:05 UTC (History)
2 users (show)

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


Attachments
files/libuv-9999-AC_SEARCH_LIBS.patch (libuv-9999-AC_SEARCH_LIBS.patch,987 bytes, patch)
2020-04-29 17:44 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2020-02-23 21:26:23 UTC
dev-libs/openssl-1.1.1d-r3::gentoo was built with the following:
USE="asm zlib -bindist -rfc3779 -sctp -sslv3 -static-libs -test -tls-heartbeat -vanilla"


configure:13431: checking for ECDSA_sign
configure:13431: powerpc64le-unknown-linux-gnu-gcc -o conftest -mcpu=native -O2 -pipe -frecord-gcc-switches -fdiagnostics-show-option -DDIG_SIGCHASE -pthread    -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -L/usr/lib64 conftest.c   -luv -lrt -lpthread -lnsl -ldl  -lcrypto  >&5
/usr/lib/gcc/powerpc64le-unknown-linux-gnu/9.2.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld: cannot find -lnsl
collect2: error: ld returned 1 exit status


but it's here.
/lib64/libnsl.so.1
/lib64/libnsl-2.30.so



previous versions detect it just fine

checking for ECDSA_sign... yes



can't reproduce on my other stable arm64 system so may be it's system specific or ppc64 specific. checking.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2020-02-23 21:48:34 UTC
configures/builds fine with net-libs/libnsl-1.2.0 on ppc64  with both glibc-1.29 and glibc-1.30 but!

for some reason also configures fine on arm64 with glibc-0.29 without net-libs/libnsl-1.2.0



this seems to be coming from libuv

ppc64-glibc-1.30 with dev-libs/libuv-1.34.2
pkgconf --libs libuv
-luv -lrt -lpthread -lnsl -ldl


ppc64-glibc-1.29 with dev-libs/libuv-1.33.1 
pkgconf --libs libuv
-luv -lrt -lpthread -lnsl -ldl


arm64-glibc-1.30 with dev-libs/libuv-1.33.1
pkgconf --libs libuv
-luv -lrt -lpthread -ldl 



need to figure out why on ppc64 libuv pulls -lnsl
and somehow glibc's libuv not working with bind-tools configure check.
Comment 2 Georgy Yakovlev archtester gentoo-dev 2020-02-23 22:22:39 UTC
after chatting on #g-toolchain here's what I figured out.

libuv has this check

AC_CHECK_LIB([nsl], [gethostbyname])

and seems to pull in -lnsl into .pc file if libuv was built while external libnsl was present.


steps to reproduce

remove libnsl
rebuild libuv

pkg-config --libs libuv
-luv -lrt -lpthread -ldl 


after that bind-tools build fine.


so it's an auto-magic depend on libnsl in libuv.

re-assigning to libuv maintainers.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-04-29 17:44:54 UTC
Created attachment 635206 [details, diff]
files/libuv-9999-AC_SEARCH_LIBS.patch

(In reply to Georgy Yakovlev from comment #2)
> after chatting on #g-toolchain here's what I figured out.
> 
> libuv has this check
> 
> AC_CHECK_LIB([nsl], [gethostbyname])

It should be using AC_SEARCH_LIBS instead.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-17 13:45:27 UTC
Ought to make it into the next release.
Comment 5 Larry the Git Cow gentoo-dev 2020-05-17 22:05:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3af5979293af1ac6340e5199b819f4e1be1d5d7d

commit 3af5979293af1ac6340e5199b819f4e1be1d5d7d
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-05-17 22:05:15 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-05-17 22:05:42 +0000

    dev-libs/libuv: Version 1.38.0
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/710620
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 dev-libs/libuv/Manifest            |  1 +
 dev-libs/libuv/libuv-1.38.0.ebuild | 47 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)