Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/glm/files/, media-libs/glm/
Date: Thu, 12 Sep 2019 07:02:10
Message-Id: 1568271710.ac0397adc5b4ddfc44e26de96c743f2e54a7a91a.tupone@gentoo
commit:     ac0397adc5b4ddfc44e26de96c743f2e54a7a91a
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 12 07:01:50 2019 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep 12 07:01:50 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac0397ad

media-libs/glm: disable SSE2

Closes: https://bugs.gentoo.org/693954
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 media-libs/glm/files/glm-0.9.9.6-simd.patch | 11 +++++++++++
 media-libs/glm/glm-0.9.9.6.ebuild           |  2 ++
 2 files changed, 13 insertions(+)

diff --git a/media-libs/glm/files/glm-0.9.9.6-simd.patch b/media-libs/glm/files/glm-0.9.9.6-simd.patch
new file mode 100644
index 00000000000..5ed2bf1f6d6
--- /dev/null
+++ b/media-libs/glm/files/glm-0.9.9.6-simd.patch
@@ -0,0 +1,11 @@
+--- a/glm/simd/platform.h	2019-03-06 18:57:53.309630574 +0100
++++ b/glm/simd/platform.h	2019-03-06 18:58:30.796988006 +0100
+@@ -245,7 +245,7 @@
+ 
+ #define GLM_ARCH_NEON_BIT	(0x00000001)
+ #define GLM_ARCH_SSE_BIT	(0x00000002)
+-#define GLM_ARCH_SSE2_BIT	(0x00000004)
++#define GLM_ARCH_SSE2_BIT	(0x00000000)
+ #define GLM_ARCH_SSE3_BIT	(0x00000008)
+ #define GLM_ARCH_SSSE3_BIT	(0x00000010)
+ #define GLM_ARCH_SSE41_BIT	(0x00000020)

diff --git a/media-libs/glm/glm-0.9.9.6.ebuild b/media-libs/glm/glm-0.9.9.6.ebuild
index 89d9894cf71..7049a117fce 100644
--- a/media-libs/glm/glm-0.9.9.6.ebuild
+++ b/media-libs/glm/glm-0.9.9.6.ebuild
@@ -16,6 +16,8 @@ IUSE="test cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_avx cpu_flags_x86
 
 RDEPEND="virtual/opengl"
 
+PATCHES=( "${FILESDIR}"/${P}-simd.patch )
+
 src_prepare() {
 	cmake-utils_src_prepare
 	sed \