Red Hat Bugzilla – Bug 250588
Build hangs in network tests
Last modified: 2008-04-09 15:17:10 EDT
Description of problem:
nagios-plugins buildprocess executes
| /bin/ping 127.0.0.1 -n 1 | egrep -i ^round-trip|^rtt
during %configure and 'make'. Fedora's 'ping' does not have an argument for -n
and command hangs with
| # ping 127.0.0.1 -n 1
| PING 1 (0.0.0.1) 56(124) bytes of data.
| ... C-c ...
| --- 1 ping statistics ---
| 919 packets transmitted, 0 received, 100% packet loss, time 918037ms
In a restrictive environment like a buildsystem, such network access is
prohibited. When packets will be dropped, this command stays forever.
Beside this, builds should not make network tests.
Version-Release number of selected component (if applicable):
Indeed the buildsystem makes no guarantee of network being available. it should
be assumed that it is not.
Ok, this is fixed. I've got a patch ready I'll try to send it upstream. Let me
know if this is an acceptable fix.
Basically it tries the network and if it fails, it fails and doesn't affect the
package (basically I added a -w 5 to the pings it tries)
if thats not acceptable please re-open the ticket and I'll re-think the patch