Thanks. I installed the attached slightly-simpler patch into Gnulib, and it should appear in the next Gzip release.
From 3df2ddf98eebfd6b3921e6a7475fcded0a75a6f9 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Tue, 2 Jan 2018 19:05:05 -0800
Subject: [PATCH] test-framework-sh: avoid netstat
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Kristýna Streitová (Bug#29947).
* tests/init.sh (rand_bytes_): Stop using netstat, as it's
deprecated on SuSE and it's not that important anyway.
---
 ChangeLog     | 7 +++++++
 tests/init.sh | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index b0f01df..63be28d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-01-02  Paul Eggert  <egg...@cs.ucla.edu>
+
+       test-framework-sh: avoid netstat
+       Problem reported by Kristýna Streitová (Bug#29947).
+       * tests/init.sh (rand_bytes_): Stop using netstat, as it's
+       deprecated on SuSE and it's not that important anyway.
+
 2018-01-01  Jim Meyering  <meyer...@fb.com>
 
        update-copyright: add code to handle more special cases
diff --git a/tests/init.sh b/tests/init.sh
index 3a0e63c..13c1fa4 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -527,7 +527,7 @@ rand_bytes_ ()
   fi
 
   n_plus_50_=`expr $n_ + 50`
-  cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef; netstat -n'
+  cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef'
   data_=` (eval "$cmds_") 2>&1 | gzip `
 
   # Ensure that $data_ has length at least 50+$n_
-- 
2.7.4

Reply via email to