Hello community,

here is the log from the commit of package logrotate for openSUSE:Factory 
checked in at 2016-11-18 21:58:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/logrotate (Old)
 and      /work/SRC/openSUSE:Factory/.logrotate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "logrotate"

Changes:
--------
--- /work/SRC/openSUSE:Factory/logrotate/logrotate.changes      2016-10-20 
23:05:15.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.logrotate.new/logrotate.changes 2016-11-18 
21:59:00.000000000 +0100
@@ -1,0 +2,9 @@
+Sat Nov 12 22:08:25 CET 2016 - [email protected]
+
+- Move logrotate.status to /var/lib/misc following FHS/LSB and
+  making implementing read-only root filesystem much easier.
+  [FATE#322036]
+- Add patch:
+  * logrotate-var-lib-misc.patch
+
+-------------------------------------------------------------------

New:
----
  logrotate-var-lib-misc.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ logrotate.spec ++++++
--- /var/tmp/diff_new_pack.RuEpYW/_old  2016-11-18 21:59:01.000000000 +0100
+++ /var/tmp/diff_new_pack.RuEpYW/_new  2016-11-18 21:59:01.000000000 +0100
@@ -34,6 +34,11 @@
 Patch5:         logrotate-manpage_config_clarification.patch
 # PATCH-FIX-UPSTREAM logrotate-fix-test62_with_bash-4.4.patch 
gh#logrotate/logrotate#66 [email protected] -- Fix test suite in combination 
with bash 4.4
 Patch6:         logrotate-fix-test62_with_bash-4.4.patch
+# PATCH-FEATURE-SLE logrotate-var-lib-misc.patch FATE#322036:
+# According to FHS/LSB, this should be in /var/lib/misc. Which
+# would allow a read-only root filesystem without breaking snapshots,
+# rollback and transactional updates
+Patch7:         logrotate-var-lib-misc.patch
 BuildRequires:  acl
 BuildRequires:  libacl-devel
 BuildRequires:  libselinux-devel
@@ -60,6 +65,7 @@
 %patch3
 %patch5 -p1
 %patch6 -p1
+%patch7 -p0
 
 %build
 %configure
@@ -87,6 +93,10 @@
    echo "Saving old logrotate system configuration"
    mv -v %{_sysconfdir}/logrotate.d/aaa_base 
%{_sysconfdir}/logrotate.d.aaa_base.save
 fi
+# Move /var/lib/logrotate.status
+if [ -f /var/lib/logrotate.status -a !-f /var/lib/misc/logrotate.status ]; then
+  mv /var/lib/logrotate.status /var/lib/misc/logrotate.status ||:
+fi
 
 %service_add_post %{name}.service %{name}.timer
 

++++++ logrotate-var-lib-misc.patch ++++++
--- config.h
+++ config.h    2016/11/12 21:04:31
@@ -43,5 +43,5 @@
 #endif
 
 #ifndef STATEFILE
-#define STATEFILE "/var/lib/logrotate.status"
+#define STATEFILE "/var/lib/misc/logrotate.status"
 #endif
--- logrotate.8
+++ logrotate.8 2016/11/12 21:00:05
@@ -65,7 +65,7 @@
 \fB\-s\fR, \fB\-\-state <statefile>\fR
 Tells \fBlogrotate\fR to use an alternate state file.  This is useful
 if logrotate is being run as a different user for various sets of
-log files.  The default state file is \fI/var/lib/logrotate.status\fR.
+log files.  The default state file is \fI/var/lib/misc/logrotate.status\fR.
 
 .TP
 \fB\-\-usage\fR

Reply via email to