Bug 14531

Summary: RPM-4.0 --excludedocs
Product: [Retired] Red Hat Raw Hide Reporter: Art Boulatov <art>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: art
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-04-03 12:17:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Art Boulatov 2000-07-24 15:16:26 UTC
With the --excludedocs install option RPM-4.0  creates empty
%{name}-%{version} dirs under %{_defaultdocdir}:

rpm -i --excludedocs -vv sysvinit-2.78-1art.i686.rpm:

> D:    file: /usr/share/doc/sysvinit-2.78 action: create
> D:    file: /usr/share/doc/sysvinit-2.78/HISTORY action: skipnstate
> D:    file: /usr/share/doc/sysvinit-2.78/Install action: skipnstate
> D:    file: /usr/share/man/en/man1/last.1.bz2 action: skipnstate

There should be a 'skipnstate' instead of 'create' in the first line.

Comment 1 Jeff Johnson 2000-07-31 15:19:15 UTC
You're correct, this will be fixed in rpm-4.1.

Comment 2 Jeff Johnson 2000-09-16 14:43:26 UTC
This issue depends on whether a directory can/should have the attribute %doc.
The current
implementation of file attributes in rpm forbids directories to have either %doc
or %config
attributes because directories may contain files other than documentation (and
so should not
be excluded with --excludedocs). Identifying whether a directory has contents
other than
documentation is non-local and expensive (read: it's not just a single bit
test).

I've marked the code, but I don't believe that the implementation is justified
at this time.

Comment 3 Jeff Johnson 2001-04-03 13:45:27 UTC
Fixed in rpm CVS, should be in rpm-4.0.3-0.4 and later.