Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103192 - better SRC_URI for Ruby gems
Summary: better SRC_URI for Ruby gems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on: 158619
Blocks:
  Show dependency tree
 
Reported: 2005-08-20 15:55 UTC by awk
Modified: 2007-05-17 19:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description awk 2005-08-20 15:55:24 UTC
A lot of the Ruby ebuilds have this general SRC_URI:

   # The URL depends implicitly on the version, unfortunately. Even if you
   # change the filename on the end, it still downloads the same file.
   SRC_URI="http://rubyforge.org/frs/download.php/1033/${P}.tgz"

The file it downloads depends on the number 1033 rather than the package name, which makes 
changing the ebuild version difficult. In fact I sent in a couple ebuilds like that myself.

The following is better though:

   SRC_URI="http://gems.rubyforge.org/gems/${P}.gem"

I tested it with a couple packages and it works.

Reproducible: Always
Steps to Reproduce:
Comment 1 awk 2005-08-20 15:58:55 UTC
Oops, bad example, the first one doesn't download a gem, but a tgz. This only applies to the gems.
Comment 2 Rob Cakebread (RETIRED) gentoo-dev 2005-08-20 17:01:06 UTC
Thanks, I didn't know this existed. I almost started a letter-writing campaign a
few times to beg rubyforge to change their url scheme. 

Comment 3 Michael Kohl (RETIRED) gentoo-dev 2005-08-21 04:19:33 UTC
tigger^ pointed this out to me on IRC two days ago. I didn't know about this URL
either, but it seems like a good way to finally have Ruby ebuild that one can
version bump! :)

Here's a list of ebuilds that currently fetch a gem from a version dependent
SRC_URI:

actionmailer/actionmailer-0.8.1.ebuild
actionmailer/actionmailer-1.0.1.ebuild
actionmailer/actionmailer-0.7.0.ebuild
actionmailer/actionmailer-0.9.1.ebuild
actionmailer/actionmailer-0.8.0.ebuild
actionmailer/actionmailer-0.6.1.ebuild
actionmailer/actionmailer-0.7.1.ebuild
actionpack/actionpack-1.4.0.ebuild
actionpack/actionpack-1.5.0.ebuild
actionpack/actionpack-1.6.0.ebuild
actionpack/actionpack-1.8.1.ebuild
actionpack/actionpack-1.7.0.ebuild
actionpack/actionpack-1.9.1.ebuild
actionpack/actionpack-1.5.1.ebuild
actionwebservice/actionwebservice-0.6.0.ebuild
actionwebservice/actionwebservice-0.8.1.ebuild
actionwebservice/actionwebservice-0.6.2.ebuild
actionwebservice/actionwebservice-0.6.1.ebuild
actionwebservice/actionwebservice-0.5.0.ebuild
actionwebservice/actionwebservice-0.7.1.ebuild
activerecord/activerecord-1.10.1.ebuild
activerecord/activerecord-1.9.0.ebuild
activerecord/activerecord-1.11.1.ebuild
activerecord/activerecord-1.6.0.ebuild
activerecord/activerecord-1.7.0.ebuild
activerecord/activerecord-1.9.1.ebuild
activerecord/activerecord-1.8.0.ebuild
activesupport/activesupport-1.0.2.ebuild
activesupport/activesupport-1.0.4.ebuild
activesupport/activesupport-1.0.1.ebuild
activesupport/activesupport-1.0.3.ebuild
activesupport/activesupport-1.1.1.ebuild
activesupport/activesupport-1.0.0.ebuild
color-tools/color-tools-1.2.0.ebuild
facets/facets-0.7.2.ebuild
facets/facets-0.6.3.ebuild
glue/glue-0.22.0.ebuild
jabber4r/jabber4r-0.8.0.ebuild
nitro/nitro-0.22.0.ebuild
og/og-0.22.0.ebuild
pdf-writer/pdf-writer-1.1.1.ebuild
rails/rails-0.12.1.ebuild
rails/rails-0.11.1-r1.ebuild
rails/rails-0.10.0-r1.ebuild
rails/rails-0.9.5.ebuild
rails/rails-0.13.1.ebuild
rails/rails-0.11.0-r1.ebuild
rails/rails-0.10.1.ebuild
rake/rake-0.4.15-r1.ebuild
rake/rake-0.5.3.ebuild
redcloth/redcloth-3.0.3.ebuild
ruby-breakpoint/ruby-breakpoint-0.5.0.ebuild
rubygems/rubygems-0.8.10.ebuild
syntax/syntax-0.7.0.ebuild
transaction-simple/transaction-simple-1.3.0.ebuild

I think it would be best when switch to the new SRC_URIs while doing the next
version bump and slowly cleaning out the older versions. There's no real need
for revision bumps I'd say. Shall we close this bug with a resolution of "LATER"
as this is an incremental process?
Comment 4 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-09-01 20:21:16 UTC
Status update. The following are those that need update
jabber4r/jabber4r-0.8.0.ebuild
redcloth/redcloth-3.0.3.ebuild
ruby-breakpoint/ruby-breakpoint-0.5.0.ebuild
transaction-simple/transaction-simple-1.3.0.ebuild

These don't because there are newer versions with correct url already:
facets/facets-0.6.3.ebuild
syntax/syntax-0.7.0.ebuild
Comment 5 Keith Maxwell 2006-12-19 09:52:38 UTC
ruby-breakpoint-0.5.1 was released on June 6.

A new ebuild, well version bump, incorporating this url change would be useful.

It may be helpful to note using ruby-breakpoint with ruby-1.8.5_p2 requires a workaround from:

http://rubyforge.org/tracker/index.php?func=detail&aid=4897&group_id=559&atid=2228
Comment 6 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-12-19 16:51:24 UTC
(In reply to comment #5)
> ruby-breakpoint-0.5.1 was released on June 6.
> 
> A new ebuild, well version bump, incorporating this url change would be useful.

This place is not a good place to make a bump request because I will forget it soon. Please open a new bug (preferably with ebuild submission)
Comment 7 Christian Marie (RETIRED) gentoo-dev 2007-01-14 11:22:38 UTC
ruby-breakpoint has been converted to this new SRC_URI (and bumped).
Comment 8 Richard Brown (RETIRED) gentoo-dev 2007-05-17 19:47:38 UTC
I've bumped transaction-simple and redcloth, and updated the src_uri for jabber4r as it was the last package left.