[DRE-maint] Bug#888130: ruby-net-http-persistent: FTBFS on ruby2.5: ssl verification fails

Chris West (Faux) debian at fau.xxx
Tue Jan 23 15:19:24 UTC 2018


Source: ruby-net-http-persistent
Version: 2.9.4-1
Severity: important
User: debian-ruby at lists.debian.org
Usertags: ruby2.5

Dear Maintainer,

This package fails to build against ruby2.5. Soon, there will
be a transition to ruby2.5, and this package will FTBFS in sid.

There may be some details on the wiki about common problems:
https://wiki.debian.org/Teams/Ruby/Ruby25Transition

Build log excerpt:


105 runs, 355 assertions, 0 failures, 0 errors, 4 skips

You have skipped tests. Run with --verbose for details.
/usr/bin/ruby2.5 /usr/bin/gem2deb-test-runner

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.5 from debian/ruby-test-files.yaml                       │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=/build/ruby-net-http-persistent-2.9.4/debian/ruby-net-http-persistent/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-net-http-persistent/usr/share/rubygems-integration/all:/root/.gem/ruby/2.5.0:/var/lib/gems/2.5.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.5.0:/usr/share/rubygems-integration/2.5.0:/usr/share/rubygems-integration/all ruby2.5 -ryaml -e YAML.load_file\(\"debian/ruby-test-files.yaml\"\).each\ \{\ \|f\|\ require\ f\ \}
/build/ruby-net-http-persistent-2.9.4/debian/ruby-net-http-persistent/usr/lib/ruby/vendor_ruby/net/http/persistent/ssl_reuse.rb:29: warning: Object#timeout is deprecated, use Timeout.timeout instead.
/build/ruby-net-http-persistent-2.9.4/debian/ruby-net-http-persistent/usr/lib/ruby/vendor_ruby/net/http/persistent/ssl_reuse.rb:70: warning: Object#timeout is deprecated, use Timeout.timeout instead.
Run options: --seed 44879

# Running:

E..........................................................DEPRECATED: Use assert_nil if expecting nil from /build/ruby-net-http-persistent-2.9.4/test/test_net_http_persistent.rb:816. This will fail in Minitest 6.
.........S..S....S..................DEPRECATED: Use assert_nil if expecting nil from /build/ruby-net-http-persistent-2.9.4/test/test_net_http_persistent.rb:1116. This will fail in Minitest 6.
.S........

Finished in 0.034938s, 3005.3406 runs/s, 10132.2911 assertions/s.

  1) Error:
TestNetHttpPersistentSSLReuse#test_ssl_connection_reuse:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error)
    /build/ruby-net-http-persistent-2.9.4/debian/ruby-net-http-persistent/usr/lib/ruby/vendor_ruby/net/http/persistent/ssl_reuse.rb:70:in `connect'
    /build/ruby-net-http-persistent-2.9.4/debian/ruby-net-http-persistent/usr/lib/ruby/vendor_ruby/net/http/persistent/ssl_reuse.rb:70:in `block in connect'
    /usr/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
    /usr/lib/ruby/2.5.0/timeout.rb:33:in `block in catch'
    /usr/lib/ruby/2.5.0/timeout.rb:33:in `catch'
    /usr/lib/ruby/2.5.0/timeout.rb:33:in `catch'
    /usr/lib/ruby/2.5.0/timeout.rb:108:in `timeout'
    /usr/lib/ruby/2.5.0/timeout.rb:122:in `timeout'
    /build/ruby-net-http-persistent-2.9.4/debian/ruby-net-http-persistent/usr/lib/ruby/vendor_ruby/net/http/persistent/ssl_reuse.rb:70:in `connect'
    /usr/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
    /usr/lib/ruby/2.5.0/net/http.rb:915:in `start'
    /build/ruby-net-http-persistent-2.9.4/test/test_net_http_persistent_ssl_reuse.rb:93:in `test_ssl_connection_reuse'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:107:in `block (3 levels) in run'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:204:in `capture_exceptions'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:104:in `block (2 levels) in run'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:255:in `time_it'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:103:in `block in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:350:in `on_signal'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:275:in `with_info_handler'
    /usr/lib/ruby/vendor_ruby/minitest/test.rb:102:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:839:in `run_one_method'
    /usr/lib/ruby/vendor_ruby/minitest.rb:324:in `run_one_method'
    /usr/lib/ruby/vendor_ruby/minitest.rb:311:in `block (2 levels) in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:310:in `each'
    /usr/lib/ruby/vendor_ruby/minitest.rb:310:in `block in run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:350:in `on_signal'
    /usr/lib/ruby/vendor_ruby/minitest.rb:337:in `with_info_handler'
    /usr/lib/ruby/vendor_ruby/minitest.rb:309:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `block in __run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `map'
    /usr/lib/ruby/vendor_ruby/minitest.rb:159:in `__run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:136:in `run'
    /usr/lib/ruby/vendor_ruby/minitest.rb:63:in `block in autorun'

105 runs, 354 assertions, 0 failures, 1 errors, 4 skips

You have skipped tests. Run with --verbose for details.
ERROR: Test "ruby2.5" failed. Exiting.
dh_auto_install: dh_ruby --install /build/ruby-net-http-persistent-2.9.4/debian/ruby-net-http-persistent returned exit code 1
debian/rules:15: recipe for target 'binary' failed
make: *** [binary] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Full build log:
https://rbuild.fau.xxx/2018-01-23/ruby-net-http-persistent.log

Please fix it!

Cheers,
Chris.



More information about the Pkg-ruby-extras-maintainers mailing list