Bug #7971

bson_ext doesn't install correctly in Ruby 2.0.0-p0

Added by Rodrigo Rosenfeld Rosas about 1 year ago. Updated about 1 year ago.

[ruby-core:52941]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:ext
Target version:2.1.0
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] Backport:

Description

=begin
In 1.9.3 the gem would generate ((%ext/bsonext/cbson.so%)) but now it generates ((%ext/bsonext/bson_ext%)) instead. I can't see what's wrong with ((%extconf.rb%)):

dirconfig('cbson')
create
makefile('bson_ext/cbson')

I should notice I'm using RVM because I don't know if that makes any difference.

What should be done to generate ((%ext/bson_ext/cbson.so%)) like before?
=end


Related issues

Duplicates ruby-trunk - Bug #7698: RubyGems 2.0 has an incompatibility about installation of... Closed 01/15/2013

Associated revisions

Revision 39542
Added by Eric Hodel about 1 year ago

  • lib/rubygems/ext/builder.rb: Fix incompatibilities when installing extensions. Patch by Nobu. [ruby-trunk - Bug #7968] [ruby-trunk - Bug #7971]
  • lib/rubygems/ext/extconfbuilder.rb: ditto.
  • lib/rubygems/installer.rb: ditto.
  • test/rubygems/testgemextextconf_builder.rb: Test for the above.
  • test/rubygems/testgeminstaller.rb: ditto.

  • lib/rubygems/commands/sources_command.rb: Prefer HTTPS over HTTP.

  • lib/rubygems/defaults.rb: ditto

  • lib/rubygems/dependency_resolver.rb: Ditto.

  • lib/rubygems/source.rb: ditto.

  • lib/rubygems/spec_fetcher.rb: ditto.

  • lib/rubygems/specification.rb: ditto.

  • lib/rubygems/test_utilities.rb: ditto.

  • test/rubygems/test_gem.rb: Test for the above.

  • test/rubygems/testgemcommandssourcescommand.rb: ditto.

  • test/rubygems/testgemdependencyresolverapi_set.rb: ditto.

  • test/rubygems/testgemremote_fetcher.rb: ditto.

  • test/rubygems/testgemsource.rb: ditto.

  • test/rubygems/testgemspec_fetcher.rb: ditto.

History

#1 Updated by Rodrigo Rosenfeld Rosas about 1 year ago

The title should be "bson_ext doesn't install correctly in Ruby 2.0.0-p0" but it seems I'm not allowed to change it myself...

#2 Updated by Nobuyoshi Nakada about 1 year ago

  • Subject changed from bson_ext doesn't install correctly to bson_ext doesn't install correctly in Ruby 2.0.0-p0
  • Description updated (diff)

#3 Updated by Yusuke Endoh about 1 year ago

  • Description updated (diff)
  • Status changed from Open to Assigned
  • Assignee set to Nobuyoshi Nakada
  • Target version set to 2.1.0

#4 Updated by Eric Hodel about 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39542.
Rodrigo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/rubygems/ext/builder.rb: Fix incompatibilities when installing extensions. Patch by Nobu. [ruby-trunk - Bug #7968] [ruby-trunk - Bug #7971]
  • lib/rubygems/ext/extconfbuilder.rb: ditto.
  • lib/rubygems/installer.rb: ditto.
  • test/rubygems/testgemextextconf_builder.rb: Test for the above.
  • test/rubygems/testgeminstaller.rb: ditto.

  • lib/rubygems/commands/sources_command.rb: Prefer HTTPS over HTTP.

  • lib/rubygems/defaults.rb: ditto

  • lib/rubygems/dependency_resolver.rb: Ditto.

  • lib/rubygems/source.rb: ditto.

  • lib/rubygems/spec_fetcher.rb: ditto.

  • lib/rubygems/specification.rb: ditto.

  • lib/rubygems/test_utilities.rb: ditto.

  • test/rubygems/test_gem.rb: Test for the above.

  • test/rubygems/testgemcommandssourcescommand.rb: ditto.

  • test/rubygems/testgemdependencyresolverapi_set.rb: ditto.

  • test/rubygems/testgemremote_fetcher.rb: ditto.

  • test/rubygems/testgemsource.rb: ditto.

  • test/rubygems/testgemspec_fetcher.rb: ditto.

#5 Updated by Eric Hodel about 1 year ago

Thank you nobu for the RubyGems patch!

Also available in: Atom PDF