Bug 179838 - Add OptionalRequires: in rpm structure so rpm --suggest option could be added
Add OptionalRequires: in rpm structure so rpm --suggest option could be added
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2006-02-03 05:24 EST by Olivier Lahaye
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.4.4
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-03 09:05:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Olivier Lahaye 2006-02-03 05:24:40 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon; .NET CLR 1.1.4322)

Description of problem:
Add OptionalRequires: in rpm spec structure so rpm --suggest option could be added

rpm -i kbarcode would install only kbarcode (provided that dependancies are satified)

rpm -i --suggest kbarcode would require optional packages to be istalled like mysql,PDF417 Encode and TBarcode. those packages are not required for kbarcode to have basic functionalities, but are used if installed.

Same for k3b: rpm -i --suggest k3b would require transcode to be installed. while this package is not mandatory for k3b to function properly, if istalled, it enhances k3b features.

in the spec file, a line like
OptionalRequires: transcode
would be added.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. # rpm --suggest k3b

Actual Results:  Error messages recieved:
--suggest: unknown option

Expected Results:  # rpm -i --suggest k3b
error: Failed dependencies:
        transcode is required for k3b-0.11.20-1


# rpm -i --suggest k3b
error: Failed dependencies:
        transcode is suggested for k3b-0.11.20-1

Additional info:
Comment 1 Olivier Lahaye 2006-02-03 09:05:07 EST
Oups seems to be already implemented into rpm-4.4.4.

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