Spec depends on BuildRequires?
Richard W.M. Jones
rjones at redhat.com
Tue Mar 11 13:13:58 UTC 2008
I've got a spec file which (edited) says:
BuildRequires: perl
BuildRequires: perl-ExtUtils-Embed
Requires: %(perl -MExtUtils::Embed -e ldopts | egrep -o '/[^[:space:]]*CORE' | head -1)
It fails occasionally (but by no means always) in Koji, as for example
here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=510764
The failure seems to be because perl-ExtUtils-Embed isn't installed by
the time we evaluate the expression in the 'Requires' statement.
So I guess we can't have a spec file which evaluates an expression
which needs some BR's to work. Is there some standard way to work
around this problem?
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
More information about the fedora-devel-list
mailing list