Bug 235353 - Rpm unsets verify bit for %doc
Rpm unsets verify bit for %doc
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Depends On:
  Show dependency treegraph
Reported: 2007-04-05 08:04 EDT by Jonathan Dieter
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-16 11:18:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jonathan Dieter 2007-04-05 08:04:54 EDT
Description of problem:
rpm unsets the verify bit for any %docs in the rpm.  This is a problem when
creating deltarpms as deltarpm stores the whole file if the verify bit is off,
and is particularly painful when trying to make a deltarpm of something like
samba which contains 13M of documentation.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install yum-metadata-parser
2. Run rpm -q --qf "[%{RPMTAG_FILEVERIFYFLAGS} %{FILENAMES}\n]" yum-metadata-parser
Actual results:
-1 /usr/lib/python2.4/site-packages/_sqlitecache.so
-1 /usr/lib/python2.4/site-packages/sqlitecachec.py
-1 /usr/lib/python2.4/site-packages/sqlitecachec.pyc
-1 /usr/lib/python2.4/site-packages/sqlitecachec.pyo
0 /usr/share/doc/yum-metadata-parser-1.0.3
0 /usr/share/doc/yum-metadata-parser-1.0.3/AUTHORS
0 /usr/share/doc/yum-metadata-parser-1.0.3/ChangeLog
0 /usr/share/doc/yum-metadata-parser-1.0.3/README

Expected results:
-1 /usr/lib/python2.4/site-packages/_sqlitecache.so
-1 /usr/lib/python2.4/site-packages/sqlitecachec.py
-1 /usr/lib/python2.4/site-packages/sqlitecachec.pyc
-1 /usr/lib/python2.4/site-packages/sqlitecachec.pyo
-1 /usr/share/doc/yum-metadata-parser-1.0.3
-1 /usr/share/doc/yum-metadata-parser-1.0.3/AUTHORS
-1 /usr/share/doc/yum-metadata-parser-1.0.3/ChangeLog
-1 /usr/share/doc/yum-metadata-parser-1.0.3/README
Comment 1 Jeff Johnson 2007-04-06 22:07:31 EDT
Actually rpm never sets the verify bits for %doc files, mainly because the %verify() attribute
does not scope properly across %doc files.

Even if the behavior were fixed in rpm this very moment, there are zillions
of packages with %doc files with no %verifyflags, so you are likely going to
have to change deltarpm's behavior no matter what.
Comment 2 Jeff Johnson 2007-04-10 21:16:04 EDT
Yes, verify flags for %doc were not initialized correctly.

Fixed in rpm cvs, will be in rpm-4.4.9-0.4 when built.

Comment 3 Jonathan Dieter 2007-07-07 08:20:12 EDT
Not fixed in rpm in Rawhide.  Jeff, I appreciate the fix in 4.4.9, but,
unfortunately, we've got 4.4.2 in F7 and in Rawhide.  Paul, do you mind
fixing this in as we're pushing to publish deltarpms in F8.
Comment 4 Jonathan Dieter 2007-07-07 08:23:04 EDT
Sorry, my mistake.  It is fixed in  Feel free to ignore the last comment

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