[Yum] a dependency is not being detected?

Brian Long brilong at cisco.com
Wed Feb 10 18:00:37 UTC 2010


On 02/10/2010 12:19 PM, Fulko Hew wrote:
> On Wed, Feb 10, 2010 at 11:58 AM, Seth Vidal <skvidal at fedoraproject.org>wrote:
> 
>>  On Wed, 10 Feb 2010, Fulko Hew wrote:
>>
>>> On Wed, Feb 10, 2010 at 11:38 AM, Seth Vidal <skvidal at fedoraproject.org>
>>> wrote:
>>>
>>
> ... snip ...
> 
> 
>>        or add a pkg-specific dep into mypackage.
>>>
>>> How would you specify that?
>>>
>>
>> Requires: perl-SNMP-Session >= someversion
>>
> 
> Thanks.  I was only aware of the perl(xxx) format (as I learned by osmosis
> by watching rpm build output). I incorrectly assumed that
>     Requires: perl(xxx)
> was the same as (I thought it was a cute alternative of):
>    Requires: perl-xxx
> 
> By adding your suggestion, that forces the right thing package to be
> installed,
> but I then still need to force rpm build (via spec file entries) to 'forget'
> about
> or not-add the related auto-discovered 'requires perl(xxx)';
> that unfortunately still causes mrtg to be hauled in.

Are you using "Autoreq: 0" in your spec file?  If you want to turn off
automatic Perl requirements gathering, just add that and rebuild.

http://rpm5.org/docs/api/specfile.html

/Brian/

-- 
       Brian Long                             |       |
       Corporate Security Programs Org    . | | | . | | | .
                                              '       '
                                              C I S C O


More information about the Yum mailing list