#995642 cfengine3: FTBFS with OpenSSL 3.0

Package:
src:cfengine3
Source:
cfengine3
Submitter:
Kurt Roeckx
Date:
2022-05-21 17:06:05 UTC
Severity:
serious
Tags:
#995642#5
Date:
2021-10-03 14:56:41 UTC
From:
To:
Hi,

Your package is failing to build using OpenSSL 3.0 with the
following error:
In file included from hash.c:33:
./hash.h:64:28: error: unknown type name RSA
   64 | Hash *HashNewFromKey(const RSA *rsa, HashMethod method);
      |                            ^~~
./hash.h:163:23: error: unknown type name RSA
  163 | void HashPubKey(const RSA *key, unsigned char digest[EVP_MAX_MD_SIZE + 1], HashMethod type);
      |                       ^~~
hash.c:214:28: error: unknown type name RSA
  214 | Hash *HashNewFromKey(const RSA *rsa, HashMethod method)
      |                            ^~~
hash.c: In function HashNewFromKey:
hash.c:226:5: error: implicit declaration of function RSA_get0_key [-Werror=implicit-function-declaration]
  226 |     RSA_get0_key(rsa, &n, &e, NULL);
      |     ^~~~~~~~~~~~
hash.c: At top level:
hash.c:531:11: error: unknown type name RSA
  531 |     const RSA *const key,
      |           ^~~
cc1: some warnings being treated as errors

I'm not sure why you don't get the RSA type, it should still
exists. However, those functions have been deprecated, so you'll
need to replace them at some point.

For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html


Kurt

#995642#18
Date:
2022-05-21 16:59:10 UTC
From:
To:
Control: tags 852674 + patch
Control: tags 995642 + patch

Dear maintainer,

I've prepared an NMU for cfengine3 (versioned as 3.15.2-3.1). The diff
is attached to this message.

Cheers

#995642#23
Date:
2022-05-21 17:03:57 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cfengine3, 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 995642@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastian Ramacher <sramacher@debian.org> (supplier of updated cfengine3 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: Sat, 21 May 2022 18:25:35 +0200
Source: cfengine3
Architecture: source
Version: 3.15.2-3.1
Distribution: unstable
Urgency: medium
Maintainer: Antonio Radici <antonio@debian.org>
Changed-By: Sebastian Ramacher <sramacher@debian.org>
Closes: 852674 995642
Changes:
 cfengine3 (3.15.2-3.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * debian/control: Make cfengine3 depend on exact version of libpromises3
     (Closes: #852674)
   * debian/patches/openssl3.patch: Fix FTBFS with OpenSSL 3 (Closes: #995642)
Checksums-Sha1:
 56c31ba285ba29e5e565c2e79d6d880d944a978a 2328 cfengine3_3.15.2-3.1.dsc
 eb39b333e105673f0f1142bdc1381ae431ddcf01 19820 cfengine3_3.15.2-3.1.debian.tar.xz
Checksums-Sha256:
 ff80e2e566ff00350333682ec7e4c4598474ae611c104e6092dc9abc4e3fd47e 2328 cfengine3_3.15.2-3.1.dsc
 d237a3e7023205a134d0eaa4f09d12373188cdfaf2d4d06aae5edeccc2b001f7 19820 cfengine3_3.15.2-3.1.debian.tar.xz
Files:
 3b85a0327b92a4a7b381c01df985d80d 2328 admin optional cfengine3_3.15.2-3.1.dsc
 abe03433e76b079cece411d0845e7598 19820 admin optional cfengine3_3.15.2-3.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE94y6B4F7sUmhHTOQafL8UW6nGZMFAmKJGnAACgkQafL8UW6n
GZMZ7BAAmfe+/ckQN6jrTVaJd+K6CS//4fmVqNiEDGknDc6IYQK/C4QbTyUATzTO
2ob+kCSbQFU2VqTjrfzailvVyQc4X2NkFJ75WR16TyhOVspq93NfKr7ZlNBYXqwU
SQMsphE7LvNX3j0xWiP6R56ccDHJK235P6c4xo2Brf7lnrQmyB92sMFwVyTEgBZP
RxiWgS1WsfJEAhnEb5LAv6AaHinBm1zet39naGm6QmiVcF5F9EwCztJJz7k+ctiI
v4BQzf6xvdPTLEJKRAovr7GlB7eNIpdtpkDBi5twN1WbhOlNzrKr32MyoO7vbHda
OuUIAw+cV57HgZ4jSBkDkPJ5k9t9YLOoI1N3uegNEUxmCa7Cva3Kg7KKDuAWUMM6
Jv/cCcJw/erpo/QcyGnYKjiT9t21sKZ+EBWXQrUnwdyp3jeBSFTi8fsCVknZqvpi
c786F84mZTmqWw4JtO1xLAB98Txfny0AASHppIa7D7A6A2veD71CgXpwpzX7Pl+c
ygxZMEGaY00QtcCUdL3BB0XWP1YX+mnhyKXwDS418OlYPqSRxFMz5UFJ1NRTql0W
NMAs2WYjP989Q+70Dnv0AO7OKgMNydtI1FaGDb9U+qEMD/rxhD5TFlvqnjPb3gQm
Q50Xu+aoIiXqzC4moiWOJcNgRGKfWN6XjuIuobbgxucvQylFHkM=
=PHqq
-----END PGP SIGNATURE-----