Bug 533725
| Summary: | Review Request: rubygem-linecache - Caches (Ruby source) files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jeroen van Meeuwen <vanmeeuwen+fedora> | ||||
| Component: | Package Review | Assignee: | Mamoru TASAKA <mtasaka> | ||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | ayoung, fedora-package-review, mtasaka, notting | ||||
| Target Milestone: | --- | Flags: | mtasaka:
fedora-review+
kevin: fedora-cvs+ |
||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-12-23 15:56:49 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 532306 | ||||||
| Attachments: |
|
||||||
|
Description
Jeroen van Meeuwen
2009-11-08 19:40:14 UTC
Some notes:
* We now prefer to use %global rather than %define.
* Defined %ruby_sitelib macro is not used and seems unneeded.
* License tag should be GPLv2
* Make build.log more verbose (gem -V should do this), so that
we can check if Fedora specific compilation flags are correctly
honored.
* Please don't strip binaries by yourself and create debuginfo
rpm correctly.
* Enable %check, because this gem contains test/ directory
* Mark %geminstdir/AUTHORS or so as %doc properly.
* This package should not own the directory %{ruby_sitearch}/
itself.
* I don't think %{geminstdir}/lib can be removed.
* Please use defined macro (especially %geminstdir) also
in other place (like in %files)
(In reply to comment #1) > Some notes: > > * We now prefer to use %global rather than %define. > Fixed. > * Defined %ruby_sitelib macro is not used and seems unneeded. > Fixed. > * License tag should be GPLv2 > Fixed. > * Make build.log more verbose (gem -V should do this), so that > we can check if Fedora specific compilation flags are correctly > honored. > Fixed, and it does. > * Please don't strip binaries by yourself and create debuginfo > rpm correctly. > Fixed. > * Enable %check, because this gem contains test/ directory > Fixed. > * Mark %geminstdir/AUTHORS or so as %doc properly. > Fixed this file, and other files as well. > * This package should not own the directory %{ruby_sitearch}/ > itself. > Fixed. > * I don't think %{geminstdir}/lib can be removed. > Fixed. > * Please use defined macro (especially %geminstdir) also > in other place (like in %files) Fixed. New SPEC: http://www.kanarip.com/custom/SPECS/rubygem-linecache.spec New SRPM: http://www.kanarip.com/custom/f12/SRPMS/rubygem-linecache-0.43-2.fc12.src.rpm Created attachment 369756 [details]
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@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).
ping? Fixed the issues, thanks for the patch! New SPEC: http://www.kanarip.com/custom/SPECS/rubygem-linecache.spec New SRPM: http://www.kanarip.com/custom/f12/SRPMS/rubygem-linecache-0.43-3.fc12.src.rpm Okay.
--------------------------------------------------------
79 %check
80 pushd %{_builddir}/%{name}-%{version}/%{geminstdir}
--------------------------------------------------------
can be simplified as:
pushd .%{geminstdir}
-------------------------------------------------------------
This package (rubygem-linecache) is APPROVED by mtasaka
-------------------------------------------------------------
New Package CVS Request ======================= Package Name: rubygem-linecache Short Description: Caches (Ruby source) files Owners: kanarip Branches: EL-5 F-11 F-12 InitialCC: cvs done. Closing. *** Bug 588445 has been marked as a duplicate of this bug. *** |