Bug 1116021 - Review Request: rubygem-ruby-prof - a fast ruby profiler
Summary: Review Request: rubygem-ruby-prof - a fast ruby profiler
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1116024
TreeView+ depends on / blocked
 
Reported: 2014-07-03 14:02 UTC by Steve Traylen
Modified: 2017-05-31 09:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-05-31 09:19:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Steve Traylen 2014-07-03 14:02:04 UTC
Spec URL: http://cern.ch/straylen/rpms/rubygem-ruby-prof/rubygem-ruby-prof.spec
SRPM URL: http://cern.ch/straylen/rpms/rubygem-ruby-prof/rubygem-ruby-prof-0.15.1-1.fc20.src.rpm
Description:
ruby-prof is a fast code profiling tool for Ruby. It is a C extension and
therefore is many times faster than the standard Ruby profiling tool. It
supports both flat and graph profiles.  For each method, graph profiles
show how long the method ran, which methods called it and which
methods it called. RubyProf can generate both text and HTML and can output
it to standard out or to a file.


Fedora Account System Username: stevetraylen

Comment 1 František Dvořák 2014-07-14 13:09:30 UTC
Some comments from me (although I'm not experienced ruby packager):


* license: it is rather "BSD" than "MIT"

  rubygems.org refers to MIT, but the LICENSE file and .gemspec file contains BSD (2-clause). Were is source of the license for rubygems.org? (maybe upstream could be notified?)


* rake is not recommended for launching the tests

 Rake is not typically used in Fedora to execute test suite, since it almost always needs some additional unnecessary dependencies. I were lucky to launch tests this way:

 mkdir tmp
 ruby -Ilib:%{buildroot}%{gem_extdir_mri}/lib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'

  ==> rake-compiler would not be needed then, although I think there is required rubygem(test-unit) BR?


* %{buildroot}%{gem_instdir}/lib/ruby_prof.so doesn't exists (package can't be built in rawhide)

 I think the move command should look like this?:

  mv %{buildroot}%{gem_instdir}/ext/ruby_prof/ruby_prof.so %{buildroot}%{gem_extdir_mri}/lib/


* E: non-standard-executable-perm /usr/lib64/gems/ruby/ruby-prof-0.15.1/lib/ruby_prof.so 0775L

  Permissions of %{gem_extdir_mri}/lib/ruby_prof.so should be rather 0755 then 0775.


* W: no-manual-page-for-binary ruby-prof, ruby-prof-check-trace

 It is recommended to work with upstream to create man-pages, or to check Debian: https://fedoraproject.org/wiki/Packaging:Guidelines?rd=PackagingGuidelines#Man_pages


* other issues seems OK or false positives:
- dir ownership in debuginfo
- doc subpackage dependency OK (it's noarch)
- bundled font files OK (rdoc generated)
- here is described porting to minitest 5: https://lists.fedoraproject.org/pipermail/ruby-sig/2014-June/001594.html,
  I've tried some porting and were lucky with that, but the patch seems quite aggressive and '%check' will be needed disabled anyway on some branches...

Comment 2 František Dvořák 2014-07-14 13:14:32 UTC
(In reply to František Dvořák from comment #1)
> Some comments from me (although I'm not experienced ruby packager):
> 
> 
> * license: it is rather "BSD" than "MIT"
> 
>   rubygems.org refers to MIT, but the LICENSE file and .gemspec file
> contains BSD (2-clause). Were is source of the license for rubygems.org?
> (maybe upstream could be notified?)
> 

Just noticed this commit: https://github.com/ruby-prof/ruby-prof/commit/84f086b5ecb02cf8f077acc537cadc639ccf2520

It is not release yet, I guess rubygems.org will be OK with next release of ruby-prof.

Comment 3 Steve Traylen 2014-07-21 12:43:49 UTC
Thanks for taking a look.

Spec URL: http://cern.ch/straylen/rpms/rubygem-ruby-prof/rubygem-ruby-prof.spec
SRPM URL: http://cern.ch/straylen/rpms/rubygem-ruby-prof/rubygem-ruby-prof-0.15.1-2.fc20.src.rpm

addresses all your comments above with the exception of adding man pages.
The commands have --help support which is enough I would say.

As for the licensing it's clearly meant to be BSD indeed , I've
added a comment highlighting the discrepancy with rubygems.org which
should hopefully fix at some time.

Only other change was I deleted a duplicate copy of arch depedendent .so file
incorrectly in /usr/share.

Comment 4 Steve Traylen 2015-04-01 07:07:22 UTC
ping.

Comment 5 Troy Dawson 2015-09-22 21:21:21 UTC
Hi Steve,
I'll take this, but due to a bug in the spec file, it's failing on my fedora-review, so I can't do a full review yet.
Can you do three things for me.

1 - Change "rm %{buildroot}%{gem_instdir}/lib/ruby_prof.so" to "rm -f %{buildroot}%{gem_instdir}/lib/ruby_prof.so"
That will fix my bug.  On rawhide that file isn't there, but a force allows it go just move along if it isn't there.

2 - Update to the latest version (0.15.8)
This will also fix the license problem, because the license then matches the gemspec upstream.  You can then remove the comments about it in the spec file.

3 - Ensure all the tests still work with the updated version.

Comment 6 Upstream Release Monitoring 2015-09-24 15:05:28 UTC
jgrulich's scratch build of kdevelop?#c8e2b9bc57f11e41f3dc6612cdbcc591078d9062 for f22-candidate and git://pkgs.fedoraproject.org/kdevelop?#c8e2b9bc57f11e41f3dc6612cdbcc591078d9062 completed http://koji.fedoraproject.org/koji/taskinfo?taskID=11212117

Comment 7 Troy Dawson 2016-04-29 20:40:01 UTC
I'm dropping being a reviewer of this package, and I recommend it be closed incase someone else wants to create this package.  There has been too long without any response from the original packager.

Comment 8 Steve Traylen 2017-05-31 09:19:37 UTC
So old, can't remember by why I wanted it. Apologies for the lack of response.


Note You need to log in before you can comment on or make changes to this bug.