Subject: bug#29947: closed (Re: bug#29947: Replace 'netstat' with 'ss')

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 03 Jan 2018 03:08:02 +0000

Your bug report

#29947: Replace 'netstat' with 'ss'

which was filed against the gzip package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
29947: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29947
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#29947: Replace 'netstat' with 'ss'
From: Paul Eggert <[email-masked]>
To: Kristýna Streitová <[email-masked]>, [email-masked]
Date: Tue, 2 Jan 2018 19:07:22 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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 <[email-masked]>
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  <[email-masked]>
+
+	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  <[email-masked]>
 
 	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

Subject: Replace 'netstat' with 'ss'
From: Kristýna Streitová <[email-masked]>
To: [email-masked]
Date: Tue, 2 Jan 2018 16:27:50 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Since 'netstat' command (included in the 'net-tools' package) is
deprecated, we should switch from 'netstat -n' to 'ss -n' in
tests/init.sh file.

I'm adding a simple patch:

Index: gzip-1.8/tests/init.sh
===================================================================
--- gzip-1.8.orig/tests/init.sh
+++ gzip-1.8/tests/init.sh
@@ -525,7 +525,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; ss -n'
   data_=` (eval "$cmds_") 2>&1 | gzip `

   # Ensure that $data_ has length at least 50+$n_

Best regards,
Kristyna Streitova