Date: Tue, 23 Jun 2015 09:19:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 201071] net-mgmt/nagios-check_ports: broken on FreeBSD 8, 9 even when WITH_PKGNG=yes Message-ID: <bug-201071-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201071 Bug ID: 201071 Summary: net-mgmt/nagios-check_ports: broken on FreeBSD 8,9 even when WITH_PKGNG=yes Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: tps@vr-web.de CC: ryanrfrederick@gmail.com Flags: maintainer-feedback?(ryanrfrederick@gmail.com) CC: ryanrfrederick@gmail.com nagios-check_ports broken on FreeBSD 8-stable, 9-stable if WITH_PKGNG=yes is set: # /usr/local/libexec/nagios/check_ports /usr/local/libexec/nagios/check_ports: /usr/local/sbin/portaudit: not found [: -gt: unexpected operator PORTS OK - security problem(s). | total_updates=0;0;0 security_problems=;0;0 # /bin/sh -xe /usr/local/libexec/nagios/check_ports + PKG_VERSION=/usr/sbin/pkg_version + PKG=/usr/sbin/pkg + JEXEC=/usr/sbin/jexec + JLS=/usr/sbin/jls + TMP_PATH=/tmp/jailaudit + PROGNAME=check_ports + VERSION=0.7.1 + DATE='23 Jun 2014' + PROJECTURL=https://github.com/rfrederick/check_ports + uname -r + RELEASE=8.4-STABLE + RELEASE=8 + ANY_UPDATE=0 + WARN_ON_ANY_UPDATE=0 + CHECK_PORTS_AGE=0 + UNPRIV_MODE=0 + MSG_STATE=0 + PORTSAGE=0 + UPDATES=0 + UPDATES_LIST='' + USE_PKG=0 + PKGVERSION_OPTS='-Ivl <' + PKG_OPTS='version -Ivl <' + getopts I:P:hvcawpuj:g opt + PORTDIR=/usr/ports + : /usr/ports/INDEX-8 + : /usr/local/sbin/portaudit + [ -n '' ] + [ 0 -eq 1 -a 0 -eq 1 ] + [ 8 -ge 10 ] + [ -z ] + [ 0 -eq 1 ] + run_main + [ 0 -eq 1 -o 0 -eq 1 ] + [ 0 -eq 1 ] + [ 0 -eq 0 ] + /usr/local/sbin/portaudit /usr/local/libexec/nagios/check_ports: /usr/local/sbin/portaudit: not found + grep 'problem(s) in your\|the installed packages found.' + awk '{ print $1 }' + PROBLEMS='' + run_gen_state + MSG_PROBLEMS=' security problem(s)' + [ 0 -eq 1 -o 0 -eq 1 ] + [ 0 -eq 1 -a 0 -gt 0 ] + [ 0 -eq 1 -a 0 -gt 0 ] + [ 0 -eq 1 -a 0 -eq 0 ] + MSG_PERFDATA='total_updates=0;0;0 security_problems=;0;0' + [ -n '' ] + [ -gt 0 ] [: -gt: unexpected operator + print_state ' security problem(s). | total_updates=0;0;0 security_problems=;0;0' 0 + STATE=OK + printf 'PORTS OK - security problem(s). | total_updates=0;0;0 security_problems=;0;0\n' PORTS OK - security problem(s). | total_updates=0;0;0 security_problems=;0;0 + exit 0 Looks like check_ports assumes pkg_*-tools if RELEASE is below 10, regardless off WITH_PKGNG=yes set and if WITH_PKGNG=yes building world seems not to build pkg_*-tools any more ... -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201071-13>