From 54f9c1fafdc7a60435ef47b8a3c26459ced96256 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 21 Aug 2024 19:09:36 +0200 Subject: [PATCH] net-libs/gnutls-3.8.7.1-r1: replace one gnulib hack for another (Solaris) No longer need the previous hacks, but now need another to fix symbol versioning problems. Signed-off-by: Fabian Groffen --- net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild b/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild index 74f6ffe49d3ae..8dee2bec3d09e 100644 --- a/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild +++ b/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild @@ -90,13 +90,6 @@ src_prepare() { # fails to compile in certain configurations sed -i -e 's/__APPLE__/__NO_APPLE__/' lib/system/certs.c || die - if [[ ${CHOST} == *-solaris* ]] ; then - # should be gone on next release, for gnulib memset_s breakage - append-cppflags -D__STDC_WANT_LIB_EXT1__=1 - # alloca usage, similar - sed -i -e '$a#include ' config.h.in || die - fi - # Use sane .so versioning on FreeBSD. #elibtoolize @@ -156,6 +149,12 @@ multilib_src_configure() { ) ECONF_SOURCE="${S}" econf "${libconf[@]}" "${myeconfargs[@]}" + + if [[ ${CHOST} == *-solaris* ]] ; then + # gnulib ends up defining its own pthread_mutexattr_gettype + # otherwise, which is causing versioning problems + echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >> config.h || die + fi } multilib_src_install_all() {