Less nonverbose output
This commit is contained in:
parent
4a39644cc2
commit
d452263eb4
19
time-1.7-verbose.patch
Normal file
19
time-1.7-verbose.patch
Normal file
@ -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
|
||||
@ -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 <rrakus@redhat.cz> - 1.7-33
|
||||
- Added patch from JW (redhat@zacglen.com), less nonverbose output
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.7-32
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user