Bug 155301

Summary: RPM: support for Enhances, Suggests, Supplements, Recommends incomplete
Product: [openSUSE] SUSE Linux 10.1 Reporter: Andreas Gruenbacher <agruen>
Component: BasesystemAssignee: Michael Schröder <mls>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: hare, ro, suse-beta
Version: Beta 6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: agruen:track
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: The first attempt to add a %__find_supplements script as in the attached patch didn't work.

Description Andreas Gruenbacher 2006-03-04 19:26:10 UTC
RPM neither has command line options similar to --requires for the new header tags, nor does it support querying for these tags in queries (rpm -q --qf ...). Also it currently does not have scripts for generating such tags automatically, analogously to %__find_requires.

For managing the new tags, we need to be able to query for them. According to a suggestion by mls, kernel module packages are supposed to generate Supplements tags for the module alias (i.e., the hardware) they support. Because there is no %__find_supplements script, I cannot do that right now.
Comment 1 Andreas Gruenbacher 2006-03-04 19:34:58 UTC
Created attachment 71259 [details]
The first attempt to add a %__find_supplements script as in the attached patch didn't work.

I would prefer to use Provides tags for now until support for the new tags is reasonably complete, even though Supplements tags are supposed to be more "correct": Provides works today...
Comment 2 Klaus Kämpf 2006-03-05 14:20:08 UTC
Adding support for our complete set of dependencies is also something for 'rug' ...
Comment 3 Michael Schröder 2006-03-06 11:12:30 UTC
Provides are just wrong, please fix supplements!
Comment 6 Michael Schröder 2006-03-06 11:30:38 UTC
Could you at least explain to us what you meant with "didn't work"?
Comment 7 Andreas Gruenbacher 2006-03-06 12:07:43 UTC
The patch from comment 1 didn't have any effect on the resulting RPM; the find-supplements script was not invoked. In addition to that, even if it was, I wouldn't have had a way to find out which supplements ended up in the package due to the lack of querying support.
Comment 8 Andreas Gruenbacher 2006-03-11 11:53:50 UTC
Until rpm supports querying for supplements and enhances tags,
~mls/rpmdumpreq can be used as a substitute.
Comment 10 Michael Schröder 2006-03-17 18:10:50 UTC
Fixed in STABLE.