Red Hat Bugzilla – Bug 483044
Generation of /var/log/rpmpkgs cannot be turned off
Last modified: 2009-05-14 04:05:30 EDT
Created attachment 330354 [details]
Patch against /etc/cron.daily/rpm
Description of problem:
The rpm package automatically deploys /etc/cron.daily/rpm, which in turn triggers /bin/rpm -qa. Since this file is not declared as %config in the spec file, there seems to be no safe way to disable this.
Since the rpm bdb backend is known to cause deadlocks from time to time (especially on concurrent query/update of the package database), automatically firing rpm -qa is not only annoying but also potentially dangerous (for instance if it fires during yum upgrade).
Version-Release number of selected component (if applicable):
Tested on rpm-4.6.0-0.rc3.1.fc10.i386, but in actually applies to all versions, at least from fedora 8 up to current versions.
Suggest using /etc/sysconfig/rpm (or something similar) to define a variable that enables/disables generation. Suggested patch attached.
Created attachment 330355 [details]
Thanks for the patch, but instead of adding rather RH-specific /etc/sysconfig/ stuff into the scripts, the cronjob is split now into a sub-package in rawhide so you can just 'rpm -e rpm-cron' if dont want it. Not going to happen for F10 though.