==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_f56fe05e-fb3c-4b9d-9c52-073b86f3b095]...done ==> Making package: ruby-puma 6.4.2-1.1 (Fri Aug 9 21:08:17 2024) ==> Retrieving sources... -> Downloading ruby-puma-6.4.2.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 378k 0 378k 0 0 833k 0 --:--:-- --:--:-- --:--:-- 833k -> Found ruby-puma_fix_tests.patch ==> Validating source files with sha512sums... ruby-puma-6.4.2.tar.gz ... Passed ruby-puma_fix_tests.patch ... Passed ==> Validating source files with b2sums... ruby-puma-6.4.2.tar.gz ... Passed ruby-puma_fix_tests.patch ... Passed ==> Making package: ruby-puma 6.4.2-1.1 (Fri Aug 9 21:08:19 2024) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... warning: dependency cycle detected: warning: rubygems will be installed before its ruby dependency Package (5) New Version Net Change extra/libyaml 0.2.5-3 0.18 MiB extra/rubygems 3.4.19-1 2.26 MiB extra/ruby 3.2.4-1 16.12 MiB extra/ruby-nio4r 2.7.3-1 0.61 MiB extra/ruby-sd_notify 0.1.1-3 0.01 MiB Total Installed Size: 19.19 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libyaml... installing rubygems... installing ruby... Optional dependencies for ruby tk: for Ruby/TK ruby-docs: Documentation for Ruby ruby-default-gems: Default gems which are part of Ruby StdLib ruby-bundled-gems: Bundled gems which are part of Ruby StdLib ruby-stdlib: Full Ruby StdLib including default gems, bundled gems and tools installing ruby-nio4r... installing ruby-sd_notify... ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (12) New Version Net Change extra/ruby-erb 4.0.4-4 0.09 MiB extra/ruby-webrick 1.8.1-3 0.20 MiB extra/ruby-bundler 2.5.11-2 1.58 MiB extra/ruby-minitest 5.22.3-1 0.69 MiB extra/ruby-minitest-proveit 1.0.0-3 0.01 MiB extra/ruby-minitest-retry 0.2.2-2 0.02 MiB extra/ruby-minitest-stub-const 0.6-3 0.01 MiB extra/ruby-rack 3.0.8-2 0.79 MiB extra/ruby-rackup 2.1.0-2 0.04 MiB extra/ruby-rake 13.0.6-3 0.26 MiB extra/ruby-rake-compiler 1.2.5-2 0.23 MiB extra/ruby-rdoc 6.5.1.1-2 2.82 MiB Total Installed Size: 6.74 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing ruby-bundler... installing ruby-minitest... installing ruby-minitest-proveit... installing ruby-minitest-retry... installing ruby-minitest-stub-const... installing ruby-rack... installing ruby-rake... installing ruby-webrick... installing ruby-rackup... installing ruby-rake-compiler... installing ruby-erb... installing ruby-rdoc... ==> Retrieving sources... -> Found ruby-puma-6.4.2.tar.gz -> Found ruby-puma_fix_tests.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting ruby-puma-6.4.2.tar.gz with bsdtar ==> Starting prepare()... Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/test/test_binder.rb b/test/test_binder.rb |index 31d3ff86..c18fb85f 100644 |--- a/test/test_binder.rb |+++ b/test/test_binder.rb -------------------------- patching file test/test_binder.rb Using Plan A... Hunk #1 succeeded at 390. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/test/test_config.rb b/test/test_config.rb |index ec8e21c6..e4d2c6f4 100644 |--- a/test/test_config.rb |+++ b/test/test_config.rb -------------------------- patching file test/test_config.rb Using Plan A... Hunk #1 succeeded at 69. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/test/test_integration_ssl.rb b/test/test_integration_ssl.rb |index 88917fe7..608061f1 100644 |--- a/test/test_integration_ssl.rb |+++ b/test/test_integration_ssl.rb -------------------------- patching file test/test_integration_ssl.rb Using Plan A... Hunk #1 succeeded at 229. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/test/test_pumactl.rb b/test/test_pumactl.rb |index b3093bf9..2e9039c9 100644 |--- a/test/test_pumactl.rb |+++ b/test/test_pumactl.rb -------------------------- patching file test/test_pumactl.rb Using Plan A... Hunk #1 succeeded at 260. Hunk #2 succeeded at 284. done removed 'test/config/ssl_self_signed_config.rb' removed 'test/test_preserve_bundler_env.rb' removed 'test/test_puma_localhost_authority.rb' removed 'test/test_worker_gem_independence.rb' ==> Starting build()... using OpenSSL pkgconfig (openssl.pc) checking for openssl/bio.h... yes checking for DTLS_method() in openssl/ssl.h... yes checking for SSL_CTX_set_session_cache_mode(NULL, 0) in openssl/ssl.h... yes checking for TLS_server_method() in openssl/ssl.h... yes checking for SSL_CTX_set_min_proto_version(NULL, 0) in openssl/ssl.h... yes checking for X509_STORE_up_ref()... yes checking for SSL_CTX_set_ecdh_auto(NULL, 0) in openssl/ssl.h... yes checking for SSL_CTX_set_dh_auto(NULL, 0) in openssl/ssl.h... yes checking for SSL_get1_peer_certificate() in openssl/ssl.h... yes checking for Random.bytes... yes creating Makefile compiling ../../../../ext/puma_http11/http11_parser.c compiling ../../../../ext/puma_http11/mini_ssl.c compiling ../../../../ext/puma_http11/puma_http11.c linking shared-object puma/puma_http11.so /usr/bin/install -c -m 0755 puma_http11.so ../../../../lib/puma puma 6.4.2 built to pkg/puma-6.4.2.gem. ==> Starting check()... /usr/bin/install -c -m 0755 puma_http11.so ../../../../lib/puma Rack::Handler is deprecated and replaced by Rackup::Handler /usr/lib/ruby/gems/3.2.0/gems/rack-3.0.8/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in Rack 3.1 Run options: --seed 37712 # Running: ......................................................................................F..............................................................SF..........................................................S........................................................................S.................................................................S...................S........S..S.....................F................................F.2024-08-09 21:09:00 +0200 SSL error, peer: ::1, peer cert: /DC=net/DC=puma/CN=CA: # E.E.E...........................................................................................................................................................................F................. Finished in 62.908968s, 10.0304 runs/s, 29.1691 assertions/s. Errors & Failures: 1) Failure: TestPumaServerSSLWithCertPemAndKeyPem#test_server_ssl_with_cert_pem_and_key_pem [test/test_puma_server_ssl.rb:503]: Expected # to be nil. 2) Failure: TestExampleCertExpiration#test_certs_not_expired [test/test_example_cert_expiration.rb:40]: Cert puma/chain_cert/cert.crt has expired. Check the puma/chain_cert for a `.rb` with instructions on how to regenerate. 3) Failure: TestPumaServerSSLClient#test_verify_fail_if_client_expired_cert [test/test_puma_server_ssl.rb:338]: --- expected +++ actual @@ -1 +1,3 @@ -"/DC=net/DC=puma/CN=localhost" +# encoding: ASCII-8BIT +# valid: true +"/DC=net/DC=puma/CN=CA" 4) Failure: TestPumaServerSSLClient#test_verify_client_cert [test/test_puma_server_ssl.rb:348]: SSL_connect returned=1 errno=0 peeraddr=127.0.0.1:33083 state=error: certificate verify failed (certificate has expired). Expected: false Actual: true 5) Error: TestIntegrationSSL#test_ssl_run_with_curl_client: RuntimeError: "curl -s -v --show-error --cacert /startdir/src/puma-6.4.2/examples/puma/client-certs/ca.crt --cert /startdir/src/puma-6.4.2/examples/puma/client-certs/client.crt --key /startdir/src/puma-6.4.2/examples/puma/client-certs/client.key --tlsv1.2 --tls-max 1.2 -X GET -k https://localhost:41761" process failed: pid 3222 exit 35 * Host localhost:41761 was resolved. * IPv6: ::1 * IPv4: 127.0.0.1 * Trying [::1]:41761... * Connected to localhost (::1) port 41761 * ALPN: curl offers h2,http/1.1 } [5 bytes data] * TLSv1.2 (OUT), TLS handshake, Client hello (1): } [221 bytes data] * TLSv1.2 (IN), TLS handshake, Server hello (2): { [61 bytes data] * TLSv1.2 (IN), TLS handshake, Certificate (11): { [1575 bytes data] * TLSv1.2 (IN), TLS handshake, Server key exchange (12): { [300 bytes data] * TLSv1.2 (IN), TLS handshake, Request CERT (13): { [58 bytes data] * TLSv1.2 (IN), TLS handshake, Server finished (14): { [4 bytes data] * TLSv1.2 (OUT), TLS handshake, Certificate (11): } [786 bytes data] * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): } [37 bytes data] * TLSv1.2 (OUT), TLS handshake, CERT verify (15): } [264 bytes data] * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): } [1 bytes data] * TLSv1.2 (OUT), TLS handshake, Finished (20): } [16 bytes data] * OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:41761 * closing connection #0 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:41761 test/test_integration_ssl.rb:317:in `curl_and_get_response' test/test_integration_ssl.rb:191:in `test_ssl_run_with_curl_client' test/helper.rb:91:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' test/helper.rb:89:in `block (3 levels) in run' 6) Error: TestIntegrationSSL#test_verify_client_cert_roundtrip_tls1_2: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 peeraddr=[::1]:32903 state=error: certificate verify failed (certificate has expired) test/helpers/test_puma/puma_socket.rb:334:in `connect' test/helpers/test_puma/puma_socket.rb:334:in `new_socket' test/helpers/test_puma/puma_socket.rb:180:in `send_http' test/helpers/test_puma/puma_socket.rb:132:in `send_http_read_resp_body' test/test_integration_ssl.rb:135:in `test_verify_client_cert_roundtrip' test/test_integration_ssl.rb:157:in `test_verify_client_cert_roundtrip_tls1_2' test/helper.rb:91:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' test/helper.rb:89:in `block (3 levels) in run' 7) Error: TestIntegrationSSL#test_verify_client_cert_roundtrip: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 peeraddr=[::1]:39437 state=error: certificate verify failed (certificate has expired) test/helpers/test_puma/puma_socket.rb:334:in `connect' test/helpers/test_puma/puma_socket.rb:334:in `new_socket' test/helpers/test_puma/puma_socket.rb:180:in `send_http' test/helpers/test_puma/puma_socket.rb:132:in `send_http_read_resp_body' test/test_integration_ssl.rb:135:in `test_verify_client_cert_roundtrip' test/helper.rb:91:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' test/helper.rb:89:in `block (3 levels) in run' 8) Failure: TestIntegrationSingle#test_term_not_accepts_new_connections [test/test_integration_single.rb:124]: Expected /Connection refused|Couldn't connect to server/ to match " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\ncurl: (7) Failed to connect to 127.0.0.1 port 42219 after 0 ms: Could not connect to server\n". 631 runs, 1835 assertions, 5 failures, 3 errors, 7 skips You have skipped tests. Run with --verbose for details. rake aborted! Command failed with status (1) Tasks: TOP => test:all => test (See full trace by running task with --trace) ==> ERROR: A failure occurred in check(). Aborting... ==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_f56fe05e-fb3c-4b9d-9c52-073b86f3b095/build