public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-plugins/
Date: Wed, 30 Nov 2022 23:30:13 +0000 (UTC)	[thread overview]
Message-ID: <1669850827.51148f5256d4c1d10138f967a884a6f7aa58fdca.mjo@gentoo> (raw)

commit:     51148f5256d4c1d10138f967a884a6f7aa58fdca
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 30 23:20:19 2022 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 23:27:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51148f52

net-analyzer/nagios-plugins: use ping/ping6 from $PATH in v2.4.2.

We pass explicit ping/ping6 commands to the nagios-plugins ./configure
script to prevent it from running those commands during the build.
However, instead of grabbing their paths from $PATH, we have (until now)
hard-coded them to /bin/ping and /bin/ping6. This has now bitten us with
net-misc/iputils-20221126.

This commit uses $(command -v ...) to get the right absolute
paths. Thanks to Daniel Pouzzner for reporting the problem and
suggesting the fix.

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

 net-analyzer/nagios-plugins/nagios-plugins-2.4.2.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net-analyzer/nagios-plugins/nagios-plugins-2.4.2.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-2.4.2.ebuild
index 7b20af18afa6..8fe32f3ad69a 100644
--- a/net-analyzer/nagios-plugins/nagios-plugins-2.4.2.ebuild
+++ b/net-analyzer/nagios-plugins/nagios-plugins-2.4.2.ebuild
@@ -83,11 +83,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	other threads:[~2022-11-30 23:30 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30 23:30 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-23 15:17 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-plugins/ Michael Orlitzky
2025-02-23  3:09 Sam James
2025-02-16  6:32 Sam James
2025-02-16  6:32 Sam James
2025-02-16  6:32 Sam James
2024-11-14 23:30 Michael Orlitzky
2024-02-18 22:42 Sam James
2024-02-18 19:57 Arthur Zamarin
2024-02-18 19:57 Arthur Zamarin
2024-02-18 19:57 Arthur Zamarin
2024-02-18 15:10 Michael Orlitzky
2024-02-18 15:10 Michael Orlitzky
2023-09-09 23:44 Michael Orlitzky
2023-05-11 20:03 Sam James
2023-01-28  9:06 Sam James
2023-01-28  9:02 Arthur Zamarin
2023-01-28  8:54 Sam James
2023-01-28  8:54 Sam James
2022-12-01  0:35 Michael Orlitzky
2022-12-01  0:26 Michael Orlitzky
2022-12-01  0:19 Michael Orlitzky
2022-12-01  0:08 Michael Orlitzky
2022-11-19 23:06 Michael Orlitzky
2022-08-30  1:05 Michael Orlitzky
2022-08-29 12:38 Jakov Smolić
2022-08-12 14:27 Sam James
2022-08-06 13:04 Michael Orlitzky
2022-08-03 17:51 Arthur Zamarin
2022-08-03 16:12 Arthur Zamarin
2022-06-02 17:23 Michael Orlitzky
2022-03-23  0:45 Sam James
2021-06-22 18:19 Sam James
2021-05-01 10:02 Mikle Kolyada
2021-03-22  2:56 Michael Orlitzky
2020-11-30 16:17 Aaron Bauman
2020-08-05 15:34 Michael Orlitzky
2020-08-01  9:01 Sergei Trofimovich
2020-08-01  8:53 Sergei Trofimovich
2020-07-28 21:25 Sergei Trofimovich
2020-07-27 18:36 Sergei Trofimovich
2020-07-24 15:09 Agostino Sarubbo
2020-07-23 16:51 Michael Orlitzky
2020-01-17 17:02 Michael Orlitzky
2019-12-11 16:26 Michael Orlitzky
2019-12-11 15:26 Michael Orlitzky
2019-08-31 21:35 Michael Orlitzky
2019-02-16 16:01 Michael Orlitzky
2019-01-31 18:04 Tobias Klausmann
2019-01-29 17:12 Mikle Kolyada
2019-01-24 22:22 Thomas Deutschmann
2019-01-24 21:43 Sergei Trofimovich
2019-01-23 21:12 Sergei Trofimovich
2019-01-23 21:01 Sergei Trofimovich
2019-01-23 19:29 Sergei Trofimovich
2018-09-23  1:27 Michael Orlitzky
2018-06-19 12:55 Thomas Deutschmann
2018-03-03 21:07 Sergei Trofimovich
2017-12-16  8:20 Tobias Klausmann
2017-11-25 20:59 Sergei Trofimovich
2017-11-18 17:59 Sergei Trofimovich
2017-11-17 11:18 Tobias Klausmann
2017-11-15  2:16 Michael Orlitzky
2017-10-22 19:59 Michael Orlitzky
2017-07-23 14:05 Michael Orlitzky
2017-03-30 22:14 Michael Orlitzky
2016-12-11 17:11 Michael Orlitzky
2016-12-11 17:11 Michael Orlitzky
2016-08-07  0:40 Michael Orlitzky
2015-10-05 13:52 Julian Ospald
2015-08-31 14:44 Michael Orlitzky
2015-08-31 14:13 Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1669850827.51148f5256d4c1d10138f967a884a6f7aa58fdca.mjo@gentoo \
    --to=mjo@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox