why do source rpms have "prep" dependencies?

Robert P. J. Day rpjday at mindspring.com
Sun Sep 9 07:47:33 UTC 2007


On Sun, 9 Sep 2007, Andy Green wrote:

> Somebody in the thread at some point said:
>
> >   i'm confused -- why would a source rpm have dependencies for
> > doing a simple prep?  for actual building perhaps, but doesn't
> > prepping involve simply unloading the tarball and applying the
> > patches?
>
> %prep can have other stuff in it, that could require these
> BuildRequires to execute.

yes, i just noticed that.  but in that case, shouldn't there be an
rpmbuild option that involves nothing more than unloading the tarball
and applying the internal patches and stopping there?  if someone
wants to simply RTFS, it's a bit disconcerting to learn that you need
to download another five source rpms to do it.

what about an even less involved rpmbuild option like "-bu" for
"unload" or "unpack" that represents a subset of prepping?  is that
feasible?  can you even do that without having those dependencies?

rday

p.s.  IMHO, it's also a bit misleading that prepping has to consult
the BuildRequires macro.  again, i'm not trying to "build", so why
that value should be relevant is still a mystery.
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================




More information about the users mailing list