[Bug 1173319] New: Move /etc/logrotate.d/* to /usr/etc/logrotate.d
https://bugzilla.suse.com/show_bug.cgi?id=1173319 Bug ID: 1173319 Summary: Move /etc/logrotate.d/* to /usr/etc/logrotate.d Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: sndirsch@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I'm currently working on the config file switch /etc --> /usr/etc (find Details on https://en.opensuse.org/openSUSE:Packaging_UsrEtc) and now I'm wondering what should be done with /etc/logrotate.d/* files. Thorsten Kukuk: Somebody need to rewrite logrotate first. ;-) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c1
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1173319
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1173319
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1173319
Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c2
--- Comment #2 from Pedro Monreal Gonzalez
https://bugzilla.suse.com/show_bug.cgi?id=1173319
Pedro Monreal Gonzalez
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c3
--- Comment #3 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c4
--- Comment #4 from Pedro Monreal Gonzalez
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c5
--- Comment #5 from Stefan Dirsch
We were discussing this in the packaging team but I'm not yet sure how to do it, especially with the files in /etc/logrotate.d/*. Lots of packages would need to be adapted with this change.
So what? I would be happy to adjsut all affected files of my pacckages.
Variant 1 should be applied here.
Yes, of course. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c6
--- Comment #6 from Pedro Monreal Gonzalez
(In reply to Pedro Monreal Gonzalez from comment #4)
We were discussing this in the packaging team but I'm not yet sure how to do it, especially with the files in /etc/logrotate.d/*. Lots of packages would need to be adapted with this change.
So what? I would be happy to adjsut all affected files of my pacckages.
From [https://build.opensuse.org/package/view_file/Base:System/logrotate/logrotate...], there is this directory where packages write their rotation info: # RPM packages drop log rotation information into this directory include /etc/logrotate.d Also the systemd files, to which .conf file should they point to? ExecStart=/usr/sbin/logrotate /etc/logrotate.conf
Variant 1 should be applied here.
Yes, of course.
-- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c7
--- Comment #7 from Stefan Dirsch
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c14
Stefan Schubert
Sep 07 04:45:13 Mobile-PC sh[1185]: error: zypp-history.lr:1 duplicate log entry for /var/log/zypp/hist> Sep 07 04:45:13 Mobile-PC sh[1185]: error: found error in file zypp-history.lr, skipping Could you please attach your zypp-history.lr from /etc AND /usr/etc ?
-- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c15
Stefan Schubert
(In reply to Gene Snider from comment #12)
Sep 07 04:45:13 Mobile-PC sh[1185]: error: zypp-history.lr:1 duplicate log entry for /var/log/zypp/hist> Sep 07 04:45:13 Mobile-PC sh[1185]: error: found error in file zypp-history.lr, skipping Could you please attach your zypp-history.lr from /etc AND /usr/etc ?
Not needed anymore. I can reproduce this bug. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c16
Stefan Schubert
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c18
David Anes
https://bugzilla.suse.com/show_bug.cgi?id=1173319
https://bugzilla.suse.com/show_bug.cgi?id=1173319#c19
Stefan Schubert
While performing an update to latest version of logrotate in Factory, I found a new feature is implemented: * https://github.com/logrotate/logrotate/pull/473
@Stefan, do you mind to review the patch you introduced[1] (or remove it entirely) from TW by using that feature? I prefer to ask than breaking something that took so long to fix.
Thanks.
[1] https://build.opensuse.org/package/rdiff/Base:System/ logrotate?linkrev=base&rev=103
The question is how LOG_FLAG_IGNOREDUPLICATES is set. If this flag is set when ENABLE_VENDORDIR has also been set then there is a chance to drop the patch because you can manage it in the configure.ac script outside of the code. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com