[procps/f15] fix #723164 - vmstat -t option does not work

Jaromír Cápík jcapik at fedoraproject.org
Thu Oct 27 15:11:37 UTC 2011


commit eea404dbdc02d123e04b009ca06e6d936c0d6cb7
Author: Jaromir Capik <jcapik at redhat.com>
Date:   Thu Oct 27 17:11:29 2011 +0200

    fix #723164 - vmstat -t option does not work

 procps-3.2.7-vmstat-timestamp-getopt.patch |   12 ++++++++++++
 procps.spec                                |   13 ++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/procps-3.2.7-vmstat-timestamp-getopt.patch b/procps-3.2.7-vmstat-timestamp-getopt.patch
new file mode 100644
index 0000000..2b2ad7f
--- /dev/null
+++ b/procps-3.2.7-vmstat-timestamp-getopt.patch
@@ -0,0 +1,12 @@
+diff -Naur procps-3.2.8-20110302git.orig/vmstat.c procps-3.2.8-20110302git/vmstat.c
+--- procps-3.2.8-20110302git.orig/vmstat.c	2011-10-27 16:55:48.000000000 +0200
++++ procps-3.2.8-20110302git/vmstat.c	2011-10-27 17:02:03.143241443 +0200
+@@ -615,7 +615,7 @@
+   char *partition = NULL;
+   int c;
+ 
+-  while((c = getopt(argc, argv, "VdafmDnp:S:s")) != EOF) switch(c) {
++  while((c = getopt(argc, argv, "VdafmDnp:S:st")) != EOF) switch(c) {
+       case 'V':
+ 	display_version();
+ 	exit(0);
diff --git a/procps.spec b/procps.spec
index caec2c2..52f8efd 100644
--- a/procps.spec
+++ b/procps.spec
@@ -3,13 +3,12 @@
 Summary: System and process monitoring utilities
 Name: procps
 Version: 3.2.8
-Release: 21.%{gitver}%{?dist}
+Release: 22.%{gitver}%{?dist}
 License: GPLv2+ and LGPLv2+
 Group: Applications/System
 URL: http://gitorious.org/procps
 Source: procps-%{version}-%{gitver}.tar.gz
 Source1: FAQ
-Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -71,6 +70,8 @@ Patch47: procps-pmap-smaps.patch
 Patch48: procps-3.2.8-w-envlength.patch
 #532668 - procps/top SWAP statistics makes no sense
 Patch49: procps-3.2.8-top-swap.patch
+#723164 - vmstat -t option does not work
+Patch50: procps-3.2.7-vmstat-timestamp-getopt.patch
 
 
 BuildRequires: ncurses-devel
@@ -137,6 +138,7 @@ System and process monitoring utilities development headers
 %patch47 -p1
 %patch48 -p1
 %patch49 -p1
+%patch50 -p1
 
 cp %SOURCE1 .
 
@@ -161,9 +163,6 @@ pushd %{buildroot}/%{_lib}
 ln -s libproc-%{version}.so libproc.so
 popd
 
-%clean
-rm -rf %{buildroot}
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
@@ -187,6 +186,10 @@ rm -rf %{buildroot}
 /%{_lib}/libproc.so
 
 %changelog
+* Thu Oct 27 2011 Jaromir Capik <jcapik at redhat.com> 3.2.8-22.20110302git
+- fix #723164 - vmstat -t option does not work
+- minor spec file changes according to the latest guidelines
+
 * Thu Jun 02 2011 Jan Görig <jgorig at redhat.com> 3.2.8-21.20110302git
 - added manual page fix to previous patch
 


More information about the scm-commits mailing list