shreyankg(a)gmail.com wrote, at 06/09/2010 09:13 PM +9:00:
On Thu, Jun 3, 2010 at 4:36 PM,
shreyankg@gmail.com<shreyankg(a)gmail.com> wrote:
> Hi,
> I am Shreyank Gupta and I want to package sup[0] for Fedora.
>
> I have done a few review requests ([1], [2], [3]) in order to package
> some of the remaining dependencies which have not been packaged for
> Fedora. Mamoru Tasaka has been reviewing most of it and has recently
> sponsored me into the Fedora Packagers group. Many thanks to him.
>
> Although there is another review request for rubygem-net-ssh[4] which
> needs to be processed so that all dependencies of sup are met. It
> would be great if someone could take it up.
>
> I am now writing and testing the spec for sup. Will keep you guys posted.
>
Sup requires the rubygem 'xapian-full' as a runtime dependency.
I saw that its nothing but xapian-bindings-ruby and xapian-core which
are already packaged for Fedora.
Is there a way I could bypass the gem dependency and use the system
xapian libraries for sup's runtime?
My review request for sup is at
https://bugzilla.redhat.com/show_bug.cgi?id=601633
Well, I didn't know about "xapian-bindings-ruby" rpm. Then:
Would you check if xapian "gem" is really needed?
For example, sup-0.10.2/bin/sup-convert-ferret-index reads:
---------------------------------------------------------------
3 require 'rubygems'
46 begin
47 require 'xapian'
48 rescue LoadError
49 Trollop::die "you don't have the xapian gem installed, so this script
won't do much for you--`gem install xapian` (or xapian-full) first"
50 end
----------------------------------------------------------------
This can be satisfied with "rubygems" and "xapian-bindings-ruby" rpms
(Just error message says that xapian gem is needed)
Similarly, sup-0.10.2/lib/sup/xapian_index.rb reads:
----------------------------------------------------------------
1 ENV["XAPIAN_FLUSH_THRESHOLD"] = "1000"
2
3 require 'xapian'
----------------------------------------------------------------
This can also be satisfied with "xapian-bindings-ruby" rpms.
If some script includes something like
----------------------------------------------------------------
gem 'xapian'
----------------------------------------------------------------
this needs xapian gem, however I think you can just remove such lines.
Note that currently it seems that xapian-bindings-ruby does not
provide ruby(xapian) or so, so you have to write "Requires:
xapian-bindings-ruby"
directly.
Regards,
Mamoru