logrotate fix incomplete
This fix: https://git.alpinelinux.org/aports/commit/?id=ec39fd2b2f64fde0319c4b127749e7d84c3027aa
is incomplete, in the patch there is a spec file change:
+-%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status
++%ghost %attr(0640, root, root) %verify(not size md5 mtime) %{_localstatedir}/lib/logrotate.status
In Alpine this must be handled with a post-install script or something like that.
Result of this missing is this error from logrotate
error: state file /var/lib/logrotate.status is world-readable and thus can be locked from other unprivileged users. Skipping lock acquisition...