[Bug 533725] Review Request: rubygem-linecache - Caches (Ruby source) files

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 16 17:55:01 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=533725





--- Comment #3 from Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp>  2009-11-16 12:55:01 EDT ---
Created an attachment (id=369756)
 --> (https://bugzilla.redhat.com/attachment.cgi?id=369756)
Patch so that linecache gem actually works

For -2:

* %define -> %global
  - Still %define is used in the first line.

* BR
  - "BuildRequires: rubygem(rake)" is needed for
    "rake test".

* %{geminstdir}/ext
  - I don't think this directory is needed and should completely
    be removed.
    ! Note
      - To avoid trace_nums.so regeneration in %check, rake test should
        be done under %_builddir%geminstdir, not under
        %buildroot%geminstdir

* Usability
-------------------------------------------------------------
[tasaka1 at localhost ~]$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'linecache'
LoadError: no such file to load --
/usr/lib/ruby/gems/1.8/gems/linecache-0.43/lib/../lib/trace_nums
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
        from /usr/lib/ruby/gems/1.8/gems/linecache-0.43/lib/tracelines.rb:12
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
        from /usr/lib/ruby/gems/1.8/gems/linecache-0.43/lib/linecache.rb:63
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
        from (irb):2
        from /usr/lib/ruby/site_ruby/1.8/rubygems/version.rb:33
-------------------------------------------------------------
  - i.e. Currently the installed linecache gem does not work.
    This is because we move trace_nums.so from %geminstdir/ext to
%ruby_sitearch.
    The attached patch (for example) is needed (on Fedora).

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-package-review mailing list