Mailinglist Archive: opensuse-buildservice (260 mails)

< Previous Next >
Re: [opensuse-buildservice] How to handle BuildRequires in spec file like "/usr/bin/perl"?
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Wed, 23 Dec 2009 10:56:08 +0100
  • Message-id: <20091223095608.GA7583@xxxxxxx>
On Wed, Dec 23, 2009 at 11:01:37AM +0800, Jian Lee wrote:
Too many srpms in my project have a old description about
BuildRequires in the spec file like that:

--------------------
BuildPrereq: /usr/bin/perl
==========================

but the /usr/lib/build/Build.pm have nothing to support this
description.

The /usr/lib/build/expanddeps just get the
BuildRequires,Requires,Provides of every pkgs. and the pkg which would
be build could not get a BuildRequires like "/usr/bin/perl" from those
infomation.

If to do this, must add a infomation of "rpm -ql XXX.rpm" to depends
file.

-------------------
F:... XXX.rpm
P:... `rpm -ql XXX.rpm`
R:...
I:...
===================

Is there a better idea ?

Yes, we should add a way to tell the build service in the project
configuration that /usr/bin/perl comes from the perl package.

Btw, BuildPrereq? Why the Pre? I can't imagine any use for it
here...

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References