From 5417d80db2bd588b7ae20a12854ec5c4c5c6fc2d Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 18 Nov 2022 04:50:27 +0000 Subject: www-servers/varnish: fix automagic libunwind dep Closes: https://bugs.gentoo.org/875572 Closes: https://bugs.gentoo.org/876466 Signed-off-by: Sam James --- www-servers/varnish/varnish-7.1.2-r1.ebuild | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'www-servers') diff --git a/www-servers/varnish/varnish-7.1.2-r1.ebuild b/www-servers/varnish/varnish-7.1.2-r1.ebuild index e9cc44e9f3e7..6e46c6ba6cd4 100644 --- a/www-servers/varnish/varnish-7.1.2-r1.ebuild +++ b/www-servers/varnish/varnish-7.1.2-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="http://varnish-cache.org/_downloads/${P}.tgz" LICENSE="BSD-2 GPL-2" SLOT="0/2" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" -IUSE="jemalloc jit static-libs" +IUSE="jemalloc jit static-libs unwind" CDEPEND=" sys-libs/readline:= @@ -22,6 +22,7 @@ CDEPEND=" dev-libs/libpcre2[jit?] sys-libs/ncurses:= jemalloc? ( dev-libs/jemalloc:= ) + unwind? ( sys-libs/libunwind:= ) " #varnish compiles stuff at run time @@ -43,15 +44,16 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" PATCHES=( "${FILESDIR}/${PN}-7.1.2-disable-tests.patch" ) src_prepare() { + default + # Remove -Werror bug #528354 - sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac + sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac || die # Upstream doesn't put varnish.m4 in the m4/ directory # We link because the Makefiles look for the file in # the original location - ln -sf ../varnish.m4 m4/varnish.m4 + ln -sf ../varnish.m4 m4/varnish.m4 || die - default eautoreconf } @@ -60,6 +62,7 @@ src_configure() { $(use_enable static-libs static) $(use_enable jit pcre2-jit) $(use_with jemalloc) + $(use_with unwind) ) econf "${myeconfargs[@]}" } -- cgit v1.2.3-65-gdbad