Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539700 - =dev-lang/ruby-2.2.0: files installed under /usr/local
Summary: =dev-lang/ruby-2.2.0: files installed under /usr/local
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 537838
  Show dependency tree
 
Reported: 2015-02-11 03:08 UTC by Michael Orlitzky
Modified: 2015-02-15 09:58 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,4.97 KB, text/plain)
2015-02-11 03:08 UTC, Michael Orlitzky
Details
ruby-2.2.0-build.log (ruby-2.2.0-build.log,293.70 KB, text/plain)
2015-02-11 03:08 UTC, Michael Orlitzky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2015-02-11 03:08:09 UTC
Created attachment 396158 [details]
emerge-info.txt

This was originally going to be about a collision with dev-ruby/power_assert, but it looks like that's fixed now (sort of). The last time I synced, both dev-ruby/power_assert and dev-lang/ruby:2.2 were installing the power_assert gem under /usr/local. Now it looks like dev-ruby/power_assert is fixed:

  $ equery f dev-ruby/power_assert
  ...
  /usr/lib64/ruby/gems/2.2.0/gems/power_assert-0.2.2
  /usr/lib64/ruby/gems/2.2.0/gems/power_assert-0.2.2/lib
  /usr/lib64/ruby/gems/2.2.0/gems/power_assert-0.2.2/lib/power_assert
  ...

But ruby:2.2 is still installing it under /usr/local!

  $ equery f ruby:2.2 | grep power_assert
  ...
  /usr/local/lib64/ruby/gems/2.2.0/cache/power_assert-0.2.2.gem
  /usr/local/lib64/ruby/gems/2.2.0/gems/power_assert-0.2.2
  /usr/local/lib64/ruby/gems/2.2.0/gems/power_assert-0.2.2/.gitignore
  ...

The interesting part of the build log:

  installing bundle gems:       /usr/local/lib64/ruby/gems/2.2.0 (build_info, cache, doc,
  extensions, gems, specifications)
                              test-unit-3.0.8.gem
                              power_assert-0.2.2.gem
                              minitest-5.4.3.gem

The package manager isn't allowed to touch /usr/local, but if you fix that, there's going to be a collision again. I don't think I'm doing anything tricky.

  $ ACCEPT_KEYWORDS="~amd64" USE=-doc emerge -pv1 ruby:2.2
  [ebuild   R    ] dev-lang/ruby-2.2.0:2.2  USE="ipv6 ncurses rdoc readline ssl 
  -berkdb -debug -doc -examples -gdbm -jemalloc -rubytests -socks5 -xemacs" 0 KiB
Comment 1 Michael Orlitzky gentoo-dev 2015-02-11 03:08:46 UTC
Created attachment 396160 [details]
ruby-2.2.0-build.log
Comment 2 Rafał Mużyło 2015-02-11 23:16:01 UTC
Did you check config.log for hints ?
Comment 3 Hans de Graaff gentoo-dev Security 2015-02-13 09:55:51 UTC
I'm aware of this issue. It only happens on a fresh install which is why I did not notice this initially. In any case these gems should be unbundled when installing.
Comment 4 Hans de Graaff gentoo-dev Security 2015-02-15 09:58:18 UTC
(In reply to Hans de Graaff from comment #3)
> I'm aware of this issue. It only happens on a fresh install which is why I
> did not notice this initially. In any case these gems should be unbundled
> when installing.

Actually the gems always get installed, so the files either end up in /usr/local on a fresh install, or in /usr on an existing install, where they will then cause file collisions.

ruby-2.2.0-r1 properly unbundles these gems and makes sure they are installed with PDEPEND.