From d452263eb491b1f5b6bf1d89d5302ff2505d37d4 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Tue, 4 Mar 2008 13:04:13 +0000 Subject: [PATCH] Less nonverbose output --- time-1.7-verbose.patch | 19 +++++++++++++++++++ time.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 time-1.7-verbose.patch diff --git a/time-1.7-verbose.patch b/time-1.7-verbose.patch new file mode 100644 index 0000000..6eb012d --- /dev/null +++ b/time-1.7-verbose.patch @@ -0,0 +1,19 @@ +--- 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 diff --git a/time.spec b/time.spec index 1e969dd..5778a7b 100644 --- a/time.spec +++ b/time.spec @@ -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 @@ the results. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build echo "ac_cv_func_wait3=\${ac_cv_func_wait3='yes'}" >> config.cache @@ -49,6 +51,9 @@ fi %{_infodir}/time.info* %changelog +* Tue Mar 4 2008 Roman Rakus - 1.7-33 +- Added patch from JW (redhat@zacglen.com), less nonverbose output + * Tue Feb 19 2008 Fedora Release Engineering - 1.7-32 - Autorebuild for GCC 4.3