From 514de38d313f97adaeca0dd0a04ba75f372071b9 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 12 Aug 2024 07:18:18 +0000 Subject: [PATCH] net-libs/gnutls: Sync with Gentoo It's from Gentoo commit d14233d72e7cdc4e93acb83100118500f8822203. --- .../net-libs/gnutls/gnutls-3.8.6-r1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/net-libs/gnutls/gnutls-3.8.6-r1.ebuild b/sdk_container/src/third_party/portage-stable/net-libs/gnutls/gnutls-3.8.6-r1.ebuild index 939e7b1932..2eadf62b18 100644 --- a/sdk_container/src/third_party/portage-stable/net-libs/gnutls/gnutls-3.8.6-r1.ebuild +++ b/sdk_container/src/third_party/portage-stable/net-libs/gnutls/gnutls-3.8.6-r1.ebuild @@ -81,6 +81,13 @@ 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 } @@ -101,8 +108,6 @@ multilib_src_configure() { # GNU-stack (as doesn't support that) and when that's removed ld # complains about duplicate symbols [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration ) - # should be gone on next release, for gnulib memset_s breakage - [[ ${CHOST} == *-solaris* ]] && append-cppflags -D__STDC_WANT_LIB_EXT1__=1 # -fanalyzer substantially slows down the build and isn't useful for # us. It's useful for upstream as it's static analysis, but it's not