diff --git a/logrotate-3.7.8-devnull.patch b/logrotate-3.7.8-devnull.patch new file mode 100644 index 0000000..b39a1ef --- /dev/null +++ b/logrotate-3.7.8-devnull.patch @@ -0,0 +1,11 @@ +diff -up logrotate-3.7.8/examples/logrotate.cron.devnull logrotate-3.7.8/examples/logrotate.cron +--- logrotate-3.7.8/examples/logrotate.cron.devnull 2009-09-17 11:29:19.000000000 +0200 ++++ logrotate-3.7.8/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]" diff --git a/logrotate.spec b/logrotate.spec index ae02f96..f078a49 100644 --- a/logrotate.spec +++ b/logrotate.spec @@ -1,12 +1,13 @@ Summary: Rotates, compresses, removes and mails system log files Name: logrotate Version: 3.7.8 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL+ Group: System Environment/Base Source: https://fedorahosted.org/releases/l/o/logrotate/logrotate-%{version}.tar.gz Patch1: logrotate-3.7.7-curdir2.patch Patch2: logrotate-3.7.7-toolarge.patch +Patch3: logrotate-3.7.8-devnull.patch Requires: coreutils >= 5.92 libsepol libselinux popt BuildRequires: libselinux-devel popt-devel @@ -27,6 +28,7 @@ log files on your system. %setup -q %patch1 -p1 -b .curdir %patch2 -p1 -b .toolarge +%patch3 -p1 -b .devnull %build make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" WITH_SELINUX=yes @@ -56,6 +58,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 3.7.8-3 +- fix #542538 - logrotate seems to hang every few days. + * Wed Feb 25 2009 Fedora Release Engineering - 3.7.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild