Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 877651

Summary: app-admin/conserver-8.2.6-r3: does not always need net-libs/libnsl
Product: Gentoo Linux Reporter: Jocelyn Mayer <l_indien>
Component: Current packagesAssignee: Daniel M. Weeks <dan>
Status: UNCONFIRMED ---    
Severity: normal CC: gyakovlev, l_indien, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to conserver ebuild, making libnsl dependency optional
output from emerge --info =app-admin/conserver-8.2.6-r3

Description Jocelyn Mayer 2022-10-19 13:31:10 UTC
It appears that libnsl is an indirect dependency which is only required when using tcp-wrappers and tcp-wrappers have been compiled with the netgroups USE flag enabled.

Reproducible: Always

Steps to Reproduce:
1. Compile tcp-wrappers without netgroups USE flag set
2. Compile conserver
3. Check runtime libraries dependencies /lib64/libwrap.so.* and /usr/bin/conserver using ldd -r -d
Actual Results:  
ldd shows that neither tcp-wrappers nor conserver are actually using libnsl.
This is OK for tcp-wrappers as libnsl dependency depends on netgroups USE flag (in RDEPEND). But conserver ebuild keeps a dependency only this library.

Expected Results:  
There should not be any dependency on libnsl when tcp-wrappers was compiled without netgroups USE flag set

Making the net-libs/libnsl conditional in conserver ebuild made me able to distclean this library I don't have any usage, not using NIS on any machine.
Comment 1 Jocelyn Mayer 2022-10-19 13:33:46 UTC
Created attachment 824749 [details, diff]
Patch to conserver ebuild, making libnsl dependency optional

Adding a netgroups USE flag to conserver and requesting this flag to be set the same way for tcp-wrappers makes possible to libnsl dependency depend on tcpd and netgroups USE flags set together
Comment 2 Jocelyn Mayer 2022-10-19 13:36:02 UTC
Created attachment 824751 [details]
output from emerge --info =app-admin/conserver-8.2.6-r3

Here is the emerge --info output _after_ patching the ebuild and re-merging it.