rubygems trunk causing build failures?

59 views
Skip to first unread message

Jon

unread,
Jul 22, 2010, 12:23:20 PM7/22/10
to rubyin...@googlegroups.com
When building with 1.8.7p299 on master using "rake ruby19 checkout=1 trunk=1", is anyone able to confirm the following build failure?

...
svn co http://rubygems.rubyforge.org/svn/trunk downloads/rubygems
...
Checked out revision 2528.
cd -
mkdir -p sandbox/rubygems
cp -r --remove-destination downloads/rubygems C:/Users/Jon/Documents/RubyDev/ri-test/sandbox
cd sandbox/rubygems
ruby setup.rb install --no-ri --no-rdoc
C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module
(NoMethodError)
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:58:in `from_installed_gems'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:883:in `source_index'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/gem_path_searcher.rb:13:in `initialize'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:841:in `new'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:841:in `block in searcher'
from <internal:prelude>:10:in `synchronize'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:840:in `searcher'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:479:in `find_files'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:983:in `load_plugins'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:1139:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from setup.rb:24:in `<main>'
rake aborted!
Command failed with status (1): [ruby setup.rb install --no-ri --no-rdoc...]


[C:\Users\Jon\Documents\RubyDev\ri-test]gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/ruby187/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/ruby187/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/ruby187/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/ruby187/lib/ruby/gems/1.8
- C:/Users/Jon/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org", "http://gemcutter.org"]
- "gem" => "--no-ri --no-rdoc"
- REMOTE SOURCES:
- http://rubygems.org
- http://gemcutter.org

Luis Lavena

unread,
Jul 22, 2010, 2:25:07 PM7/22/10
to rubyin...@googlegroups.com
On Thu, Jul 22, 2010 at 1:23 PM, Jon <jon.f...@gmail.com> wrote:
> When building with 1.8.7p299 on master using "rake ruby19 checkout=1 trunk=1", is anyone able to confirm the following build failure?
>
> ...
> svn co http://rubygems.rubyforge.org/svn/trunk downloads/rubygems
> ...

RubyGems development has moved to GitHub, so the recipe will need to
be updated, as I believe it contains some fixes for these issues.

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Roger Pack

unread,
Jul 22, 2010, 4:12:04 PM7/22/10
to rubyin...@googlegroups.com
> When building with 1.8.7p299 on master using "rake ruby19 checkout=1 trunk=1",

I assume you meant building 1.9.3?

> C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module

This may have been caused by a (now fixed) bug in gem_prelude on
trunk. Does it still occur?

Jon

unread,
Jul 22, 2010, 5:54:09 PM7/22/10
to rubyin...@googlegroups.com
> > When building with 1.8.7p299 on master using "rake ruby19 checkout=1 trunk=1", is anyone able to confirm the following build failure?
> >
> > ...
> > svn co http://rubygems.rubyforge.org/svn/trunk downloads/rubygems
> > ...
>
> RubyGems development has moved to GitHub, so the recipe will need to
> be updated, as I believe it contains some fixes for these issues.


I get the same failure

C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)

after making this quickie patch to use the RubyGems GitHub repo

http://gist.github.com/486619

Luis Lavena

unread,
Jul 22, 2010, 7:24:56 PM7/22/10
to rubyin...@googlegroups.com
On Thu, Jul 22, 2010 at 6:54 PM, Jon <jon.f...@gmail.com> wrote:
>> > When building with 1.8.7p299 on master using "rake ruby19 checkout=1 trunk=1", is anyone able to confirm the following build failure?
>> >
>> > ...
>> > svn co http://rubygems.rubyforge.org/svn/trunk downloads/rubygems
>> > ...
>>
>> RubyGems development has moved to GitHub, so the recipe will need to
>> be updated, as I believe it contains some fixes for these issues.
>
> I get the same failure
>

Turning warnings on I can see this:

<internal:lib/rubygems/custom_require>:29: warning: loading in
progress, circular require considered harmful -
C:/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/rubygems/lib/rubygems.rb


from setup.rb:24:in `<main>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'

from C:/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/rubygems/lib/rubygems.rb:1113:in


`<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'

from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
from <internal:gem_prelude>:217:in `try_activate'
from <internal:gem_prelude>:167:in `load_full_rubygems_library'


from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'

Even with 1.3.7

Going to ask this at RubyGems devel and ruby-core too.

Luis Lavena

unread,
Jul 22, 2010, 8:03:40 PM7/22/10
to rubyin...@googlegroups.com
On Thu, Jul 22, 2010 at 6:54 PM, Jon <jon.f...@gmail.com> wrote:
>
> I get the same failure
>

Try adding the following to rubygems configure_options

--disable-gems

Jon

unread,
Jul 22, 2010, 9:32:09 PM7/22/10
to rubyin...@googlegroups.com
> > I get the same failure
>
> Try adding the following to rubygems configure_options
>
> --disable-gems

still fail with http://gist.github.com/486619

ruby setup.rb install --no-ri --no-rdoc --disable-gems

Luis Lavena

unread,
Jul 22, 2010, 10:07:19 PM7/22/10
to rubyin...@googlegroups.com

Apologizes, forgot to include my patch:

http://gist.github.com/486918

You need to turn gem_prelude off using --disable-rubygems *before* the setup.rb

Since RubyGems has been part of Ruby 1.9.x series it will not affect
1.8 installation.

Feel free to commit the changes.

Jon

unread,
Jul 23, 2010, 9:41:08 AM7/23/10
to rubyin...@googlegroups.com
> Apologizes, forgot to include my patch:
>
> http://gist.github.com/486918
>
> You need to turn gem_prelude off using --disable-rubygems *before* the setup.rb
>
> Since RubyGems has been part of Ruby 1.9.x series it will not affect
> 1.8 installation.
>
> Feel free to commit the changes.


*** Good News ***

applying http://gist.github.com/486619 allowed building with "rake ruby19 checkout=1 trunk=1"

[C:\Users\Jon\Documents\RubyDev]ruby --version
ruby 1.9.3dev (2010-07-23 trunk 28731) [i386-mingw32]


*** Bad News ***

[C:\Users\Jon\Documents\RubyDev]gem env
C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58
:in `from_installed_gems'
from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
...


Would you still like me to push http://gist.github.com/486619 to master? The only change I made from yours was for style on line 40 (sh "git checkout master && git pull" rather than two separate sh calls)

Jon

Luis Lavena

unread,
Jul 23, 2010, 10:49:56 AM7/23/10
to rubyin...@googlegroups.com
On Fri, Jul 23, 2010 at 10:41 AM, Jon <jon.f...@gmail.com> wrote:
>
> *** Bad News ***
>
> [C:\Users\Jon\Documents\RubyDev]gem env
> C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
>        from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58
> :in `from_installed_gems'
>        from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
> ...

We should bring this to Ruby-Core and RubyGems, as this is going to be
a huge problem.

Can you do that?

We could probably remove the gem prelude...

Luis Lavena

unread,
Jul 23, 2010, 10:57:47 AM7/23/10
to rubyin...@googlegroups.com
On Fri, Jul 23, 2010 at 11:49 AM, Luis Lavena <luisl...@gmail.com> wrote:
> On Fri, Jul 23, 2010 at 10:41 AM, Jon <jon.f...@gmail.com> wrote:
>>
>> *** Bad News ***
>>
>> [C:\Users\Jon\Documents\RubyDev]gem env
>> C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
>>        from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58
>> :in `from_installed_gems'
>>        from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
>> ...
>
> We should bring this to Ruby-Core and RubyGems, as this is going to be
> a huge problem.
>
> Can you do that?

Forget about it, seems someone already did:

http://redmine.ruby-lang.org/issues/show/3607

We can follow up with our frustrations.

Jon

unread,
Jul 23, 2010, 11:03:26 AM7/23/10
to rubyin...@googlegroups.com
> On Fri, Jul 23, 2010 at 11:49 AM, Luis Lavena <luisl...@gmail.com> wrote:
> > On Fri, Jul 23, 2010 at 10:41 AM, Jon <jon.f...@gmail.com> wrote:
> >>
> >> *** Bad News ***
> >>
> >> [C:\Users\Jon\Documents\RubyDev]gem env
> >> C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
> >>        from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58
> >> :in `from_installed_gems'
> >>        from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
> >> ...
> >
> > We should bring this to Ruby-Core and RubyGems, as this is going to be
> > a huge problem.
>
> ...<SNIP>...

>
> http://redmine.ruby-lang.org/issues/show/3607
>
> We can follow up with our frustrations.

Just saw it. I'll add a note...

Reply all
Reply to author
Forward
0 new messages