Bug#1006386: libcrypt-openssl-pkcs12-perl: FTBFS with OpenSSL 3.0

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Thu Feb 24 20:17:44 GMT 2022


Source: libcrypt-openssl-pkcs12-perl
Version: 1.9-1
Severity: important
Tags: bookworm sid
User: pkg-openssl-devel at lists.alioth.debian.org
Usertags: ftbfs-3.0

Your package is failing to build using OpenSSL 3.0 with the
following error:

|    dh_auto_test
| 	make -j1 test TEST_VERBOSE=1
| make[1]: Entering directory '/<<PKGBUILDDIR>>'
| "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- PKCS12.bs blib/arch/auto/Crypt/OpenSSL/PKCS12/PKCS12.bs 644
| PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'inc', 'blib/lib', 'blib/arch')" t/pkcs12-string.t t/pkcs12.t t/pod-coverage.t t/pod.t
| # Attempting to read certificate string from file certs/test.p12
| 
| #   Failed test 'PEM certificate created'
| #   at t/pkcs12-string.t line 86.
| # 
| 
| #   Failed test 'Asserting PEM key'
| #   at t/pkcs12-string.t line 90.
| # 
| PKCS12_newpass: testing foo
| 409751B0547F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
| 409751B0547F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
| 409751B0547F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
| 409751B0547F0000:error:11800072:PKCS12 routines:PKCS12_newpass:parse error:../crypto/pkcs12/p12_npas.c:49:
| 
| #   Failed test 'Changing password'
| #   at t/pkcs12-string.t line 97.
| # 
| PKCS12_verify_mac: 
| # Looks like your test exited with 2 just after 23.
| # 
| t/pkcs12-string.t .. 
| 1..29
| ok 1 - use Crypt::OpenSSL::PKCS12;
| ok 2
| ok 3
| ok 4 - utf8 string refused new_from_string()
| ok 5
| ok 6 - utf8 string refused in new_from_string()
| ok 7
| ok 8
| ok 9
| ok 10
| ok 11
| ok 12
| ok 13
| ok 14
| ok 15
| ok 16
| ok 17
| ok 18 - PKCS object created
| not ok 19 - PEM certificate created
| not ok 20 - Asserting PEM key
| ok 21 - Asserting mac
| ok 22 - Asserting PKCS12 as string
| not ok 23 - Changing password
| Dubious, test returned 2 (wstat 512, 0x200)
| Failed 9/29 subtests 
| # Attempting to read certificate from certs/test.p12
| 
| #   Failed test 'PEM certificate created'
| #   at t/pkcs12.t line 24.
| 
| #   Failed test 'Asserting PEM key'
| #   at t/pkcs12.t line 28.
| PKCS12_newpass: testing foo
| 409770A45D7F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
| 409770A45D7F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
| 409770A45D7F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:349:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()
| 409770A45D7F0000:error:11800072:PKCS12 routines:PKCS12_newpass:parse error:../crypto/pkcs12/p12_npas.c:49:
| 
| #   Failed test 'Changing password'
| #   at t/pkcs12.t line 35.
| PKCS12_verify_mac: 
| # Looks like your test exited with 2 just after 7.
| t/pkcs12.t ......... 
| 1..16
| ok 1 - use Crypt::OpenSSL::PKCS12;
| ok 2 - PKCS object created
| not ok 3 - PEM certificate created
| not ok 4 - Asserting PEM key
| ok 5 - Asserting mac
| ok 6 - Asserting PKCS12 as string
| not ok 7 - Changing password
| Dubious, test returned 2 (wstat 512, 0x200)
| Failed 12/16 subtests 
| t/pod-coverage.t ... 
| 1..1
| ok 1 - Crypt::OpenSSL::PKCS12 is covered
| ok
| t/pod.t ............ 
| 1..1
| ok 1 - POD test for blib/lib/Crypt/OpenSSL/PKCS12.pm
| ok
| 
| Test Summary Report
| -------------------
| t/pkcs12-string.t (Wstat: 512 Tests: 23 Failed: 3)
|   Failed tests:  19-20, 23
|   Non-zero exit status: 2
|   Parse errors: Bad plan.  You planned 29 tests but ran 23.
| t/pkcs12.t       (Wstat: 512 Tests: 7 Failed: 3)
|   Failed tests:  3-4, 7
|   Non-zero exit status: 2
|   Parse errors: Bad plan.  You planned 16 tests but ran 7.
| Files=4, Tests=32,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.27 cusr  0.07 csys =  0.36 CPU)
| Result: FAIL
| Failed 2/4 test programs. 6/32 subtests failed.
| make[1]: *** [Makefile:947: test_dynamic] Error 255

I tried with perl-openssl-defaults, libcrypt-openssl-bignum-perl,
libcrypt-openssl-random-perl, libcrypt-openssl-rsa-perl which were built
against openssl 3.0 but the build still failed.
 
For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html

Sebastian



More information about the pkg-perl-maintainers mailing list