Bug 1304453 - rpm verify does not work with multilib packages
rpm verify does not work with multilib packages
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpm (Show other bugs)
6.8
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: packaging-team-maint
BaseOS QE Security Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-03 11:30 EST by Patrik Kis
Modified: 2016-02-04 06:44 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-02-04 05:39:16 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Patrik Kis 2016-02-03 11:30:23 EST
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 05:26:45 EST
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 05:39:16 EST
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.

Note You need to log in before you can comment on or make changes to this bug.