diff --git a/gzip-1.8-deprecate_netstat.patch b/gzip-1.8-deprecate_netstat.patch new file mode 100644 index 0000000..4a39204 --- /dev/null +++ b/gzip-1.8-deprecate_netstat.patch @@ -0,0 +1,13 @@ +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' + data_=` (eval "$cmds_") 2>&1 | gzip ` + + # Ensure that $data_ has length at least 50+$n_ diff --git a/gzip.changes b/gzip.changes index 4984c94..6f958de 100644 --- a/gzip.changes +++ b/gzip.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 2 14:30:50 UTC 2018 - kstreitova@suse.com + +- add gzip-1.8-deprecate_netstat.patch to get rid off deprecated + 'netstat -n' command in tests/init.sh script + ------------------------------------------------------------------- Fri Dec 1 16:38:19 UTC 2017 - kstreitova@suse.com diff --git a/gzip.spec b/gzip.spec index e096c3d..bd06a0f 100644 --- a/gzip.spec +++ b/gzip.spec @@ -1,7 +1,7 @@ # # spec file for package gzip # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -35,6 +35,8 @@ Patch6: zdiff.diff Patch7: xz_lzma.patch Patch8: manpage-no-date.patch Patch9: gzip-1.8-fix_unpack_EOB_check.patch +# PATCH-FIX-UPSTREAM kstreitova@suse.com -- remove deprecated 'netstat' command +Patch10: gzip-1.8-deprecate_netstat.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: makeinfo @@ -58,6 +60,7 @@ times. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build export CFLAGS="%{optflags} -fomit-frame-pointer \