spm and buildreqs

Dan Williams dcbw at redhat.com
Thu May 19 17:55:28 UTC 2005


On Thu, 2005-05-19 at 18:10 +0200, Thomas Vander Stichele wrote:
> On Thu, 2005-05-12 at 01:00 -0400, seth vidal wrote:
> > Going through this a few more times as I work on some bits inside the
> > buildsystem.
> > 
> > We're given an srpm - we don't know where it was made, on what arch,
> > nothing - so we cannot trust the buildreqs it provides.
> > 
> > If we're inside the chroot and on the arch we want to build on then
> > running:
> >  rpm -Uvh /path/to/our/srpm
> >  rpmbuild -bs --nodeps /path/to/the/generated/spec
> >  
> > should result in a srpm for us that will have valid build reqs.
> > So that if we grab the requires from that srpm we'll have a pretty good
> > idea of what we'll need to install to build the package.
> > 
> > is that correct/accurate/etc?
> 
> It will fail for specs that express buildrequires using a macro that
> gets its result from a program that ought to be installed.
> 
> Think "python --version" and then buildrequiring the correct version by
> package name.

What's a case where this would be used?  Ie, you want to tie the package
you're building to a _specific_ version of python?  Wouldn't that be
better done by actually just hardcoding the python version?  If this is
the usecase, that sounds lazy to me.  But if not, what are some valid
ones?

Dan




More information about the Fedora-buildsys-list mailing list