diff --git a/0001-logrotate-Fix-warning-file-size-changed-while-zippin.patch b/0001-logrotate-Fix-warning-file-size-changed-while-zippin.patch new file mode 100644 index 0000000..58f5996 --- /dev/null +++ b/0001-logrotate-Fix-warning-file-size-changed-while-zippin.patch @@ -0,0 +1,31 @@ +From 60747736361479fb372ebf4e97477ce0bd6dbced Mon Sep 17 00:00:00 2001 +From: Lukas Slebodnik +Date: Fri, 9 Jan 2015 10:50:59 +0100 +Subject: [PATCH] logrotate: Fix warning file size changed while zipping + +Postpone compression of the previous log file to the next rotation cycle. +This only has effect when used in combination with compress. We need to use it +because we cannot tell sssd to close log files and thus sssd processes might +continue writing to the previous log file for some time. + +Resolves: +https://fedorahosted.org/sssd/ticket/2547 +--- + src/examples/logrotate | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/examples/logrotate b/src/examples/logrotate +index 9df721f2a989a3f64e20097de3117587288f5039..ecf0c6102873e08dede3c6e7909fcf2a6379d4cf 100644 +--- a/src/examples/logrotate ++++ b/src/examples/logrotate +@@ -5,6 +5,7 @@ + sharedscripts + rotate 2 + compress ++ delaycompress + postrotate + /bin/kill -HUP `cat /var/run/sssd.pid 2>/dev/null` 2> /dev/null || true + endscript +-- +2.1.0 + diff --git a/sssd.spec b/sssd.spec index 830a27c..66b28c5 100644 --- a/sssd.spec +++ b/sssd.spec @@ -25,7 +25,7 @@ Name: sssd Version: 1.12.3 -Release: 1%{?dist} +Release: 2%{?dist} Group: Applications/System Summary: System Security Services Daemon License: GPLv3+ @@ -34,6 +34,7 @@ Source0: https://fedorahosted.org/released/sssd/%{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) ### Patches ### +Patch0001: 0001-logrotate-Fix-warning-file-size-changed-while-zippin.patch ### Dependencies ### Requires: sssd-common = %{version}-%{release} @@ -379,6 +380,7 @@ Summary: The SSSD D-Bus responder helper library Group: Development/Libraries License: GPLv3+ Requires: dbus-libs +Requires: sssd-dbus = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -880,6 +882,11 @@ if [ $1 -eq 0 ]; then fi %changelog +* Fri Jan 09 2015 Lukas Slebodnik - 1.12.3-2 +- Resolves: rhbz#1164156 - libsss_simpleifp should pull sssd-dbus +- Resolves: rhbz#1179379 - gzip: stdin: file size changed while + zipping when rotating logfile + * Thu Jan 08 2015 Lukas Slebodnik - 1.12.3-1 - New upstream release 1.12.3 - https://fedorahosted.org/sssd/wiki/Releases/Notes-1.12.3