From 849e258d73f69e37d6957cd8f105ffd5a8f4d43505f950b56e2392f8e54c9cfb Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Tue, 3 Mar 2015 10:32:49 +0000 Subject: [PATCH] Accepting request 288561 from home:namtrac:llvm-3.6 - Add u_gallivm_Update_for_RTDyldMemoryManager_unique_ptr.patch to fix build with llvm 3.6 (fdo#86958) OBS-URL: https://build.opensuse.org/request/show/288561 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=432 --- Mesa.changes | 6 ++++ Mesa.spec | 3 ++ ...e_for_RTDyldMemoryManager_unique_ptr.patch | 29 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 u_gallivm_Update_for_RTDyldMemoryManager_unique_ptr.patch diff --git a/Mesa.changes b/Mesa.changes index c60e6aa..f808193 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 2 19:27:19 UTC 2015 - idonmez@suse.com + +- Add u_gallivm_Update_for_RTDyldMemoryManager_unique_ptr.patch to + fix build with llvm 3.6 (fdo#86958) + ------------------------------------------------------------------- Tue Feb 24 16:08:49 UTC 2015 - tobias.johannes.klausmann@mni.thm.de diff --git a/Mesa.spec b/Mesa.spec index 5b451ab..4c99ce7 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -54,6 +54,8 @@ Patch11: u_Fix-crash-in-swrast-when-setting-a-texture-for-a-pix.patch Patch13: u_mesa-8.0.1-fix-16bpp.patch # Patch from Fedora, use shmget when available, under llvmpipe Patch15: u_mesa-8.0-llvmpipe-shmget.patch +# Fix build with llvm 3.6 fdo#86958 +Patch16: u_gallivm_Update_for_RTDyldMemoryManager_unique_ptr.patch BuildRequires: autoconf >= 2.60 BuildRequires: automake BuildRequires: bison @@ -514,6 +516,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} #%patch15 -p1 #%patch13 -p1 ### +%patch16 -p1 %build %if 0%{?suse_version} >= 1310 diff --git a/u_gallivm_Update_for_RTDyldMemoryManager_unique_ptr.patch b/u_gallivm_Update_for_RTDyldMemoryManager_unique_ptr.patch new file mode 100644 index 0000000..1ff99f7 --- /dev/null +++ b/u_gallivm_Update_for_RTDyldMemoryManager_unique_ptr.patch @@ -0,0 +1,29 @@ +From ef7e0b39a24966526b102643523feac765771842 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= +Date: Wed, 3 Dec 2014 07:48:26 +0000 +Subject: gallivm: Update for RTDyldMemoryManager becoming an unique_ptr. + +Trivial. + +Fixes https://bugs.freedesktop.org/show_bug.cgi?id=86958 + +diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +index fe3c754..5210acc 100644 +--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp ++++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +@@ -500,8 +500,12 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT, + MM = new ShaderMemoryManager(JMM); + *OutCode = MM->getGeneratedCode(); + ++#if HAVE_LLVM >= 0x0306 ++ builder.setMCJITMemoryManager(std::unique_ptr(MM)); ++#else + builder.setMCJITMemoryManager(MM); + #endif ++#endif + } else { + #if HAVE_LLVM < 0x0306 + BaseMemoryManager* JMM = reinterpret_cast(CMM); +-- +cgit v0.10.2 +