nrpe will dynamically choose at build time to link against tcp-wrappers if it finds them on the system, but the ebuild does not list it as a dependency. If you remove tcp-wrappers at a later time nrpe will not run anymore. The ebuild should list tcp-wrappers as dependency or, better, honor the already established USE flag and force compiling and dependency with or without libwrap. # emerge tcp-wrappers nagios-nrpe; ldd /usr/sbin/nrpe linux-vdso.so.1 => (0x00007fff903ff000) libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007faf22c6e000) libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007faf228f3000) libnsl.so.1 => /lib/libnsl.so.1 (0x00007faf226db000) libwrap.so.0 => /lib/libwrap.so.0 (0x00007faf224d2000) libc.so.6 => /lib/libc.so.6 (0x00007faf22175000) libdl.so.2 => /lib/libdl.so.2 (0x00007faf21f71000) libz.so.1 => /lib/libz.so.1 (0x00007faf21d5c000) /lib64/ld-linux-x86-64.so.2 (0x00007faf22ebe000) # emerge --unmerge tcp-wrappers; emerge nagios-nrpe; ldd /usr/sbin/nrpe linux-vdso.so.1 => (0x00007fff64b3f000) libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007f81d68ff000) libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007f81d6584000) libnsl.so.1 => /lib/libnsl.so.1 (0x00007f81d636c000) libc.so.6 => /lib/libc.so.6 (0x00007f81d600f000) libdl.so.2 => /lib/libdl.so.2 (0x00007f81d5e0b000) libz.so.1 => /lib/libz.so.1 (0x00007f81d5bf6000) /lib64/ld-linux-x86-64.so.2 (0x00007f81d6b4f000)
Created attachment 298341 [details, diff] tcp-wrapper-configure.in.patch A possible solution to resolve this issue...
Created attachment 298343 [details, diff] nagios-nrpe-2.12-r103.ebuild.patch patch for last ebuild in portage
Resolve Bug #398175 additionaly to prevent QA-Notices
*** Bug 400989 has been marked as a duplicate of this bug. ***
Fixed in net-analyzer/nagios-nrpe-2.13. Thanks!