I have been investigating some problems with automatically generated provides in scl-based packages .
The use case is:
- I have a scl-based package that contains some libraries
- these libraries are automatically included in package's Provides
- the problem is that some system packages might provide the same library and there might be an application that requires the library
- in such case yum can select for installation either package that provides the library
- in case it selects the scl-based package, the application will very likely misbehave, as it will most likely not link with the scl-based library due to non-standard paths
Now with this use case in mind, we have tried to come up with a solution how to prefix the library symbol in package's Provides. On RHEL7 this is doable by utilizing %__provides_exclude_from macro. However rpm on RHEL6 doesn't support the macro and it is therefore impossible to prefix the library symbol.
We would like to document the situation and how to do the prefix (see  and a spec file in  for details). Also please document that this doesn't work for RHEL < 7.