ruby-certificate-authority: FTBFS: ERROR: Test "ruby3.0" failed: Failure/Error: expect(@cert_with_extensions.extensions["authorityKeyIdentifier"]).to eq(expected_authorityKeyIdentifier)

Bug #1981458 reported by Nick Rosbrook
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ruby-certificate-authority (Debian)
Fix Released
ruby-certificate-authority (Ubuntu)
Fix Released

Bug Description

Imported from Debian bug

Source: ruby-certificate-authority
Version: 1.0.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: <email address hidden>
Usertags: ftbfs-20220525 ftbfs-bookworm


During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> Failure/Error: expect(@cert_with_extensions.extensions["authorityKeyIdentifier"]).to eq(expected_authorityKeyIdentifier)
> expected: #<CertificateAuthority::Extensions::AuthorityKeyIdentifier:0x00005627020ac628 @critical=false, @identifier="keyid:4C:58:CB:25:F0:41:4F:52:F4:28:C8:81:43:9B:A6:A8:A0:E6:92:E5">
> got: #<CertificateAuthority::Extensions::AuthorityKeyIdentifier:0x00005627020afe18 @critical=false, @identifier="4C:58:CB:25:F0:41:4F:52:F4:28:C8:81:43:9B:A6:A8:A0:E6:92:E5">
> (compared using ==)
> Diff:
> @@ -1,5 +1,4 @@
> -#<CertificateAuthority::Extensions::AuthorityKeyIdentifier:0x00005627020ac628
> +#<CertificateAuthority::Extensions::AuthorityKeyIdentifier:0x00005627020afe18
> @critical=false,
> - @identifier=
> - "keyid:4C:58:CB:25:F0:41:4F:52:F4:28:C8:81:43:9B:A6:A8:A0:E6:92:E5">
> + @identifier="4C:58:CB:25:F0:41:4F:52:F4:28:C8:81:43:9B:A6:A8:A0:E6:92:E5">
> # ./spec/units/certificate_spec.rb:427:in `block (3 levels) in <top (required)>'
> Finished in 1.66 seconds (files took 0.55042 seconds to load)
> 189 examples, 1 failure, 1 pending
> Failed examples:
> rspec ./spec/units/certificate_spec.rb:403 # CertificateAuthority::Certificate from_openssl should check to make sure that if a certificate had extensions they were imported
> [Coveralls] Outside the CI environment, not sending data.
> Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
> /usr/bin/ruby3.0 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.10.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --exclude-pattern ./spec/units/pkcs11_key_material_spec.rb --format documentation failed
> mv ./.gem2deb.Gemfile.lock Gemfile.lock
> ERROR: Test "ruby3.0" failed:

The full build log is available from:

All bugs filed during this archive rebuild are listed at:;<email address hidden>
or:<email address hidden>&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Nick Rosbrook (enr0n)
tags: added: update-excuse
Changed in ruby-certificate-authority (Debian):
importance: Undecided → Unknown
Revision history for this message
Nick Rosbrook (enr0n) wrote :
Steve Langasek (vorlon)
Changed in ruby-certificate-authority (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-certificate-authority - 1.0.0-1ubuntu1

ruby-certificate-authority (1.0.0-1ubuntu1) kinetic; urgency=medium

  * debian/patches/0004-remove-keyid-prefix-from-test-string.patch:
    Remove 'keyid:' prefix from test string to fix build with openssl >= 3.0.
    (LP: #1981458)

 -- Nick Rosbrook <email address hidden> Tue, 12 Jul 2022 11:00:53 -0400

Changed in ruby-certificate-authority (Ubuntu):
status: Fix Committed → Fix Released
Changed in ruby-certificate-authority (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.