Re: Odd mock build problem

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

 



Jason L Tibbitts III wrote:
>>>>>> "RD" == Rex Dieter <rdieter@xxxxxxxxxxxx> writes:
> 
> RD> It's the empty "Requires:" on line 21 causing the problem.
> 
> Unfortunately it's not empty:
> 
> Requires:       %{ruby_sitelib}
> 
> or, more precisely, it's only showing up as empty because ruby isn't
> there.

It *is* empty during the first run to create the srpm.

Here's a trick I've been thinking about using to work around the same
problem when building maxima to make a dependancy against the version of
sbcl used to build it:

# maxima requires the *same* version it was built against
# this hack should work, even in mock (-: -- Rex
%global sbcl_ver %(sbcl --version 2>/dev/null | cut -d' ' -f2)
%if "%{?sbcl_ver}" >= "0.9"
%define sbcl_ver2 = %{sbcl_ver}
%endif
Requires: sbcl %{?sbcl_ver2}

You'll need to do something similar.

-- Rex

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

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux