commit:     1d465e3780420afcaeeb5e9e76d1bbb5428d94f5
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 00:31:18 2022 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Dec  1 00:33:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d465e37

net-analyzer/nagios-plugins: yet another ping-related stable revision.

It turns out that the new revision to force a rebuild doesn't help
unless you actually include the path detection fix along with it.

Bug: https://bugs.gentoo.org/883765
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 ...gios-plugins-2.4.0-r1.ebuild => nagios-plugins-2.4.0-r2.ebuild} | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net-analyzer/nagios-plugins/nagios-plugins-2.4.0-r1.ebuild 
b/net-analyzer/nagios-plugins/nagios-plugins-2.4.0-r2.ebuild
similarity index 91%
rename from net-analyzer/nagios-plugins/nagios-plugins-2.4.0-r1.ebuild
rename to net-analyzer/nagios-plugins/nagios-plugins-2.4.0-r2.ebuild
index 32f8cfa80212..ea52cc31e226 100644
--- a/net-analyzer/nagios-plugins/nagios-plugins-2.4.0-r1.ebuild
+++ b/net-analyzer/nagios-plugins/nagios-plugins-2.4.0-r2.ebuild
@@ -87,11 +87,12 @@ src_configure() {
        fi
 
        # The autodetection for these two commands can hang if localhost is
-       # down or ICMP traffic is filtered. Bug #468296.
-       myconf+=( --with-ping-command="/bin/ping -n -U -w %d -c %d %s" )
+       # down or ICMP traffic is filtered (bug #468296). But also the path
+       # likes to move around on us (bug #883765).
+       myconf+=( --with-ping-command="$(command -v ping) -n -U -w %d -c %d %s" 
)
 
        if use ipv6; then
-               myconf+=( --with-ping6-command="/bin/ping6 -n -U -w %d -c %d 
%s" )
+               myconf+=( --with-ping6-command="$(command -v ping6) -n -U -w %d 
-c %d %s" )
        fi
 
        econf \

Reply via email to