Bug 1304453 - rpm verify does not work with multilib packages
Summary: rpm verify does not work with multilib packages
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpm
Version: 6.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-03 16:30 UTC by Patrik Kis
Modified: 2016-02-04 11:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-04 10:39:16 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1227719 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1227719

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.


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