Red Hat Bugzilla – Bug 1327326
rpm -V tomcat fails on /var/log/tomcat/catalina.out
Last modified: 2016-11-03 17:11:51 EDT
Description of problem: When the command `rpm -V tomcat` is run, the verification test run on /var/log/tomcat/catalina.out fails. The PID file also fails because of the change in mtime and probably should be ignored also. Version-Release number of selected component (if applicable): tomcat-7.0.54-3.el7.noarch How reproducible: Always Steps to Reproduce: 1. Install tomcat on RHEL 7 2. Start the tomcat service 3. # rpm -V tomcat Actual results: S.5....T. /var/log/tomcat/catalina.out .......T. /var/run/tomcat.pid Expected results: Additional info: Catalina.out and the pid file should pass verification, or not be included.
This is a very minor issue that can be resolved with a spec update. Something like what was done on the upstream bug (except I don't think the PID file is affected in RHEL tomcat): --- tomcat.spec +++ tomcat.spec @@ -538,8 +538,8 @@ fi %defattr(0664,tomcat,root,0770) %attr(0770,tomcat,root) %dir %{logdir} %defattr(0664,root,tomcat,0770) -%attr(0660,tomcat,tomcat) %{logdir}/catalina.out -%attr(0644,tomcat,tomcat) %{_localstatedir}/run/%{name}.pid +%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out +%attr(0644,tomcat,tomcat) %verify(not size md5 mtime) %{_localstatedir}/run/%{name}.pid %attr(0770,root,tomcat) %dir %{cachedir} %attr(0770,root,tomcat) %dir %{tempdir} %attr(0770,root,tomcat) %dir %{workdir}
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2599.html