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

Bug 326367

Summary: net-analyzer/nagios-nrpe links against tcp-wrappers without appropriate USE flag and dependency
Product: Gentoo Linux Reporter: Luca Lesinigo <luckyluke>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, idl0r, prometheanfire
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=698794
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 410891    
Bug Blocks:    
Attachments: tcp-wrapper-configure.in.patch
nagios-nrpe-2.12-r103.ebuild.patch

Description Luca Lesinigo 2010-06-30 22:09:48 UTC
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)
Comment 1 Marcel Pennewiß 2012-01-08 18:41:08 UTC
Created attachment 298341 [details, diff]
tcp-wrapper-configure.in.patch

A possible solution to resolve this issue...
Comment 2 Marcel Pennewiß 2012-01-08 18:41:53 UTC
Created attachment 298343 [details, diff]
nagios-nrpe-2.12-r103.ebuild.patch

patch for last ebuild in portage
Comment 3 Marcel Pennewiß 2012-01-08 18:43:36 UTC
Resolve Bug #398175 additionaly to prevent QA-Notices
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2012-02-28 14:07:53 UTC
*** Bug 400989 has been marked as a duplicate of this bug. ***
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2012-06-07 00:10:38 UTC
Fixed in net-analyzer/nagios-nrpe-2.13. Thanks!