Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587524 - dev-lang/ruby-2.0.0_p648 - respect EPREFIX
Summary: dev-lang/ruby-2.0.0_p648 - respect EPREFIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 15:27 UTC by Martin Mokrejš
Modified: 2017-10-01 11:58 UTC (History)
0 users

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 Martin Mokrejš 2016-06-29 15:27:28 UTC
rm: cannot remove '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-lang/ruby-2.0.0_p648/image//usr/lib64/ruby/2.0.0/rubygems': No such file or directory
 ESC[31;01m*ESC[0m ERROR: dev-lang/ruby-2.0.0_p648::gentoo failed (install phase):
 ESC[31;01m*ESC[0m   rm rubygems failed
 ESC[31;01m*ESC[0m 
 ESC[31;01m*ESC[0m Call stack:
 ESC[31;01m*ESC[0m     ebuild.sh, line 115:  Called src_install
 ESC[31;01m*ESC[0m   environment, line 3205:  Called die
 ESC[31;01m*ESC[0m The specific snippet of code:
 ESC[31;01m*ESC[0m       rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed";
 ESC[31;01m*ESC[0m 
 ESC[31;01m*ESC[0m If you need support, post the output of `emerge --info '=dev-lang/ruby-2.0.0_p648::gentoo'`,
 ESC[31;01m*ESC[0m the complete build log and the output of `emerge -pqv '=dev-lang/ruby-2.0.0_p648::gentoo'`.
 ESC[31;01m*ESC[0m The complete build log is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-lang/ruby-2.0.0_p648/temp/build.log'.
 ESC[31;01m*ESC[0m The ebuild environment file is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-lang/ruby-2.0.0_p648/temp/environment'.
 ESC[31;01m*ESC[0m Working directory: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-lang/ruby-2.0.0_p648/work/ruby-2.0.0-p648'
 ESC[31;01m*ESC[0m S: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/dev-lang/ruby-2.0.0_p648/work/ruby-2.0.0-p648'
Comment 1 Fabian Groffen gentoo-dev 2016-06-29 15:38:07 UTC
I don't know how you end up with that ebuild, but the fixed ebuild is in the prefix tree, so this bug is kind of invalid, since Prefix uses that prefix tree for a reason.

https://gitweb.gentoo.org/repo/proj/prefix.git/tree/dev-lang/ruby
Comment 2 Benda Xu gentoo-dev 2016-06-30 00:14:26 UTC
(In reply to Fabian Groffen from comment #1)
> I don't know how you end up with that ebuild, but the fixed ebuild is in the
> prefix tree, so this bug is kind of invalid, since Prefix uses that prefix
> tree for a reason.
> 
> https://gitweb.gentoo.org/repo/proj/prefix.git/tree/dev-lang/ruby

Hi, Fabian.  FYI, RAP is using gentoo main repo directly.  I will portage the patches in the prefix tree back.
Comment 3 Benda Xu gentoo-dev 2016-06-30 00:45:13 UTC
I cannot reproduce the bug with ruby-2.3.  Is there a particular reason to use ruby-2.0?
Comment 4 Martin Mokrejš 2016-06-30 09:52:05 UTC
I think the apps were developed with ruby 1.9 and 2.0. I assume 2.3 is too new to say. Anyway, I ran into the issue because emerge picked up those versions. I would say, fix all current ebuilds please.
Comment 5 Larry the Git Cow gentoo-dev 2017-10-01 11:58:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e51a85838183c48ca15f54e79860131e1c764e74

commit e51a85838183c48ca15f54e79860131e1c764e74
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2017-10-01 11:45:14 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2017-10-01 11:58:39 +0000

    dev-lang/ruby: support Prefix so as not to collide with rubygem.
    
    Credit: Martin Mokrejš
    Closes: https://bugs.gentoo.org/599378
    Closes: https://bugs.gentoo.org/587524
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-lang/ruby/ruby-2.4.2.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)