Spec depends on BuildRequires?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux