As of logrotate-3.8.0, there is a new option in conf files to allow rotating of files in parent directories that are writable by a group other than group root. Since elog-save-summary rotates a files that is writable by group portage, it needs to be modified or logrotate-3.8.0 will refuse to rotate it. The following line needs to be added:
su portage portage
This makes the actual rotation run as user/group portage.
(In reply to comment #0)
> su portage portage
I don't see any mention of this option in the logrotate-3.7.9 man page. Do you know if older versions support it? If not, I suppose that we can use has_version to conditionally apply a patch.
Good question. 2.7.9 will print a warning and ignore the line, but still rotate the file.
Since 2.8.0 is a security update, it's likely to go stable soon, and 2.7.9 will be removed, so it won't be an issue for very long, I believe.
Thanks, this is fixed in git:
This is fixed in 126.96.36.199 and 2.2.0_alpha44.
*** Bug 378037 has been marked as a duplicate of this bug. ***
*** Bug 378451 has been marked as a duplicate of this bug. ***