media-libs/mesa: Add optional dependency on sys-libs/libunwind
authorMatt Turner <mattst88@gentoo.org>
Mon, 15 May 2017 17:30:20 +0000 (10:30 -0700)
committerMatt Turner <mattst88@gentoo.org>
Mon, 15 May 2017 18:34:56 +0000 (11:34 -0700)
Bug: https://bugs.gentoo.org/618164

media-libs/mesa/mesa-9999.ebuild
media-libs/mesa/metadata.xml

index 93e5bd61047dda60cd8cd5fcc3e88387d9620045..2a6e279fd5904d422c23503eadcaefea5071ede3 100644 (file)
@@ -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} \
index 054cb72a186d1fbd7ecba6fa68cca1698431e1cc..602443d24979f9555f6f1dccd562f1a1056e44b5 100644 (file)
@@ -17,6 +17,7 @@
                <flag name="gles1">Enable GLESv1 support.</flag>
                <flag name="gles2">Enable GLESv2 support.</flag>
                <flag name="libressl">Use <pkg>dev-libs/libressl</pkg> for low level sha1 utility functions.</flag>
+               <flag name="libunwind">Add support for stack trace unwinding and function name resolution</flag>
                <flag name="llvm">Enable LLVM backend for Gallium3D.</flag>
                <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for low level sha1 utility functions.</flag>
                <flag name="opencl">Enable the Clover Gallium OpenCL state tracker.</flag>