Created attachment 525316 [details, diff] Updated patch to fix support for libressl-2.7 The trousers package no longer builds with libressl since the update to libressl-2.7.1: [ebuild N ] app-crypt/trousers-0.3.14-r1::gentoo USE="libressl -doc (-selinux)" 1,347 KiB The error is: /bin/sh ../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"trousers\" -DPACKAGE_TARNAME=\"trousers\" -DPACKAGE_VERSION=\"0.3.14\" -DPACKAGE_STRING=\"trousers\ 0.3.14\" -DPACKAGE_BUGREPORT=\"trousers-tech@lists.sf.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"trousers\" -DVERSION=\"0.3.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OPENSSL_BN_H=1 -DHAVE_OPENSSL_ENGINE_H=1 -DHAVE_PTHREAD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHTOLE_DEFINED=1 -DHAVE_DAEMON=1 -I. -DAPPID=\"TSPI\" -I../../src/include -O2 -pipe -march=native -mtune=native -DBI_OPENSSL -W -Wall -Wno-unused-parameter -Wsign-compare -I../include -DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0 -DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 -DTSS_SPEC_MINOR=2 -c -o crypto/openssl/libtrousers_la-rsa.lo `test -f 'crypto/openssl/rsa.c' || echo './'`crypto/openssl/rsa.c libtool: compile: x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"trousers\" -DPACKAGE_TARNAME=\"trousers\" -DPACKAGE_VERSION=\"0.3.14\" "-DPACKAGE_STRING=\"trousers 0.3.14\"" -DPACKAGE_BUGREPORT=\"trousers-tech@lists.sf.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"trousers\" -DVERSION=\"0.3.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OPENSSL_BN_H=1 -DHAVE_OPENSSL_ENGINE_H=1 -DHAVE_PTHREAD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHTOLE_DEFINED=1 -DHAVE_DAEMON=1 -I. -DAPPID=\"TSPI\" -I../../src/include -O2 -pipe -march=native -mtune=native -DBI_OPENSSL -W -Wall -Wno-unused-parameter -Wsign-compare -I../include -DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0 -DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 -DTSS_SPEC_MINOR=2 -c crypto/openssl/rsa.c -fPIC -DPIC -o crypto/openssl/.libs/libtrousers_la-rsa.o crypto/openssl/rsa.c:43:1: error: static declaration of ‘RSA_set0_key’ follows non-static declaration RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) ^~~~~~~~~~~~ In file included from crypto/openssl/rsa.c:23:0: /usr/include/openssl/rsa.h:401:5: note: previous declaration of ‘RSA_set0_key’ was here int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); ^~~~~~~~~~~~ make[2]: *** [Makefile:448: crypto/openssl/libtrousers_la-rsa.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/home/portage/portage/app-crypt/trousers-0.3.14-r1/work/src/trspi' make[1]: *** [M This can be fixed by updating the existing patch in /usr/portage/app-crypt/trousers/files/trousers-0.3.14-libressl.patch to take account of the new LIBRESSL_VERSION_NUMBER.
*** Bug 655808 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=046ed1c49505e13af56efe0b592062dd0f7971c7 commit 046ed1c49505e13af56efe0b592062dd0f7971c7 Author: Alon Bar-Lev <alonbl@gentoo.org> AuthorDate: 2018-09-01 18:10:59 +0000 Commit: Alon Bar-Lev <alonbl@gentoo.org> CommitDate: 2018-09-01 18:11:41 +0000 app-crypt/trousers: fix libressl-2.7 issue Closes: https://bugs.gentoo.org/show_bug.cgi?id=651402 Thanks: Reuben Farrelly Package-Manager: Portage-2.3.40, Repoman-2.3.9 app-crypt/trousers/files/trousers-0.3.14-libressl.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)