Bug 1049815

Summary: scl_files macro does not contain .../usr/share/man/* directories
Product: Red Hat Enterprise Linux 7 Reporter: Jan Kaluža <jkaluza>
Component: scl-utilsAssignee: Jan Zeleny <jzeleny>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: drieden, sgehwolf, vondruch
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-24 09:52:15 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:
Bug Depends On:    
Bug Blocks: 1040470, 1073458    
Attachments:
Description Flags
Minimal reproducer SRPM illustrating this issue. none

Description Jan Kaluža 2014-01-08 09:44:07 UTC
This is follow up of Bug 1040470.

"../usr/share/man/man8" (and other directories in "man" directory) is not owned by -runtime subpackage in RHEL7, but it is in RHEL6. Directories created and owned by this package are defined using %scl_files which comes from scl-utils-build.

I'm able to reproduce this problem with more collections in RHEL7 (at least httpd24 and ruby193).

This leads to problem when man directories are not removed when collection is uninstalled.

Comment 2 Severin Gehwolf 2014-03-04 11:48:33 UTC
The same applies for java directories in an scl.

Comment 3 Severin Gehwolf 2014-03-04 11:56:28 UTC
Created attachment 870371 [details]
Minimal reproducer SRPM illustrating this issue.

Comment 4 Severin Gehwolf 2014-03-04 12:03:06 UTC
Steps to reproduce:

1. Take SRPM from comment 3
2. $ rpm -i foo-collection1-1.1-1.el7.src.rpm
3. $ cd ~/rpmbuild/SPECS
4. $ rpmbuild -bb foo-collection-metapackage.spec

Step 4 on RHEL-6 produces an RPM with proper directory ownership (expected results):
$ rpm -q scl-utils
scl-utils-20120927-8.el6_5.x86_64
$ rpm -ql -p ~/rpmbuild/RPMS/x86_64/foo-collection1-runtime-1.1-1.el6.x86_64.rpm | egrep '/usr/share/man/man7$|java'
/opt/rh/foo-collection1/root/usr/lib/java
/opt/rh/foo-collection1/root/usr/share/java
/opt/rh/foo-collection1/root/usr/share/javadoc
/opt/rh/foo-collection1/root/usr/share/man/man7

Step 4 on a RHEL-7 box produces (actual results):
$ rpm -q scl-utils
scl-utils-20130529-5.el7.x86_64
$ rpm -ql -p ~/rpmbuild/RPMS/x86_64/foo-collection1-runtime-1.1-1.el7.x86_64.rpm | egrep '/usr/share/man/man7$|java'
/opt/rh/foo-collection1/root/usr/lib/java

Comment 7 RHEL Program Management 2014-03-22 06:17:31 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 8 Vít Ondruch 2014-03-24 09:52:15 UTC
The issue is more broader then just manpages. Bug 1072319 describes it better.

*** This bug has been marked as a duplicate of bug 1072319 ***