Projects

Ticket #574 (new defect)

Opened 2 years ago

Last modified 4 months ago

macgem should install binaries to /usr/local/bin

Reported by: honglilai@… Owned by: eloy.de.enige@…
Priority: blocker Milestone: MacRuby 1.0
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@… 2 years ago.

Change History

Changed 2 years ago by honglilai@…

Changed 2 years 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 2 years 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 2 years 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!@#.

Changed 14 months ago by watson1978@…

  • milestone set to MacRuby 1.0

Changed 7 months ago by isaackearse@…

I have been running into this issue a lot recently as it has become more realistic to install gems with MacRuby.

Maybe the patch attached to this ticket would be a good workaround until someone has time to execute the above plan?

Changed 4 months ago by isaackearse@…

I have sent a pull request with the changes discussed here:  https://github.com/MacRuby/MacRuby/pull/46

Cheers, Isaac

Note: See TracTickets for help on using tickets.