NetBSD Problem Report #48485

From www@NetBSD.org  Mon Dec 30 12:45:31 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C032FA642D
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Dec 2013 12:45:31 +0000 (UTC)
Message-Id: <20131230124530.41F9FA6468@mollari.NetBSD.org>
Date: Mon, 30 Dec 2013 12:45:30 +0000 (UTC)
From: netbsd@eq.cz
Reply-To: netbsd@eq.cz
To: gnats-bugs@NetBSD.org
Subject: RAKE_HACK in devel/ruby-rake/Makefile makes the "rake" gem invisible
X-Send-Pr-Version: www-1.0

>Number:         48485
>Category:       pkg
>Synopsis:       RAKE_HACK in devel/ruby-rake/Makefile makes the "rake" gem invisible
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    taca
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 30 12:50:00 +0000 2013
>Closed-Date:    Sun Mar 02 15:25:38 +0000 2014
>Last-Modified:  Sun Mar 02 15:25:38 +0000 2014
>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.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->taca
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 31 Dec 2013 13:56:19 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "Takahiro Kambe" <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48485 CVS commit: pkgsrc/devel/ruby-rake
Date: Sun, 9 Feb 2014 05:21:19 +0000

 Module Name:	pkgsrc
 Committed By:	taca
 Date:		Sun Feb  9 05:21:19 UTC 2014

 Modified Files:
 	pkgsrc/devel/ruby-rake: INSTALL Makefile

 Log Message:
 * Preserve modified time of saveing rake command file.
 * Improve handling of gemspec file when the version of bundlerd dosen't
   match with ruby-rake's version.  Should be fix PR pkg/48485.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/ruby-rake/INSTALL
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/ruby-rake/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: taca@NetBSD.org
State-Changed-When: Sun, 09 Feb 2014 05:27:11 +0000
State-Changed-Why:
Should be fixed and please check now.


From: rudolf <netbsd@eq.cz>
To: gnats-bugs@NetBSD.org, taca@NetBSD.org
Cc: 
Subject: Re: pkg/48485 (RAKE_HACK in devel/ruby-rake/Makefile makes the "rake"
 gem invisible)
Date: Sun, 02 Mar 2014 16:09:48 +0100

 taca@NetBSD.org wrote:
 > Should be fixed and please check now.

 I've checked ruby193-rake-10.0.4nb1, the problem is gone. Thanks.

 r.

State-Changed-From-To: feedback->closed
State-Changed-By: taca@NetBSD.org
State-Changed-When: Sun, 02 Mar 2014 15:25:38 +0000
State-Changed-Why:
Submitter reports this problem solved.
Thanks to your problem report.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.