RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Filtering automagically generated dependencies

From: Michael Jennings <mej@kainx.org>
Date: Tue 16 Oct 2007 - 00:36:59 CEST
Message-ID: <20071015223659.GP23833@kainx.org>
On Thursday, 04 October 2007, at 10:45:28 (-0400),
Jeff Johnson wrote:

>  PLD has a patch adding a macro to specify patterns to filter internally
>  generated soname dependencies.
> 
>  Basically
>      %define _noautorequires libA.so libB.so
>  with some regex gunk in lib/rpmfc.c to do essentially grep -v.
> 
>  Should it be added?

My vote is "no."  It's redundant AFAICT.

>  My personal opinion is that per-pkg filtering of dependencies that are
>  either mis-generated in the first place, e.g.
>  	Requires: perl(the)
>  or that achieve some marginally useful goal, like filtering a soname
>  that is generated for a dlopen'd module that loads dynaically, is of
>  marginal utility. There are many ways to solve the problem with
>  existiung mechanisms in rpm.

e.g., /etc/rpm/sysinfo/...

>  OTOH, I've always believed that there needs to be a general per-distro
>  (i.e. no specfile syntax changes) filtering mechanism with patterns read
>  from a file. The stopping point for the implementation is lack of an answer 
>  to
>      Who maintains the patterns in the file?

Being that it's "per distro," wouldn't the logical answer be, "the
distro?"

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@kainx.org>
Linux Server/Cluster Admin, LBL.gov       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "There's just something about debugging with a buggy debugger that
  reeks of rotten luck...."
Received on Tue Oct 16 00:37:02 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.