Package: trustedqsl Version: 2.5.9-1 Severity: serious Tags: patch experimental Justification: ftbfs User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu jammy ubuntu-patch
Dear maintainers, In Ubuntu, the trustedqsl package fails to build because it uses the ERR_GET_FUNC() macro, which has been obsoleted in OpenSSL 3. The attached patch addresses this by removing the call to the macro, allowing trustedqsl to build. Please consider applying this patch in Debian. OpenSSL 3 is currently in experimental, and expected to be the version of OpenSSL shipped in the next release of Debian. Thanks for considering, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru trustedqsl-2.5.9/debian/patches/openssl3.patch trustedqsl-2.5.9/debian/patches/openssl3.patch --- trustedqsl-2.5.9/debian/patches/openssl3.patch 1969-12-31 16:00:00.000000000 -0800 +++ trustedqsl-2.5.9/debian/patches/openssl3.patch 2021-12-08 16:45:06.000000000 -0800 @@ -0,0 +1,20 @@ +Description: compatibility with OpenSSL 3 + OpenSSL 3 no longer supports an ERR_GET_FUNC() macro, so remove the reference + from the code. +Author: Steve Langasek <steve.langa...@ubuntu.com> +Last-Update: 2021-12-08 +Forwarded: no + +Index: trustedqsl-2.5.9/src/openssl_cert.cpp +=================================================================== +--- trustedqsl-2.5.9.orig/src/openssl_cert.cpp ++++ trustedqsl-2.5.9/src/openssl_cert.cpp +@@ -4285,7 +4285,7 @@ + tqsl_ssl_error_is_nofile() { + unsigned long l = ERR_peek_error(); + if (tQSL_Error == TQSL_OPENSSL_ERROR && +- ERR_GET_LIB(l) == ERR_LIB_SYS && ERR_GET_FUNC(l) == SYS_F_FOPEN) ++ ERR_GET_LIB(l) == ERR_LIB_SYS) + return 1; + if (tQSL_Error == TQSL_SYSTEM_ERROR && tQSL_Errno == ENOENT) + return 1; diff -Nru trustedqsl-2.5.9/debian/patches/series trustedqsl-2.5.9/debian/patches/series --- trustedqsl-2.5.9/debian/patches/series 2021-11-07 15:41:26.000000000 -0800 +++ trustedqsl-2.5.9/debian/patches/series 2021-12-08 16:43:38.000000000 -0800 @@ -1,2 +1,3 @@ 01-install-libtqsllib-so-in-usr-lib-trustedqsl.patch 02-typos.patch +openssl3.patch