Bug #2156 RPM: /etc/logrotate.d/mysql should be %config
Submitted: 18 Dec 2003 7:33 Modified: 22 Dec 2003 6:05
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:4.0.14 OS:Linux (Linux/i386)
Assigned to: Lenz Grimmer CPU Architecture:Any

[18 Dec 2003 7:33] [ name withheld ]
The rpm spec file has /etc/my.cnf set as a config file:
   %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf

But /etc/logrotate.d/mysql is not set as a config file:
   %attr(644, root, root) %{_sysconfdir}/logrotate.d/mysql

This is inconvenient because logrotate settings are very much a local CM preference. 

For instance, I want my log file to be /var/log/mysqld.log (not /var/lib/mysql/mysqld.log), and I want "nocompress" instead of "compress" for old log files.  I don't want `rpm -V MySQL-server` to fail just because I've made local customizations to this file.

How to repeat:

Suggested fix:
I would like to see:

   %ghost %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql


[22 Dec 2003 6:05] Lenz Grimmer
Thanks, this is now fixed and will be part of future releases (4.0.18 and onwards)

ChangeSet@1.1674, 2003-12-22 14:56:06+01:00, lenz@mysql.com
   - marked /etc/logrotate.d/mysql as a config file in the RPM spec file