#996425 hitch: FTBFS with OpenSSL 3.0

Package:
src:hitch
Source:
hitch
Submitter:
Kurt Roeckx
Date:
2022-05-24 19:51:33 UTC
Severity:
serious
Tags:
#996425#5
Date:
2021-10-13 21:06:23 UTC
From:
To:
Hi,

Your package is failing to build using OpenSSL 3.0 with the
following error:
hitch.c: In function init_dh:
hitch.c:318:2: error: PEM_read_bio_DHparams is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  318 |  dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
      |  ^~
In file included from /usr/include/openssl/ui.h:30,
                 from /usr/include/openssl/engine.h:30,
                 from hitch.c:42:
/usr/include/openssl/pem.h:469:1: note: declared here
  469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
      | ^~~~~~~~~~~~~~~~~~~
hitch.c:327:3: error: DH_free is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  327 |   DH_free(dh);
      |   ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from hitch.c:40:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
[...]

Removing the -Werror will turn those errors in warnings and should
allow building against and using OpenSSL 3.0. The functions are still
available but marked for removal in some future version.


Kurt

#996425#14
Date:
2022-05-22 19:38:25 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for hitch (versioned as 1.7.1-2.1) and uploaded
it to DELAYED/2. Please feel free to tell me if I should cancel it.

cu
Adrian

#996425#23
Date:
2022-05-23 06:34:57 UTC
From:
To:
Adrian Bunk <bunk@debian.org> writes:

Hello Adrian,

Thank you for the bugfix, I'll pull it into the packaging repo as well.

#996425#28
Date:
2022-05-24 19:49:35 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hitch, 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 996425@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated hitch 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, 22 May 2022 22:24:47 +0300
Source: hitch
Architecture: source
Version: 1.7.1-2.1
Distribution: unstable
Urgency: medium
Maintainer: Stig Sandbeck Mathisen <ssm@debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 996425
Changes:
 hitch (1.7.1-2.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Don't enable -Werror. (Closes: #996425)
Checksums-Sha1:
 75f41139adc06abaf500e4a8b08341ec498b114c 1930 hitch_1.7.1-2.1.dsc
 4f1aac90511bcd12058a9b7f3c0befd19654d848 8440 hitch_1.7.1-2.1.debian.tar.xz
Checksums-Sha256:
 a797abcb7e5e1f9ae3ef1b47c0eb01e94c5e3f4a4b225cd165b7ac02e5e5db90 1930 hitch_1.7.1-2.1.dsc
 d5535ec6d57d0891e3bfbcbc813df3793092a6729ef9955b112ae957d3885752 8440 hitch_1.7.1-2.1.debian.tar.xz
Files:
 056be32bcc41d6c6ac637eaddc153eb7 1930 web optional hitch_1.7.1-2.1.dsc
 85aecaab71288e7a6618949181d898ec 8440 web optional hitch_1.7.1-2.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmKKjl0ACgkQiNJCh6LY
mLE3Fw//Y/30JxvK5iLCAqRNFsjZAvW1sr0XBH8Mtrgq9XHrgLXXuzekkZg6mMKm
mlUR9mInB3R2pS9BkestX9+y3QIc5IzjMh41eRLtRbUOv4WtjIuUZ0inyMRFWQdC
FVNhXFMep0F/9KqrHouDnAEN95qrEqzuSQhcc5bLz4jlIO/v72/K1LAHBpEcZsKJ
YoMBQj+96Vv2XymhF7YcXW4TybLkaYbxwPzFtJlY0IWdLRZghPgMVezVI4h2mLrO
9oh0SKlofVaGM4I3OIUY2LwwjncVk8hQ+VEBhOnSQTAxue6/VUYLrg8ac+yABRBi
s7jQnXVR5sVcHn/1tJaoQNDxgRTOp40PC1olD5k/x2carOGinfZ2gnmqD9cuxvIQ
wA9IaW1xz5fBP8c8XBK2QQFqpU9wbQQDtU6R7e1wepULi5zqoy424l0x4N31+yv6
ipOiXY6yJh2u85tthkXYWrnVVthYbsKe7tpAhNMjYRUvAjPckHGKRcBmI7XfzPOL
dkJLjOyN5L06Gwi4/fPEeZ4vt6q1QbTcI/4TBlCluPkLTKAP65l/v0ad2FKxtUes
FSi7ml1j1Ov3SxfOPaoyaY15dg1mk5vXvquEAhZ7OT7rR3jZnbOrRrWsl1PED1wa
vUdmtR6cgr+54iL1ImwboaiLJlrq5WDh01c9/KNZF6Fmv+tdYaU=
=ukR/
-----END PGP SIGNATURE-----