commit: 59c06ef2ca463bb033bec7aaac3ea6c6404d94e9
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 9 23:30:15 2018 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri Nov 9 23:32:22 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59c06ef2
media-libs/mesa: Add patch to fix typo in meson.build
Fixes build failures on at least ppc and sparc. Patch should be in
18.2.5 and 18.3.0.
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
.../mesa/files/mesa-18.2.4-meson-fix-libatomic-tests.patch | 13 +++++++++++++
media-libs/mesa/mesa-18.2.4.ebuild | 1 +
2 files changed, 14 insertions(+)
diff --git a/media-libs/mesa/files/mesa-18.2.4-meson-fix-libatomic-tests.patch
b/media-libs/mesa/files/mesa-18.2.4-meson-fix-libatomic-tests.patch
new file mode 100644
index 00000000000..d8709eae8f7
--- /dev/null
+++ b/media-libs/mesa/files/mesa-18.2.4-meson-fix-libatomic-tests.patch
@@ -0,0 +1,13 @@
+diff --git a/meson.build b/meson.build
+index 690e7d3d8aa..fb08e905ebd 100644
+--- a/meson.build
++++ b/meson.build
+@@ -906,7 +906,7 @@ if not cc.links('''#include <stdint.h>
+ return __sync_add_and_fetch(&v, (uint64_t)1);
+ }''',
+ name : 'GCC 64bit atomics')
+- pre_args += '-DMISSING_64_BIT_ATOMICS'
++ pre_args += '-DMISSING_64BIT_ATOMICS'
+ endif
+
+ # TODO: shared/static? Is this even worth doing?
diff --git a/media-libs/mesa/mesa-18.2.4.ebuild
b/media-libs/mesa/mesa-18.2.4.ebuild
index dbdf7d53042..a955d518e07 100644
--- a/media-libs/mesa/mesa-18.2.4.ebuild
+++ b/media-libs/mesa/mesa-18.2.4.ebuild
@@ -233,6 +233,7 @@ x86? (
PATCHES=(
"${FILESDIR}"/${P}-meson-link-gallium-nine-with-pthreads.patch
+ "${FILESDIR}"/${P}-meson-fix-libatomic-tests.patch
)
llvm_check_deps() {