Re: Spec depends on BuildRequires?

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

 



On Tue, 11 Mar 2008 11:59:34 -0500, Rex Dieter wrote:

> Richard W.M. Jones wrote:
> 
> > On Tue, Mar 11, 2008 at 10:02:13AM -0500, Rex Dieter wrote:
> >> Richard W.M. Jones wrote:
> >> 
> >> > 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:
> >> 
> >> Would seem to fail always to me.  Here's something less fragile:
> >> 
> >> (forgive the long-line)
> >> %global my_perl_req %(perl -MExtUtils::Embed -e ldopts 2> /dev/null |
> >> egrep -o '/[^[:space:]]*CORE' | head -1)
> >> 
> >> %if "%{?my_perl_req}" != "%{nil}"
> >> Requires: %{?my_perl_req}
> >> %endif
> > 
> > This is less fragile, but presumably it leaves out the dependency
> > (which I need to have)?
> 
> What makes you think it leaves out the dependency?
> 
> spoiler:
> (hint: it does and doesn't.  does leave it out at time of srpm generation,
> includes it in generating final binary rpm).

At srpm generation the Requires are ignored anyway, because BuildRequires
become Requires in the src.rpm.

-- 
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