Odd mock build problem
Rex Dieter
rdieter at math.unl.edu
Wed Mar 1 01:54:13 UTC 2006
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
More information about the fedora-extras-list
mailing list