#1010795 libnet-ssleay-perl: Autopkgtest failures on OpenSSL 3.0.* patch releases

Package:
libnet-ssleay-perl
Source:
libnet-ssleay-perl
Description:
Perl module for Secure Sockets Layer (SSL)
Submitter:
Simon Chopin
Date:
2022-05-14 23:12:04 UTC
Severity:
normal
Tags:
#1010795#5
Date:
2022-05-10 07:45:00 UTC
From:
To:
Hi!

In Ubuntu, we've noticed that when using OpenSSL 3.0, the autopkgtests
for this package systematically fail on new upstream revisions, needing
a package rebuild every time. This patch should address this issue
moving forward.

Thanks for considering the patch.

Simon

#1010795#10
Date:
2022-05-10 17:36:45 UTC
From:
To:
Thanks for the patch!

I have
- applied it in git
- made a cosmetical change to make it more perl-ish (or
  Test::More-ish) [0]
- tested it lightly

I'd rather wait for the upload of OpenSSL 3.x.x to unstable, because
before that a full test is rather cumbersome (the skipped tests are
in a 3.x.x-only branch, and setting this up in an experimental chroot
would require a rebuild of perl-openssl-defaults first etc.).


Cheers,
gregor

[0] https://salsa.debian.org/perl-team/modules/packages/libnet-ssleay-perl/-/commit/c5a23dcae4f0606f49c4eb5ff0107bec54d15af3

#1010795#13
Date:
2022-05-10 17:34:55 UTC
From:
To:
Hello,

Bug #1010795 in libnet-ssleay-perl reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/perl-team/modules/packages/libnet-ssleay-perl/-/commit/74deb6e629e755ad11e6a241b973ca6bdd4045b1
------------------------------------------------------------------------
Loosen the OpenSSL version checks on autopkgtests

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 packages should reasonably not fail, especially given the explicit
versioning policy from 3.0.0 forward:

https://www.openssl.org/policies/general/versioning-policy.html

Closes: #1010795
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1010795

#1010795#20
Date:
2022-05-11 10:06:28 UTC
From:
To:
Forwarding to the bug as I apparently forgot first time around.

Forwarded message from Simon Chopin (2022-05-10 19:55:05):

#1010795#25
Date:
2022-05-12 21:06:05 UTC
From:
To:
You'll get the hang :)

Makes sense, thanks.

I've updated the patch in our git repo from your Ubuntu debdiff, i.e.
added the Ubuntu-Bug field, so after an upload to Debian and a sync
to Ubuntu you should be able to drop any delta.


Cheers,
gregor

#1010795#30
Date:
2022-05-14 22:23:35 UTC
From:
To:
And uploaded to Debian/unstable, as the OpenSSL3 transition has
started here as well.


Cheers,
gregor

#1010795#35
Date:
2022-05-14 23:09:38 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libnet-ssleay-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1010795@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <gregoa@debian.org> (supplier of updated libnet-ssleay-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 15 May 2022 00:18:05 +0200
Source: libnet-ssleay-perl
Architecture: source
Version: 1.92-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Changed-By: gregor herrmann <gregoa@debian.org>
Closes: 1010795
Changes:
 libnet-ssleay-perl (1.92-2) unstable; urgency=medium
 .
   [ Simon Chopin ]
   * New patch: Loosen the OpenSSL version checks on autopkgtests.
     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.
     (Closes: #1010795, LP: #1972795)
 .
   [ gregor herrmann ]
   * Declare compliance with Debian Policy 4.6.1.
Checksums-Sha1:
 a9d0f25cf2784f733e734b6e0333628afcd8ef75 2589 libnet-ssleay-perl_1.92-2.dsc
 5296af0b064d6a77f1321b45c3b3952be544e6d5 12264 libnet-ssleay-perl_1.92-2.debian.tar.xz
Checksums-Sha256:
 8bb2d3776b8c4bf9e421dbc308d796860251556bec49452d51576ad53868e52f 2589 libnet-ssleay-perl_1.92-2.dsc
 1accc776092d6a8ba147b648da266aa64d144cf93e42eac9efe94f0d427750af 12264 libnet-ssleay-perl_1.92-2.debian.tar.xz
Files:
 a377d5dc9f7d16a19facf6004eabcd79 2589 perl optional libnet-ssleay-perl_1.92-2.dsc
 4b276e4693770535894c0bfc05803ea9 12264 perl optional libnet-ssleay-perl_1.92-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmKAK4ZfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgbmUBAAnF4KxTqzc+Fa2N92fAFlFCvNd6z31/F8kLrmD8/iGSHU1bYg7zVKxHGP
3B1gu+nzuW3qEyHC/hb3dErJ0MpiMU1lmz9NGTt+akIcCBLD/AxaPTXc9gvfVH2a
VBtNMN4qQHTWAX8Ith1+rt6pRQvwCRM770Q39uO54fbyK9AgHQ+iSQ2IH3lW6Ikt
ce2lT1QENLC24JHLeOkv5zMwN5IhU5a8tRJWQNYgIzRCM88WhIzIOlbRrX/W45Og
md8YbUObq0vzyd1jGzWkyr8X04JBYQdklsHaCy22W+fprSHgCvPRdvASjwlssiCf
WoUuTYWYtCLadjQDLsi4UciKLpsTKoChvSQzOMSooKBw5ZmCOmU+RCp+IBT2o6lH
16WnsQFiHeHpvIDwzCnLLKSk7ZKeikPqBZ2JPMfZgMLPDT39nzsjZVlwTyp+Byfo
SVwWaEnItKFxVG4G+O6nDJTjGlua4oiuaR/BRxNIcDQiwXTVI4yyjq0aJy8T9sSz
XhfIn5+pM2LVg9/VReb9H8vspqdYlHidp+BEruu8DY/SBkjWNS+X1gWBZAwBPM4Q
HLfW21IGwmuHY/doPByhh5FmYnAiGQV0z3pbzHsdn5j/zTUkTLIjZpuM+w6eFpQO
AfUOIBEUDuialb2cNbeyZYg369A19kJnddrJ3Ibn7M7xPHr0IaU=
=2P2a
-----END PGP SIGNATURE-----