Package: voms Version: 2.1.0~rc2-1 Severity: serious Tags: patch experimental User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu jammy ubuntu-patch
Hi Mattias, In Ubuntu, voms is failing to build from source because Ubuntu has moved to OpenSSL 3, and voms is incompatible: [...] libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src/autogen -Wdate-time -D_FORTIFY_SOURCE=2 -I ../../src/include -g -O2 "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -c proxypolicy.c -fPIC -DPIC -o .libs/libssl_utils_nog_la-proxypolicy.o In file included from proxypolicy.c:20: proxypolicy.c:88:29: error: conflicting types for ‘PROXY_POLICY_dup’; have ‘PROXY_POLICY *(const PROXY_POLICY *)’ {aka ‘struct PROXY_POLICY_st *(const struct PROXY_POLICY_st *)’} 88 | IMPLEMENT_ASN1_DUP_FUNCTION(PROXY_POLICY); | ^~~~~~~~~~~~ In file included from proxypolicy.c:24: ../../src/include/proxypolicy.h:81:17: note: previous declaration of ‘PROXY_POLICY_dup’ with type ‘PROXY_POLICY *(PROXY_POLICY *)’ {aka ‘struct PROXY_POLICY_st *(struct PROXY_POLICY_st *)’} 81 | PROXY_POLICY* PROXY_POLICY_dup(PROXY_POLICY* policy); | ^~~~~~~~~~~~~~~~ [...] (https://launchpad.net/ubuntu/+source/voms/2.1.0~rc2-1build2/+build/22467653) This can be fixed with the attached one-liner fix, which I have uploaded to Ubuntu. Please consider applying it in Debian as well. 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 voms-2.1.0~rc2/debian/patches/openssl3.patch voms-2.1.0~rc2/debian/patches/openssl3.patch --- voms-2.1.0~rc2/debian/patches/openssl3.patch 1969-12-31 16:00:00.000000000 -0800 +++ voms-2.1.0~rc2/debian/patches/openssl3.patch 2021-12-08 15:17:42.000000000 -0800 @@ -0,0 +1,18 @@ +Description: Compatibility with OpenSSL 3 +Author: Steve Langasek <steve.langa...@ubuntu.com> +Last-Update: 2021-12-08 +Forwarded: no + +Index: voms-2.1.0~rc2/src/include/proxypolicy.h +=================================================================== +--- voms-2.1.0~rc2.orig/src/include/proxypolicy.h ++++ voms-2.1.0~rc2/src/include/proxypolicy.h +@@ -78,8 +78,6 @@ + , unsigned char * policy + , int length); + +- PROXY_POLICY* PROXY_POLICY_dup(PROXY_POLICY* policy); +- + #ifdef __cplusplus + } + #endif diff -Nru voms-2.1.0~rc2/debian/patches/series voms-2.1.0~rc2/debian/patches/series --- voms-2.1.0~rc2/debian/patches/series 2021-08-24 10:29:24.000000000 -0700 +++ voms-2.1.0~rc2/debian/patches/series 2021-12-08 15:15:18.000000000 -0800 @@ -17,3 +17,4 @@ # Change default proxy cert key length to 2048 bits # https://github.com/italiangrid/voms/pull/75 voms-change-default-proxy-cert-key-length-to-2048-bits.patch +openssl3.patch