Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71757 - New ebuild - dev-ruby/rubygems-0.8.1
Summary: New ebuild - dev-ruby/rubygems-0.8.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Ruby Team
URL: http://rubyforge.org/projects/rubygems/
Whiteboard:
Keywords: EBUILD
: 52959 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-19 07:37 UTC by Tom Kirchner
Modified: 2004-11-19 12:51 UTC (History)
1 user (show)

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


Attachments
ebuild for dev-ruby/rubygems-0.8.1 (rubygems-0.8.1.ebuild,635 bytes, text/plain)
2004-11-19 07:40 UTC, Tom Kirchner
Details
patch to fix sandbox issues (rubygems-0.8.1-sandbox.diff,656 bytes, patch)
2004-11-19 07:40 UTC, Tom Kirchner
Details | Diff
updated patch - fixes shebang (rubygems-0.8.1-sandbox.diff,1.05 KB, patch)
2004-11-19 08:35 UTC, Tom Kirchner
Details | Diff
patch v3 - fixes remaining sandbox violation (rubygems-0.8.1-sandbox.diff,1.28 KB, patch)
2004-11-19 08:41 UTC, Tom Kirchner
Details | Diff
patch v4 - fixes patch (rubygems-0.8.1-sandbox.diff,1.27 KB, patch)
2004-11-19 09:19 UTC, Tom Kirchner
Details | Diff
patch v5 - fixes sources.gemspec (rubygems-0.8.1-sandbox.diff,1.52 KB, patch)
2004-11-19 10:26 UTC, Tom Kirchner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Kirchner 2004-11-19 07:37:10 UTC
Working ebuild for rubygems 0.8.1, simpler than the ones in http://bugs.gentoo.org/show_bug.cgi?id=52959 .  It requires a simple patch to install.rb to make use of ${D} and avoid sandbox issues.  This installs rubygems in the default package location, which seems good (and consistent) to me.
Comment 1 Tom Kirchner 2004-11-19 07:40:03 UTC
Created attachment 44283 [details]
ebuild for dev-ruby/rubygems-0.8.1
Comment 2 Tom Kirchner 2004-11-19 07:40:45 UTC
Created attachment 44284 [details, diff]
patch to fix sandbox issues
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 08:09:45 UTC
*** Bug 52959 has been marked as a duplicate of this bug. ***
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 08:16:41 UTC
The patch does not fix sandbox violation.
Does it work on your system?
Comment 5 Tom Kirchner 2004-11-19 08:35:07 UTC
Created attachment 44290 [details, diff]
updated patch - fixes shebang

The original patch left the workdir in a shebang, leading to unusable scripts. 
Updated patch fixes this issue.
Comment 6 Tom Kirchner 2004-11-19 08:41:28 UTC
Created attachment 44291 [details, diff]
patch v3 - fixes remaining sandbox violation

There was only one other spot an absolute location was used - replaced this to
use ${D}.  This should fix any remaining sandbox violations.
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 09:04:44 UTC
v3 patch doesn't even apply to rubygems-0.8.1.
Comment 8 Tom Kirchner 2004-11-19 09:19:36 UTC
Created attachment 44298 [details, diff]
patch v4 - fixes patch

v3 was screwed up.  v4 fixes the file formatting.  In my own defense, I'm doing
this from a Windows computer (at work) and it sort of sucks.
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 09:55:54 UTC
No worries, I see :)

However, your patch doesn't work if you don't have
rubygems installed. 

./sources.gemspec:2:in `require': No such file to load -- rubygems (LoadError)

The patch in bug #52959 contained a fix for this 
problem, but your patch doesn't. Will you fix this
problem with your patch?
Comment 10 Tom Kirchner 2004-11-19 10:26:57 UTC
Created attachment 44300 [details, diff]
patch v5 - fixes sources.gemspec

I had fixed this in my tests last night, but forgot to include the patch. 
Hopefully this should be everything.
Comment 11 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-19 12:51:46 UTC
Thanks, works flawlessly  - added to CVS :)