rpms/time/devel time-1.7-verbose.patch, NONE, 1.1 time.spec, 1.22, 1.23

Roman Rakus (rrakus) fedora-extras-commits at redhat.com
Tue Mar 4 13:05:04 UTC 2008


Author: rrakus

Update of /cvs/extras/rpms/time/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2719

Modified Files:
	time.spec 
Added Files:
	time-1.7-verbose.patch 
Log Message:
Less nonverbose output

time-1.7-verbose.patch:

--- NEW FILE time-1.7-verbose.patch ---
--- time-1.7/time.c.verbose	Fri Jun 14 05:38:21 1996
+++ time-1.7/time.c	Sun Nov  4 16:21:09 2001
@@ -327,6 +327,8 @@
   unsigned long r;		/* Elapsed real milliseconds.  */
   unsigned long v;		/* Elapsed virtual (CPU) milliseconds.  */
 
+  if (verbose)
+  {
   if (WIFSTOPPED (resp->waitstatus))
     fprintf (fp, "Command stopped by signal %d\n",
 	     WSTOPSIG (resp->waitstatus));
@@ -336,6 +338,7 @@
   else if (WIFEXITED (resp->waitstatus) && WEXITSTATUS (resp->waitstatus))
     fprintf (fp, "Command exited with non-zero status %d\n",
 	     WEXITSTATUS (resp->waitstatus));
+   }
 
   /* Convert all times to milliseconds.  Occasionally, one of these values
      comes out as zero.  Dividing by zero causes problems, so we first


Index: time.spec
===================================================================
RCS file: /cvs/extras/rpms/time/devel/time.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- time.spec	19 Feb 2008 10:43:13 -0000	1.22
+++ time.spec	4 Mar 2008 13:04:13 -0000	1.23
@@ -1,12 +1,13 @@
 Summary: A GNU utility for monitoring a program's use of system resources
 Name: time
 Version: 1.7
-Release: 32%{?dist}
+Release: 33%{?dist}
 License: GPLv2+
 Group: Applications/System
 Url: http://www.gnu.org/software/time/
 Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}/%{name}-%{version}.tar.gz
 Patch:  time-1.7-destdir.patch
+Patch1: time-1.7-verbose.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
@@ -19,6 +20,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 echo "ac_cv_func_wait3=\${ac_cv_func_wait3='yes'}" >> config.cache
@@ -49,6 +51,9 @@
 %{_infodir}/time.info*
 
 %changelog
+* Tue Mar  4 2008 Roman Rakus <rrakus at redhat.cz> - 1.7-33
+- Added patch from JW (redhat at zacglen.com), less nonverbose output
+
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1.7-32
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list