Bug 1064355

Summary: Useless explicit dependency on %{scl}-runtime?
Product: Red Hat Software Collections Reporter: Petr Pisar <ppisar>
Component: doc-Packaging_GuideAssignee: Petr Kovar <pkovar>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: drieden, jhradile, kanderso, mcermak
Target Milestone: ---   
Target Release: 1.2   
Hardware: Unspecified   
OS: Unspecified   
URL: http://docs.fedoraproject.org/en-US/Fedora_Contributor_Documentation/1/html/Software_Collections_Guide/sect-Uninstalling_all_Software_Collection_directories.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-04 15:01:16 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: 1054824    
Bug Blocks:    

Description Petr Pisar 2014-02-12 13:17:23 UTC
2.10. Uninstalling all Software Collection directories reads:

> Keep in mind that the yum remove command does not uninstall directories
> provided by those Software Collection packages and subpackages that are
> removed after the Software Collection runtime subpackage is removed.
>
That could be true. However this sounds like a bug in yum/rpm.

> To ensure that all directories are uninstalled, make those packages and
> subpackages depend on the runtime subpackage.

Well, to use any package from a collection, one has to enable the collection first. So any collection package must transitively require the runtime subpackage.

> To do so, add the following
> line to the spec file of each of those packages and subpackages:

> %{?scl:Requires: %{scl}-runtime}

Therefore I consider adding the explicit dependency to only _some_ packages as false.

> Adding the above line ensures that all directories provided by those packages
> and subpackages are removed correctly as long as the runtime subpackage does
> not depend on any of those packages and subpackages.

Moreover I was told that yum/rpm does not work like that and that the explicit dependency does not help.