Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877651 - app-admin/conserver-8.2.6-r3: does not always need net-libs/libnsl
Summary: app-admin/conserver-8.2.6-r3: does not always need net-libs/libnsl
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel M. Weeks
Depends on:
Reported: 2022-10-19 13:31 UTC by Jocelyn Mayer
Modified: 2022-10-20 18:08 UTC (History)
3 users (show)

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

Patch to conserver ebuild, making libnsl dependency optional (app-admin_conserver_conserver-8.2.6-r3.ebuild.patch,763 bytes, patch)
2022-10-19 13:33 UTC, Jocelyn Mayer
Details | Diff
output from emerge --info =app-admin/conserver-8.2.6-r3 (emerge-info,33.03 KB, text/plain)
2022-10-19 13:36 UTC, Jocelyn Mayer

Note You need to log in before you can comment on or make changes to this bug.
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/* 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.