Bug 1382315

Summary: mecabrc fails rpm -V in default install
Product: Red Hat Software Collections Reporter: Karel Volný <kvolny>
Component: rh-mysql57Assignee: Databases Maintanance List <databases-maint>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-mysql57CC: hhorak, jdornak, kanderso, lkuprova, qe-baseos-daemons
Target Milestone: alpha   
Target Release: 2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rh-mysql57-mecab-0.996-1.el6.8 rh-mysql57-mecab-0.996-1.el7.8 Doc Type: Known Issue
Doc Text:
Verification of the rh-mysql57-mecab package by using the "rpm -V" command fails. You can safely ignore an error message about modifications of the package content, it is a false positive.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-15 10:01:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Volný 2016-10-06 10:48:33 UTC
Description of problem:
The configuration file
/etc/opt/rh/rh-mysql57/mecabrc
should be marked with appropriate %verify directive in the specfile so that it does not fail the verification.
The file is getting modified on installation of rh-mysql57-mecab-ipadic so that it cannot match its properties stored in rpm even after clean install, without any user modification needed.

Version-Release number of selected component (if applicable):
rh-mysql57-mecab-0.996-1.el6.7
rh-mysql57-mecab-0.996-1.el7.7

How reproducible:
always

Steps to Reproduce:
1. yum install rh-mysql57-mecab-ipadic
2. rpm -V rh-mysql57-mecab

Actual results:
rh-mysql57-mecab.x86_64: /etc/opt/rh/rh-mysql57/mecabrc S.5....T. c

Expected results:
(no such error)

Additional info:
https://wiki.test.redhat.com/Faq/Tps/VerifyTest#Summary

Comment 1 Honza Horak 2016-10-06 20:49:38 UTC
The %verify would make also any further changes not being shown. What about this solution:
* hardcode the path in the config file during RPM build already
* introduce an RPM dependency on rh-mysql57-mecab-ipadic in rh-mysql57-mecab, since ipadic is the only dictionary we provide in the SCL

Does this sound fine?

Comment 3 Karel Volný 2016-10-17 13:03:16 UTC
(In reply to Honza Horak from comment #1)
> The %verify would make also any further changes not being shown.

I know, but that was agreed as being lesser of the two evils, see the link, ask the author about the source of this policy (I vaguely remember some customer complaints in the dark past) ...

> What about this solution:
> * hardcode the path in the config file during RPM build already
> * introduce an RPM dependency on rh-mysql57-mecab-ipadic in
> rh-mysql57-mecab, since ipadic is the only dictionary we provide in the SCL
> 
> Does this sound fine?

doesn't sound like a solution sustainable in the long-term ... how do we know that no one will want to install different dictionary in the future?

Comment 8 errata-xmlrpc 2016-11-15 10:01:44 UTC
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/RHEA-2016-2723.html