Project

General

Profile

Actions

Bug #10004

closed

lack of "http 80/tcp" in /etc/inet/services in Solaris 10 causes error during make test-all

Added by ngoto (Naohisa Goto) almost 10 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0dev (2014-06-25) [sparc64-solaris2.10]
[ruby-core:63518]

Description

On Solaris 10, because of the lack of "http" in the default /etc/inet/services, the following error occurs during make test-all.

 52) Error:
TestGemCommandsServerCommand#test_handle_options_port:
OptionParser::InvalidArgument: invalid argument: -p http: no such named service
    /XXXXX/lib/rubygems/commands/server_command.rb:21:in `rescue in block in initialize'
    /XXXXX/lib/rubygems/commands/server_command.rb:18:in `block in initialize'
    /XXXXX/lib/rubygems/command.rb:375:in `handle_options'
    /XXXXX/test/rubygems/test_gem_commands_server_command.rb:40:in `test_handle_options_port'

The file /etc/inet/services in Illumos (OpenIndiana) was already updated in 2011. (https://www.illumos.org/issues/2690 )
I don't know in Solaris 11 because I don't have Solaris 11.

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

It seems correct that rubygems can't continue in such case.
Probably those situations should be skipped.

Actions #2

Updated by ngoto (Naohisa Goto) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r52329.


  • test/rubygems/test_gem_commands_server_command.rb
    (test_handle_options_port): change port from http to discard.
    Solaris does not include "http 80/tcp" in its default
    /etc/inet/services. AFAIK, discard (9/tcp) is older than http
    and it is expected that all OS can resolve the service name.
    [Bug #10004] [ruby-core:63518]

Updated by ngoto (Naohisa Goto) over 8 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0