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 1114586

Summary: anaconda %package --excludedocs option not works
Product: Red Hat Enterprise Linux 7 Reporter: if_else <volcanowill>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: atodorov, clumens, ljozsa, volcanowill
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-19.31.83-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 14:01:42 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:
Attachments:
Description Flags
anaconda.log
none
anaconda.packaging.log
none
anaconda.program.log
none
syslog none

Description if_else 2014-06-30 12:35:15 UTC
Description of problem:


my ks.cfg

    %packages --excludedocs --nobase
    @core
    wget
    tmux
    %end

after install. /usr/share/doc has a lot of packags's document.

    [root@rhel7 share]# ll -l /usr/share/doc/|wc -l
    177

    [root@rhel7 share]# ll -l /usr/share/doc/|head
    total 704
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 acl-2.2.51
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 audit-2.3.3
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 authconfig-6.2.8
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 bash-4.2.45
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 bind-license-9.9.4
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 binutils-2.23.52.0.1
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 biosdevname-0.5.0
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 btrfs-progs-3.12
    drwxr-xr-x. 2 root root 4096 Jun 30 19:51 bzip2-libs-1.0.6

    [root@rhel7 share]# rpm -ql wget|grep doc
    /usr/share/doc/wget-1.14
    /usr/share/doc/wget-1.14/AUTHORS
    /usr/share/doc/wget-1.14/COPYING
    ...
    /usr/share/doc/wget-1.14/sample.wgetrc

    [root@rhel7 share]# rpm -ql tmux|grep doc
    /usr/share/doc/tmux-1.8
    /usr/share/doc/tmux-1.8/CHANGES
    /usr/share/doc/tmux-1.8/FAQ
    /usr/share/doc/tmux-1.8/TODO
    /usr/share/doc/tmux-1.8/examples
    ...
    /usr/share/doc/tmux-1.8/examples/tmux_backup.sh
    /usr/share/doc/tmux-1.8/examples/vim-keys.conf

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

    anconda 19.31.79-1

Comment 2 Brian Lane 2014-07-03 00:52:37 UTC
Please attach the logs from /tmp/*log as individual text/plain attachments.

Comment 3 if_else 2014-07-03 03:17:38 UTC
Created attachment 914337 [details]
anaconda.log

anaconda.log

Comment 4 if_else 2014-07-03 03:18:25 UTC
Created attachment 914338 [details]
anaconda.packaging.log

Comment 5 if_else 2014-07-03 03:18:48 UTC
Created attachment 914339 [details]
anaconda.program.log

Comment 6 if_else 2014-07-03 03:19:15 UTC
Created attachment 914340 [details]
syslog

Comment 7 if_else 2014-07-03 03:23:14 UTC
(In reply to bcl from comment #2)
> Please attach the logs from /tmp/*log as individual text/plain attachments.

hi, Brian. I have upload anaconda install logs.

Comment 8 David Shea 2014-07-03 13:03:19 UTC
excludedocs is (re)implemented in commit 9d0ae8841cb6fd6840f9c2495723cbca5e2b4fc1 on the master branch.

Comment 10 Alexander Todorov 2014-11-19 11:32:19 UTC
Using --excludedocs I see no files installed under /usr/share/doc but I see a bunch of empty directories. 

Chris,
can we not create these ?

Comment 11 Chris Lumens 2014-11-19 15:08:39 UTC
Those empty directories are likely a result of bugs in the packages - perhaps they're not marking things as %doc correctly.

Comment 12 Alexander Todorov 2014-11-20 08:15:25 UTC
(In reply to Chris Lumens from comment #11)
> Those empty directories are likely a result of bugs in the packages -
> perhaps they're not marking things as %doc correctly.

I've looked at few of the offending packages and their spec files contained 
%dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/some_file

and others which are installed but didn't create directories under /usr/share/doc only have
%doc some_file

in their specs.

Moving this one to VERIFIED and I'll open individual bugs against components which produce empty directories in /usr/share/doc.

Comment 13 Alexander Todorov 2014-11-20 09:54:59 UTC
QE reference:
https://lists.fedoraproject.org/pipermail/packaging/2014-November/010346.html

Comment 15 errata-xmlrpc 2015-03-05 14:01:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0312.html