From: Luis Lavena Date: 2010-09-09T02:41:01+09:00 Subject: [ruby-core:32165] [Ruby 1.9-Bug#3805][Open] Ruby generated gem specifications for bundled projects are incorrect --mimepart_4c87caa937bff_eed5c4081057b6 Content-Type: text/plain Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline Bug #3805: Ruby generated gem specifications for bundled projects are inc= orrect http://redmine.ruby-lang.org/issues/show/3805 Author: Luis Lavena Status: Open, Priority: Normal Category: build, Target version: 1.9.x ruby -v: ruby 1.9.3dev (2010-09-09 trunk 29199) [x86_64-darwin10.4.0] Hello, One porblem with found with Ruby 1.9.2 and current trunk is that during i= nstallation, the generated gem specifications are incomplete and lack the= versioned file information needed for a successful gem install. One common problem is the installation of rake itself. See the following = git for the full list of commands: http://gist.github.com/570419 After doing gem install rake, rake doesn't work:

$ rake --version
rake, version 0.8.7

$ gem install rake
Successfully installed rake-0.8.7
1 gem installed

$ rake --version
/Users/luis/.portile/apps/x86_64-apple-darwin10.4.0/ruby/1.9.3-trunk/lib/=
ruby/1.9.1/rubygems.rb:340:in `bin_path': can't find executable rake for =
rake-0.8.7 (Gem::Exception)
	from /Users/luis/.portile/apps/x86_64-apple-darwin10.4.0/ruby/1.9.3-trun=
k/bin/rake:19:in `
'
This issue is solved by removing the non-versioned .gemspec files (or act= ually renaming them with version. Attached is a patch that adds the version to the gemspec in rbinstall scr= ipt. With it applied:

$ rake --version
/Users/luis/.portile/apps/x86_64-apple-darwin10.4.0/ruby/1.9.3-trunk/lib/=
ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig i=
nstead of obsolete and deprecated Config.
rake, version 0.8.7
This change should also be backported into 1.9.2 branch. Thank you. ---------------------------------------- http://redmine.ruby-lang.org --mimepart_4c87caa937bff_eed5c4081057b6 Content-Type: application/octet-stream; name=0001-version-bundled-gems-during-installation.patch Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename=0001-version-bundled-gems-during-installation.patch ZGlmZiAtLWdpdCBhL3Rvb2wvcmJpbnN0YWxsLnJiIGIvdG9vbC9yYmluc3Rh bGwucmIKaW5kZXggMjY2ZDcxNy4uMGU5ZjM5YSAxMDA3NTUKLS0tIGEvdG9v bC9yYmluc3RhbGwucmIKKysrIGIvdG9vbC9yYmluc3RhbGwucmIKQEAgLTUx NSw3ICs1MTUsNyBAQCBpbnN0YWxsPyg6ZXh0LCA6Y29tbSwgOmdlbSkgZG8K ICAgICB2ZXJzaW9uID0gb3BlbihzcmMpIHt8ZnwgZi5maW5kIHt8c3wgL15c cypcdypWRVJTSU9OXHMqPSg/IT0pLyA9fiBzfX0gb3IgbmV4dAogICAgIHZl cnNpb24gPSB2ZXJzaW9uLnNwbGl0KCVyIj1ccyoiLCAyKVsxXS5zdHJpcFsv XEEoW1wnXCJdKSguKj8pXDEvLCAyXQogICAgIHB1dHMgIiN7IiAiKjMwfSN7 bmFtZX0gI3t2ZXJzaW9ufSIKLSAgICBvcGVuX2Zvcl9pbnN0YWxsKEZpbGUu am9pbihkZXN0ZGlyLCAiI3tuYW1lfS5nZW1zcGVjIiksICRkYXRhX21vZGUp IGRvCisgICAgb3Blbl9mb3JfaW5zdGFsbChGaWxlLmpvaW4oZGVzdGRpciwg IiN7bmFtZX0tI3t2ZXJzaW9ufS5nZW1zcGVjIiksICRkYXRhX21vZGUpIGRv CiAgICAgICA8PC1HRU1TUEVDCiBHZW06OlNwZWNpZmljYXRpb24ubmV3IGRv IHxzfAogICBzLm5hbWUgPSAje25hbWUuZHVtcH0K --mimepart_4c87caa937bff_eed5c4081057b6--