Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295040 - Request for acceptance of Prefix modifications to dev-ruby ebuilds
Summary: Request for acceptance of Prefix modifications to dev-ruby ebuilds
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-29 13:25 UTC by Fabian Groffen
Modified: 2010-01-17 10:36 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 Fabian Groffen gentoo-dev 2009-11-29 13:25:05 UTC
For the following list of ebuilds, the ruby herd is listed as
maintainer.

The following list of ebuilds in gentoo-x86 have changes when compared to the
Gentoo Prefix tree.  Please review the changes and raise objections, if any.
Thanks.


--- capistrano-launcher/capistrano-launcher-1.ebuild    2009-06-13 11:36:01 +020
0
+++ capistrano-launcher/capistrano-launcher-1.ebuild    2009-07-27 21:20:52 +020
0
@@ -26 +26 @@
-       einfo "invoking /usr/bin/cap by default."
+       einfo "invoking ${EPREFIX}/usr/bin/cap by default."


--- capistrano/capistrano-2.5.9.ebuild  2009-11-24 15:35:37 +0100
+++ capistrano/capistrano-2.5.9.ebuild  2009-10-27 10:05:05 +0100
@@ -30,2 +30,2 @@
-       rm "${D}/usr/bin/cap"
-       rm "${D}/${GEMSDIR}/bin/cap"
+       rm "${ED}/usr/bin/cap"
+       rm "${ED}/${GEMSDIR}/bin/cap"


--- hpricot/hpricot-0.8.ebuild  2009-05-09 14:36:15 +0200
+++ hpricot/hpricot-0.8.ebuild  2009-05-17 10:32:47 +0200
@@ -37 +37 @@
-       insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:')/specifications
+       insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["vendorlibdir"]' | sed -e 's:vendor_ruby:gems:' -e "s:^${EPREFIX}::")/specifications
@@ -59 +59 @@
-       exeinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
+       exeinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]' | sed -e "s:^${EPREFIX}::")


--- rails/rails-2.3.5.ebuild    2009-11-28 10:34:07 +0100
+++ rails/rails-2.3.5.ebuild    2009-11-29 14:04:35 +0100
@@ -33,3 +33,3 @@
-       mv "${D}/usr/bin/rails" "${D}/usr/bin/rails-${PV}"
-       sed -i -e "s/>= 0/${PV}/" "${D}/usr/bin/rails-${PV}"
-       mv "${D}/${GEMSDIR}/bin/rails" "${D}/${GEMSDIR}/bin/rails-${PV}"
+       mv "${ED}/usr/bin/rails" "${ED}/usr/bin/rails-${PV}"
+       sed -i -e "s/>= 0/${PV}/" "${ED}/usr/bin/rails-${PV}"
+       mv "${ED}/${GEMSDIR}/bin/rails" "${ED}/${GEMSDIR}/bin/rails-${PV}"


--- rubygems/rubygems-1.3.5.ebuild      2009-10-23 16:35:40 +0200
+++ rubygems/rubygems-1.3.5.ebuild      2009-10-27 10:05:04 +0100
@@ -7 +7 @@
-inherit ruby
+inherit ruby prefix
@@ -33,0 +34,3 @@
+
+       epatch "${FILESDIR}"/${PN}-1.3.3-prefix.patch
+       eprefixify lib/rubygems/config_file.rb
@@ -47 +50 @@
-       export RUBY="/usr/bin/ruby18"
+       export RUBY="${EPREFIX}/usr/bin/ruby18"
@@ -54 +57 @@
-       export GEM_HOME="${D}/usr/$(get_libdir)/ruby/gems/${ver}"
+       export GEM_HOME="${ED}/usr/$(get_libdir)/ruby/gems/${ver}"
@@ -78 +81 @@
-       SOURCE_CACHE="/usr/$(get_libdir)/ruby/gems/$ver/source_cache"
+       SOURCE_CACHE="${EPREFIX}/usr/$(get_libdir)/ruby/gems/$ver/source_cache"
@@ -83 +86 @@
-       if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then
+       if [[ ! -n $(readlink "${EROOT}"usr/bin/gem) ]] ; then

rubygems-1.3.3-prefix.patch:
--- lib/rubygems/config_file.rb
+++ lib/rubygems/config_file.rb
@@ -41,7 +41,7 @@
 
       path.strip
     rescue LoadError
-      '/etc'
+      '@GENTOO_PORTAGE_EPREFIX@/etc'
     end
 
   SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'


--- sqlite3-ruby/sqlite3-ruby-1.2.4.ebuild      2009-04-27 18:07:57 +0200
+++ sqlite3-ruby/sqlite3-ruby-1.2.4.ebuild      2009-11-11 15:37:36 +0100
@@ -39 +39 @@
-       ${RUBY} setup.rb config --prefix=/usr ${myconf} \
+       ${RUBY} setup.rb config --prefix="${EPREFIX}"/usr ${myconf} \
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-01-16 21:43:32 UTC
As discussed with Fauli, we're in the middle of a big eclass migration. Please try the new ebuilds on Prefix and report any changes you need against these packages - feel free to reopen this bug later on.

You can find our migration status here: http://gems.stingray.a3li.info/migration.txt
Comment 2 Fabian Groffen gentoo-dev 2010-01-17 10:36:26 UTC
if you mean the ruby-fakegem ones, they work fine, so what is the problem?