I had a few problems trying to get nagios-plugins-1.3.0-beta2-r1 emerged The patch of install-opts-fix.diff failed on a hunk. Leaving 'autoconf' in before './configure' caused ./configure to error out on ././getloadavg.c pkg_preinst doesn't seem to get executed
Same here, but here is the output: [snip] patching file Makefile.in Hunk #1 succeeded at 68 with fuzz 1. patching file configure.in Hunk #1 succeeded at 56 (offset 10 lines). Hunk #2 FAILED at 166. [snip] and, of course, the build error: [snip] check_disk.c check_disk.c: In function `main': check_disk.c:77: `DF_COMMAND' undeclared (first use in this function) check_disk.c:77: (Each undeclared identifier is reported only once check_disk.c:77: for each function it appears in.) make[1]: *** [check_disk.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/nagios-plugins-1.3.0_beta2/work/nagios-plugins-1.3.0-beta2/plugins' make: *** [all-recursive] Error 1 !!! ERROR: net-analyzer/nagios-plugins-1.3.0_beta2 failed. !!! Function src_compile, Line 33, Exitcode 2 !!! (no error message) [snip] Also, see attached 'configure.in.rej' -Paul
nagios-plugins ebuild fails for me first saying invalig user nagios, i did useradd nagios, it then fails with invalid group nagios, i ddi groupadd nagio and it installs
of course, minus my typos useradd nagios groupadd nagios
Looking into this.
Nagios-plugins-1.3.0-beta3-r1 (being added into portage in a few moments) should solve the invalid nagios user issue. The failed patchset was removed. As for the check_disk issue, I'v never been able to reproduce it... so.
The compile problem seems to come into play when df doesn't work right. In my case, I got it when I was building a system on another disk and /etc/mtab didn't exist. A simple: cat /proc/mounts >/etc/mtab fixed the problem.