Projects

Ticket #574 (new defect)

Opened 6 months ago

Last modified 6 months ago

macgem should install binaries to /usr/local/bin

Reported by: honglilai@… Owned by: eloy.de.enige@…
Priority: blocker Milestone:
Component: MacRuby Keywords:
Cc:

Description

macgem currently installs binaries to /usr/bin. This was fine when all the binaries were prefixed with "mac", but that change has been reverted. Installing any gem binaries with macgem now overwrites the ones previously installed by MRI.

The attached patch changes the gem bindir to /usr/local/bin.

Attachments

gem-bindir-to-local.diff Download (389 bytes) - added by honglilai@… 6 months ago.

Change History

Changed 6 months ago by honglilai@…

Changed 6 months ago by eloy.de.enige@…

  • owner changed from lsansonetti@… to eloy.de.enige@…

Actually, as recently discussed with Laurent, in the case of MacRuby RubyGems should simply install into the configured prefix. I will look into this today.

Changed 6 months ago by honglilai@…

What is the configured prefix and where is it stored? Configbindir? points to /Library/Framework/MacRuby/....../bin which doesn't look like what we want. Configprefix? also points to the framework directory.

Changed 6 months ago by lsansonetti@…

I talked to Eloy this morning and we agreed on the following plan:

  1. upgrade rubygems to 1.3.5 (backporting any change we made to 1.3.1)
  2. change our rbconfig.rb's bindir to /usr/local/bin (honoring the rake sym_instdir option)
  3. customize rubygems so that our gem repository is somewhere in /Library/Ruby (/Library/Ruby/Gems/MacRuby might be a good candidate)
  4. getting rid of the RUBY_FRAMEWORK constant in our rbconfig.rb

Maybe this entry can be used to track all the changes above.

PS: trac is a big pile of s!@#.

Note: See TracTickets for help on using tickets.