Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Feb 2025 12:54:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 284562] net-mgmt/nagios-check_ports: Fix run with pkg>=2.0.0
Message-ID:  <bug-284562-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284562

            Bug ID: 284562
           Summary: net-mgmt/nagios-check_ports: Fix run with pkg>=3D2.0.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: o.kryvulia@flex-it.com.ua
                CC: ryanrfrederick@gmail.com
             Flags: maintainer-feedback?(ryanrfrederick@gmail.com)
                CC: ryanrfrederick@gmail.com

Created attachment 257220
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D257220&action=
=3Dedit
Trivial fix to run with pkg>=3D2.0.0

There is an error while running on system with pkg>=3D2.0.0:

# /usr/local/libexec/nagios/check_ports
[: -gt: unexpected operator
PORTS OK -  security problem(s). | total_updates=3D0;0;0 security_problems=
=3D;0;0

This caused by difference in pkg audit command output, for example:
pkg-1.20.9:
10 problem(s) in 6 installed package(s) found.

pkg-2.0.5:
0 problem(s) in 0 package(s) found.

Since work by upstream seems to be suspended trivial fix in ports tree
proposed.

--=20
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-284562-7788>