lack of "http 80/tcp" in /etc/inet/services in Solaris 10 causes error during make test-all
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 ngoto (Naohisa Goto) over 4 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]