rpms/logrotate/F-10 logrotate-3.7.7-devnull.patch, NONE, 1.1 logrotate.spec, 1.74, 1.75

Daniel Novotny dnovotny at fedoraproject.org
Tue Dec 1 10:20:11 UTC 2009


Author: dnovotny

Update of /cvs/extras/rpms/logrotate/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20346

Modified Files:
	logrotate.spec 
Added Files:
	logrotate-3.7.7-devnull.patch 
Log Message:
fix #542538


logrotate-3.7.7-devnull.patch:
 logrotate.cron |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE logrotate-3.7.7-devnull.patch ---
diff -up logrotate-3.7.8/examples/logrotate.cron.devnull logrotate-3.7.8/examples/logrotate.cron
--- logrotate-3.7.7/examples/logrotate.cron.devnull	2009-09-17 11:29:19.000000000 +0200
+++ logrotate-3.7.7/examples/logrotate.cron	2009-09-17 11:29:40.000000000 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-/usr/sbin/logrotate /etc/logrotate.conf
+/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1
 EXITVALUE=$?
 if [ $EXITVALUE != 0 ]; then
     /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"


Index: logrotate.spec
===================================================================
RCS file: /cvs/extras/rpms/logrotate/F-10/logrotate.spec,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -p -r1.74 -r1.75
--- logrotate.spec	19 May 2008 10:30:05 -0000	1.74
+++ logrotate.spec	1 Dec 2009 10:20:11 -0000	1.75
@@ -1,7 +1,7 @@
 Summary: Rotates, compresses, removes and mails system log files
 Name: logrotate
 Version: 3.7.7
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPL+
 Group: System Environment/Base
 Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz
@@ -9,6 +9,7 @@ Source: https://fedorahosted.org/release
 Requires: coreutils >= 5.92 libsepol libselinux popt
 BuildRequires: libselinux-devel popt-devel
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: logrotate-3.7.7-devnull.patch
 
 %description
 The logrotate utility is designed to simplify the administration of
@@ -23,6 +24,7 @@ log files on your system.
 
 %prep
 %setup -q
+%patch0 -p1 -b .devnull
 
 %build
 make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes
@@ -52,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
 
 %changelog
+* Tue Dec 01 2009 Daniel Novotny <dnovotny at redhat.com> 3.7.7-2
+- fix #542538 -  logrotate seems to hang every few days
+
 * Mon May 19 2008 Tomas Smetana <tsmetana at redhat.com> 3.7.7-1
 - new upstream version
 




More information about the fedora-extras-commits mailing list