buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Assaf Arkin" <ar...@intalio.com>
Subject Re: Upcoming release
Date Thu, 02 Oct 2008 01:08:33 GMT
On Wed, Oct 1, 2008 at 5:43 PM, Shane Witbeck <shane@digitalsanctum.com> wrote:
> Looks like the gem isn't available via installing manually:
>
> C:\projects\buildr>jruby -S gem install win32console
> JRuby limited openssl loaded. gem install jruby-openssl for full support.
> http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
> ERROR:  could not find gem win32console locally or in a repository

RbConfig::CONFIG['host_os'] returns the name of the operating system
Ruby is running on, for stock Windows it would return mswin32;
RUBY_PLATFORM returns a slight different value, for JRuby it would
always return "java".  That's because the platform is always Java, you
don't get access to specific OS features, like DLLs under Windows or
POSIX calls under Linux.

The win32console gem makes calls to the Windows API, so there's only
one variant of the gem for the platform mswin32.  If you try to gem
install it on Linux, OS X or JRuby, RubyGems will look for a variant
of the gem for the current platform, or the generic "ruby" platform,
but since only the mswin32 variant exists, report that there's no such
gem.

It appears the problem is with Gem.win_platform? detection.  JRuby
1.1.4 returns true on Windows, I can't figure out why.

Assaf

>
>
> -Shane
>
>
> On Wed, Oct 1, 2008 at 8:29 PM, Shane Witbeck <shane@digitalsanctum.com>wrote:
>
>> How about
>>
>> RbConfig::CONFIG['host_os']
>>
>> This returns a String "mswin32" on Windows XP. Not sure about Vista
>>
>> -Shane
>>
>>
>>
>> On Wed, Oct 1, 2008 at 8:13 PM, Assaf Arkin <arkin@intalio.com> wrote:
>>
>>> On Wed, Oct 1, 2008 at 5:05 PM, Shane Witbeck <shane@digitalsanctum.com>
>>> wrote:
>>> > Assaf,
>>> >
>>> > That doesn't return anything. Tried with both JRuby 1.1.2 and 1.1.4.What's
>>> > strange is that I get the expected result for both versions via jirb:
>>> >
>>> > irb(main):001:0> require 'rubygems'
>>> > => true
>>> > irb(main):002:0> Gem.win_platform?
>>> > => true
>>> > irb(main):003:0>
>>>
>>> That's output for irb, which would return true on windows; jirb on the
>>> other hand should return false.  Gem.win_platform? tests
>>> RUBY_PLATFORM, which on JRuby is always "java".
>>>
>>> Assaf
>>>
>>> >
>>> >
>>> > -Shane
>>> >
>>> >
>>> > On Wed, Oct 1, 2008 at 6:18 PM, Assaf Arkin <arkin@intalio.com> wrote:
>>> >
>>> >> On Tue, Sep 30, 2008 at 5:33 AM, Shane Witbeck <
>>> shane@digitalsanctum.com>
>>> >> wrote:
>>> >> > I attempted to install from trunk to test this and seems to get
hung
>>> up
>>> >> on
>>> >> > win32console gem...here's the result:
>>> >>
>>> >> I'm puzzled how you end up in this situation.  win32console is only
>>> >> loaded if Gem.win_platform?, which should be false when running on
>>> >> JRuby.  What happens if you run
>>> >>
>>> >> jruby -rubygems -e "p Gem.win_platform?"
>>> >>
>>> >> Assaf
>>> >>
>>> >> >
>>> >> > C:\projects\buildr>jruby -S rake setup install
>>> >> > (in C:/projects/buildr)
>>> >> > Please run rake setup to install the Allison RDoc template
>>> >> > Please run rake setup to install the Docter document generation
>>> library
>>> >> > Please run rake setup to install the RubyForge gem
>>> >> > Missing Gems builder (= 2.1.2, runtime), net-ssh (= 2.0.4, runtime),
>>> >> > net-sftp (= 2.0.1, runtime), hi
>>> >> > ghline (= 1.4.0, runtime), rubyforge (= 1.0.0, runtime), hoe (=
>>> 1.7.0,
>>> >> > runtime), Antwrap (= 0.7.0, r
>>> >> > untime), rspec (= 1.1.5, runtime), xml-simple (= 1.0.11, runtime),
>>> >> > archive-tar-minitar (= 0.5.2, run
>>> >> > time), jruby-openssl (= 0.2, runtime), please run rake setup first!
>>> >> > Bulk updating Gem source index for: http://gems.rubyforge.org/
>>> >> > Bulk updating Gem source index for: http://gems.rubyforge.org/
>>> >> > Installing allison-2.0.3 ...
>>> >> > "C:/jruby-1.1.4/bin/jruby.bat" "-S" "gem" "install" "allison" "-v"
>>> >> "2.0.3"
>>> >> > JRuby limited openssl loaded. gem install jruby-openssl for full
>>> support.
>>> >> > http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
>>> >> > Successfully installed allison-2.0.3
>>> >> > 1 gem installed
>>> >> > Installing ri documentation for allison-2.0.3...
>>> >> > Installing RDoc documentation for allison-2.0.3...
>>> >> > Installing docter-1.1.3 ...
>>> >> > "C:/jruby-1.1.4/bin/jruby.bat" "-S" "gem" "install" "docter" "-v"
>>> "1.1.3"
>>> >> > JRuby limited openssl loaded. gem install jruby-openssl for full
>>> support.
>>> >> > http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
>>> >> > Successfully installed RedCloth-3.0.4
>>> >> > Successfully installed haml-1.8.2
>>> >> > Successfully installed gem_plugin-0.2.3
>>> >> > Successfully installed mongrel-1.1.5-java
>>> >> > Successfully installed syntax-1.0.0
>>> >> > Successfully installed docter-1.1.3
>>> >> > 6 gems installed
>>> >> > Installing ri documentation for haml-1.8.2...
>>> >> > ERROR:  While generating documentation for haml-1.8.2
>>> >> > ... MESSAGE:   Unhandled special: Special: type=17, text="<!--
This
>>> is
>>> >> the
>>> >> > peanutbutterjelly element
>>> >> >  -->"
>>> >> > ... RDOC args: --ri --op
>>> >> C:/jruby-1.1.4/lib/ruby/gems/1.8/doc/haml-1.8.2/ri
>>> >> > --title Haml --main READ
>>> >> > ME --exclude lib/haml/buffer.rb --line-numbers --inline-source
>>> --quiet
>>> >> lib
>>> >> > VERSION MIT-LICENSE READM
>>> >> > E
>>> >> > (continuing with the rest of the installation)
>>> >> > Installing ri documentation for gem_plugin-0.2.3...
>>> >> > Installing ri documentation for mongrel-1.1.5-java...
>>> >> > Installing ri documentation for syntax-1.0.0...
>>> >> > Installing ri documentation for docter-1.1.3...
>>> >> > Installing RDoc documentation for haml-1.8.2...
>>> >> > Installing RDoc documentation for gem_plugin-0.2.3...
>>> >> > Installing RDoc documentation for mongrel-1.1.5-java...
>>> >> > Installing RDoc documentation for syntax-1.0.0...
>>> >> > Installing RDoc documentation for docter-1.1.3...
>>> >> > rake aborted!
>>> >> > win32console (> 0, runtime) not found in local or remote repository!
>>> >> >
>>> >> > (See full trace by running task with --trace)
>>> >> >
>>> >> > C:\projects\buildr>
>>> >> >
>>> >> > -Shane
>>> >> >
>>> >> >
>>> >> > On Mon, Sep 29, 2008 at 8:33 PM, Assaf Arkin <arkin@intalio.com>
>>> wrote:
>>> >> >
>>> >> >> On Mon, Sep 29, 2008 at 3:06 PM, Victor Hugo Borja <
>>> vic.borja@gmail.com
>>> >> >
>>> >> >> wrote:
>>> >> >> > On Mon, Sep 29, 2008 at 1:48 PM, lacton <
>>> lacton@users.sourceforge.net
>>> >> >> >wrote:
>>> >> >> >
>>> >> >> >> https://issues.apache.org/jira/browse/BUILDR-87
>>> >> >> >> Do you need help on that one, Victor?
>>> >> >> >
>>> >> >> >
>>> >> >> >> https://issues.apache.org/jira/browse/BUILDR-135
>>> >> >> >> Is there any work left to do on this issue, Victor?
>>> >> >> >
>>> >> >> >
>>> >> >> > No, I've marked those two as resolved.
>>> >> >>
>>> >> >> With that, we're down to one open issue that has to be tested
on
>>> >> Windows.
>>> >> >>
>>> >> >> I just ran RCov against trunk:
>>> >> >>
>>> >> >> 1552 examples, 0 failures
>>> >> >> 79.3%   46 file(s)   12745 Lines   6912 LOC
>>> >> >>
>>> >> >> Assaf
>>> >> >>
>>> >> >> >
>>> >> >> > --
>>> >> >> > vic
>>> >> >> >
>>> >> >> > Quaerendo invenietis.
>>> >> >> >
>>> >> >>
>>> >> >
>>> >>
>>> >
>>>
>>
>>
>

Mime
View raw message