Re: overzealous /usr/lib/rpm/perl.req

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 21, 2004 at 02:14:49PM +0200, Bert de Bruijn wrote:
> On Wed, 21 Jul 2004, Panu Matilainen wrote:
> 
> >On Wed, 21 Jul 2004, Bent Terp wrote:
> >
> >>Hi, it's me again :-)
> >>
> >>I'm having problems with auto-depend picking up stuff which it
> >>shouldn't. Rather than switching it completely off, is there a way to
> >>explicitly exclude certain dependencies?
> >
> >Use a custom find-requires script, filtering out what you don't want.
> >Details can be found in rpm-list@xxxxxxxxxx archives (sorry I don't have
> >an URL or example at hand)
> 
> The atrpms perl-Tk specfile is a good example.

Yes, for the archives the recipe is:

Source999: filter-requires-<foo>.sh
%define _use_internal_dependency_generator 0
%define __find_requires %{SOURCE999}

and filter-requires-<foo>.sh does:

#!/bin/sh

/usr/lib/rpm/find-requires "$@" \
  | egrep -v <extended regex of bogus/superfluous dependencies>

(for redhat systems you can also try /usr/lib/rpm/redhat/find-requires)

This works with more than perl dependencies, but usually these are the
ugly ones.
-- 
Axel.Thimm at ATrpms.net

Attachment: pgp5XNXgRfUCc.pgp
Description: PGP signature

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux