Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1064355 - Useless explicit dependency on %{scl}-runtime?
Summary: Useless explicit dependency on %{scl}-runtime?
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: doc-Packaging_Guide
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 1.2
Assignee: Petr Kovar
QA Contact:
Depends On: 1054824
TreeView+ depends on / blocked
Reported: 2014-02-12 13:17 UTC by Petr Pisar
Modified: 2015-08-04 15:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-08-04 15:01:16 UTC
Target Upstream Version:

Attachments (Terms of Use)

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.

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