RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Perl Requirement Munging...the RPM5 Way?

From: Michael Jennings <mej@kainx.org>
Date: Mon 21 Apr 2008 - 20:13:23 CEST
Message-ID: <20080421181323.GN3941@kainx.org>
On Monday, 21 April 2008, at 13:53:05 (-0400),
Jeff Johnson wrote:

> Hmmm, ick. Disabling the internal depedency generator loses sorted
> dependencies, and also results in uncolored packages that will not
> install correctly on multilib platforms.
>
> Have you tried using %__perl_requires instead of %__find_requires?
> Same "grep -v" or "sed -e's/baddep//" filtering mechanism, just a
> different macro.

Creating the script on the fly and using %{__perl_requires} $* instead
of hard-coding /usr/lib/rpm/find-requires does solve the immediate
problem, thanks. :)

Though I still think we either need to ship /usr/lib/rpm/find-requires
or point %{__find_requires} to something else
(/usr/lib/rpm/find-req.pl perhaps?).

Opinions?

> What's more generally needed is a set of patterns applied to filter
> _ALL_ dependencies. PLD has one of these thingies (they're always
> first ;-) but now that rpmio/mire.c appears largely finished,
> there's a better mechanism to filter _ALL_ deps.

That would certainly address the issues my cited examples are trying
to solve. :)

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)
-----------------------------------------------------------------------
 "Backstreet Boys?  Why would you wanna do that?  Didn't you see New
  Kids on the Block?  Don't you know how this movie's gonna end?  I
  wanna know who's gonna be the 'bad' Backstreet Boy.  Who's gonna
  get Britney Spears pregnant?"            -- Chris Rock, 1999 MTV VMA
Received on Mon Apr 21 20:13:25 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.