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

Re: Odd mock build problem



Jason L Tibbitts III wrote:

> sh: ruby: command not found
> sh: ruby: command not found
> sh: ruby: command not found
> error: line 21: Empty tag: Requires:
> Building target platforms: x86_64
> Building for target x86_64
> Cleaning up...
> Done.
...
> My guess is that mock is trying to determine the BuildRequires:, but
> it can't generate the srpm because of these statements at the top of
> the spec:
> 
> %{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts
> %Config::CONFIG['sitedir']")}
> %{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts
> %Config::CONFIG['sitearchdir']")}

It's the empty "Requires:" on line 21 causing the problem.  Fix that
(and assume that ruby may not be present on the first run through mock).

-- Rex


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