Re: a dependency is not being detected?

Brian Long <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On 02/10/2010 12:19 PM, Fulko Hew wrote:
> On Wed, Feb 10, 2010 at 11:58 AM, Seth Vidal <[email protected]>wrote:
> 
>>  On Wed, 10 Feb 2010, Fulko Hew wrote:
>>
>>> On Wed, Feb 10, 2010 at 11:38 AM, Seth Vidal <[email protected]>
>>> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.