pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48485: RAKE_HACK in devel/ruby-rake/Makefile makes the "rake" gem invisible



>Number:         48485
>Category:       pkg
>Synopsis:       RAKE_HACK in devel/ruby-rake/Makefile makes the "rake" gem 
>invisible
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 30 12:50:00 +0000 2013
>Originator:     rudolf
>Release:        current (HEAD)
>Organization:
>Environment:
NetBSD amd64
>Description:
The devel/ruby-rake package installs its gemspec file not only with the 
".gemspec" suffix, but adds to that the RAKE_HACK string defined in its 
Makefile (for ruby 1.9.3 and 2.0). This makes the gem invisible: "gem list 
--local" can't find the gem and it's also not found by the "bundler" gem if a 
"Gemfile" file includes a requirement for the "rake".
>How-To-Repeat:
Install the devel/ruby-rake package (now in version 10.0.4) and then try to use 
it in a Gemfile (gem "rake", "~> 10.0") or list the gems using "gem list 
--local".
>Fix:
The RAKE_HACK was probably added in time, when the devel/ruby-rake package 
version was the same as version of the rake installed with ruby-base packages 
and the "specifications" directory included already a gemspec file with the 
same name as would the devel/ruby-rake package install. This is no longer true 
- the version installed in ruby-base packages is 0.9.2.2 and the 
devel/ruby-rake package version is 10.0.4 so they don't collide anymore. Now is 
the usage of RAKE_HACK not useful and should be removed.



Home | Main Index | Thread Index | Old Index