From f2714d748289ee25c7dc4ae3704973b88fff36a4 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 15 May 2017 10:30:20 -0700 Subject: [PATCH] media-libs/mesa: Add optional dependency on sys-libs/libunwind Bug: https://bugs.gentoo.org/618164 --- media-libs/mesa/mesa-9999.ebuild | 8 +++++--- media-libs/mesa/metadata.xml | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index 93e5bd61047d..2a6e279fd590 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -40,9 +40,9 @@ for card in ${VIDEO_CARDS}; do done IUSE="${IUSE_VIDEO_CARDS} - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm - +nptl opencl osmesa pax_kernel openmax pic selinux vaapi valgrind vdpau - vulkan wayland xvmc xa" + bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 unwind + +llvm +nptl opencl osmesa pax_kernel openmax pic selinux vaapi valgrind + vdpau vulkan wayland xvmc xa" REQUIRED_USE=" d3d9? ( dri3 gallium ) @@ -93,6 +93,7 @@ RDEPEND=" >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}] x11-libs/libXfixes:=[${MULTILIB_USEDEP}] + unwind? ( sys-libs/libunwind ) llvm? ( video_cards_radeonsi? ( virtual/libelf:0=[${MULTILIB_USEDEP}] @@ -313,6 +314,7 @@ multilib_src_configure() { $(use_enable gles1) \ $(use_enable gles2) \ $(use_enable nptl glx-tls) \ + $(use_enable unwind libunwind) \ --enable-valgrind=$(usex valgrind auto no) \ --enable-llvm-shared-libs \ --with-dri-drivers=${DRI_DRIVERS} \ diff --git a/media-libs/mesa/metadata.xml b/media-libs/mesa/metadata.xml index 054cb72a186d..602443d24979 100644 --- a/media-libs/mesa/metadata.xml +++ b/media-libs/mesa/metadata.xml @@ -17,6 +17,7 @@ Enable GLESv1 support. Enable GLESv2 support. Use dev-libs/libressl for low level sha1 utility functions. + Add support for stack trace unwinding and function name resolution Enable LLVM backend for Gallium3D. Use dev-libs/nettle for low level sha1 utility functions. Enable the Clover Gallium OpenCL state tracker. -- 2.26.2