diff -Nru libnet-ssleay-perl-1.92/debian/changelog libnet-ssleay-perl-1.92/debian/changelog --- libnet-ssleay-perl-1.92/debian/changelog 2022-03-22 18:51:40.000000000 +0100 +++ libnet-ssleay-perl-1.92/debian/changelog 2022-05-11 12:09:08.000000000 +0200 @@ -1,3 +1,10 @@ +libnet-ssleay-perl (1.92-1ubuntu1) kinetic; urgency=medium + + * d/p/version_check_on_autopkgtest.patch: remove OpenSSL version checks + on autopkgtests (LP: #1972795) + + -- Simon Chopin Wed, 11 May 2022 12:09:08 +0200 + libnet-ssleay-perl (1.92-1build2) jammy; urgency=medium * No-change rebuild for OpenSSL 3.0.2. diff -Nru libnet-ssleay-perl-1.92/debian/control libnet-ssleay-perl-1.92/debian/control --- libnet-ssleay-perl-1.92/debian/control 2022-01-13 19:47:44.000000000 +0100 +++ libnet-ssleay-perl-1.92/debian/control 2022-05-11 12:09:08.000000000 +0200 @@ -1,5 +1,6 @@ Source: libnet-ssleay-perl -Maintainer: Debian Perl Group +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Perl Group Uploaders: Damyan Ivanov , gregor herrmann Section: perl diff -Nru libnet-ssleay-perl-1.92/debian/patches/series libnet-ssleay-perl-1.92/debian/patches/series --- libnet-ssleay-perl-1.92/debian/patches/series 2022-01-13 19:47:44.000000000 +0100 +++ libnet-ssleay-perl-1.92/debian/patches/series 2022-05-11 12:09:01.000000000 +0200 @@ -1 +1,2 @@ 20no-stray-libz-link.patch +version_check_on_autopkgtest.patch diff -Nru libnet-ssleay-perl-1.92/debian/patches/version_check_on_autopkgtest.patch libnet-ssleay-perl-1.92/debian/patches/version_check_on_autopkgtest.patch --- libnet-ssleay-perl-1.92/debian/patches/version_check_on_autopkgtest.patch 1970-01-01 01:00:00.000000000 +0100 +++ libnet-ssleay-perl-1.92/debian/patches/version_check_on_autopkgtest.patch 2022-05-11 12:09:08.000000000 +0200 @@ -0,0 +1,35 @@ +Subject: Loosen the OpenSSL version checks on autopkgtests +Origin: ubuntu +Bug-Debian: https://bugs.debian.org/1010795 +Forwarded: not-needed, only makes sense in a Debian-ish context +Author: Simon Chopin +Reviewed-by: gregor herrmann +Last-Update: 2022-05-10 + +The test suite checks that the OPENSSL_version_*() calls match the compile-time +constants, which is reasonable in a unit test that is run in the same time +frame as the compilation, as is usually the case. However, this check doesn't +make as much sense in the autopkgtest context, where the src:openssl package +might have been updated for a bugfix release, for instance. Such updates would +trigger an autopkgtest run, and barring regressions in OpenSSL the tests for +this package should reasonably not fail, especially given the explicit +versioning policy from 3.0.0 forward: + +https://www.openssl.org/policies/general/versioning-policy.html + +--- a/t/local/04_basic.t ++++ b/t/local/04_basic.t +@@ -55,8 +55,11 @@ + cmp_ok($patch, '>=', 0, 'OPENSSL_version_patch'); + + is(Net::SSLeay::OPENSSL_VERSION_MAJOR(), $major, 'OPENSSL_VERSION_MAJOR and OPENSSL_version_major are equal'); +- is(Net::SSLeay::OPENSSL_VERSION_MINOR(), $minor, 'OPENSSL_VERSION_MINOR and OPENSSL_version_minor are equal'); +- is(Net::SSLeay::OPENSSL_VERSION_PATCH(), $patch, 'OPENSSL_VERSION_PATCH and OPENSSL_version_patch are equal'); ++ SKIP: { ++ skip('No check of OpenSSL versions during autopkgtests.', 2) if $ENV{'AUTOPKGTEST_TMP'}; ++ is(Net::SSLeay::OPENSSL_VERSION_MINOR(), $minor, 'OPENSSL_VERSION_MINOR and OPENSSL_version_minor are equal'); ++ is(Net::SSLeay::OPENSSL_VERSION_PATCH(), $patch, 'OPENSSL_VERSION_PATCH and OPENSSL_version_patch are equal'); ++ } + + isnt(defined Net::SSLeay::OPENSSL_version_pre_release(), undef, 'OPENSSL_version_pre_release returns a defined value'); + isnt(defined Net::SSLeay::OPENSSL_version_build_metadata(), undef, 'OPENSSL_version_build_metadata returns a defined value');