Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1304453

Summary: rpm verify does not work with multilib packages
Product: Red Hat Enterprise Linux 6 Reporter: Patrik Kis <pkis>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8CC: emrakova, lkardos
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-04 10:39:16 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 Patrik Kis 2016-02-03 16:30:23 UTC
Description of problem:
rpm -V <package> works just fine when only one package owns a file, but as soon as a file is owned by a multilib package it reports not errors when the file attributes changed.

Version-Release number of selected component (if applicable):
rpm-4.8.0-47.el6

How reproducible:
always

Steps to Reproduce:

# cat test.rpm
Name:       test
Version:    1
Release:    1%{?dist}
Summary:    test rpm

Group:      test
License:    GPL

%description
A test rpm.

%prep

%build

%install
mkdir $RPM_BUILD_ROOT/etc
touch $RPM_BUILD_ROOT/etc/test.rpm.file

%files
%verify(mode md5 size mtime group) /etc/test.rpm.file

%changelog

#
#
# rpmbuild -ba --target x86_64 test.rpm ; rpmbuild -ba --target i686 test.rpm

---%<---

# rpm -iv ~/rpmbuild/RPMS/x86_64/test-1-1.el6.x86_64.rpm 
Preparing packages for installation...
test-1-1.el6
# rpm -V test
# touch /etc/test.rpm.file
# rpm -V test
.......T.    /etc/test.rpm.file
# 
# rpm -ivh ~/rpmbuild/RPMS/i686/test-1-1.el6.i686.rpm 
Preparing...                ########################################### [100%]
   1:test                   ########################################### [100%]
# rpm -V test
# touch /etc/test.rpm.file
# rpm -V test
# 
# rpm -V test.x86_64
# rpm -V test.i686
#

Comment 1 Ľuboš Kardoš 2016-02-04 10:26:45 UTC
This is caused by [1]. ht current situation is not ideal but the situation before [1] was even worse.

There is also another problem with shared files:
# rpm -iv ~/rpmbuild/RPMS/x86_64/test-1-1.el6.x86_64.rpm
# rpm -V test
# rpm -ivh ~/rpmbuild/RPMS/i686/test-1-1.el6.i686.rpm
# rpm -V test
# rpm -e test-1-1.el6.i686
# rpm -V test
.......T.    /etc/test.rpm.file


[1] https://github.com/rpm-software-management/rpm/commit/9646a117c916022067fd07e4f6a7e25c5c9814de

Comment 2 Ľuboš Kardoš 2016-02-04 10:39:16 UTC
As I said this behaviour is not ideal but rpm behaves like this for long time so it would be better don't touch this behaviour at least for rhel-6. So I am closing this bug as wontfix.