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/
Date: Mon, 08 Apr 2019 19:53:52
Message-Id: 1554753208.7a4ffbffc1336d3036ce4339691ac533212d2bc4.tupone@gentoo
1 commit: 7a4ffbffc1336d3036ce4339691ac533212d2bc4
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 8 19:53:28 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 8 19:53:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a4ffbff
7
8 media-libs/glm: remove unused patch
9
10 Closes: https://github.com/gentoo/gentoo/pull/11625
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12 Package-Manager: Portage-2.3.62, Repoman-2.3.11
13
14 media-libs/glm/files/glm-0.9.8.5-gcc7_tests.patch | 70 -----------------------
15 media-libs/glm/files/glm-gcc73.patch | 35 ------------
16 2 files changed, 105 deletions(-)
17
18 diff --git a/media-libs/glm/files/glm-0.9.8.5-gcc7_tests.patch b/media-libs/glm/files/glm-0.9.8.5-gcc7_tests.patch
19 deleted file mode 100644
20 index d7744aed555..00000000000
21 --- a/media-libs/glm/files/glm-0.9.8.5-gcc7_tests.patch
22 +++ /dev/null
23 @@ -1,70 +0,0 @@
24 -Bug: https://bugs.gentoo.org/638312
25 -Upstream commit: https://github.com/g-truc/glm/commit/e37cf6e47fa4305c82845103b17af58f6cfe23db
26 -
27 -From e37cf6e47fa4305c82845103b17af58f6cfe23db Mon Sep 17 00:00:00 2001
28 -From: Christophe Riccio <christophe.riccio@×××××××.com>
29 -Date: Thu, 17 Aug 2017 00:08:37 +0200
30 -Subject: [PATCH] Fixed GCC 7.1.0 failing tests #666
31 -
32 ----
33 - test/core/core_type_mat2x4.cpp | 4 +++-
34 - test/core/core_type_mat3x4.cpp | 4 +++-
35 - test/core/core_type_mat4x4.cpp | 3 ++-
36 - 3 files changed, 8 insertions(+), 3 deletions(-)
37 -
38 -diff --git a/test/core/core_type_mat2x4.cpp b/test/core/core_type_mat2x4.cpp
39 -index 17afebf91..eea3e46f4 100644
40 ---- a/test/core/core_type_mat2x4.cpp
41 -+++ b/test/core/core_type_mat2x4.cpp
42 -@@ -1,3 +1,5 @@
43 -+#include <glm/gtc/epsilon.hpp>
44 -+#include <glm/gtc/constants.hpp>
45 - #include <glm/vector_relational.hpp>
46 - #include <glm/mat2x2.hpp>
47 - #include <glm/mat2x3.hpp>
48 -@@ -83,7 +85,7 @@ namespace cast
49 - glm::mat2x4 Identity(1.0f);
50 -
51 - for(glm::length_t i = 0, length = B.length(); i < length; ++i)
52 -- Error += glm::all(glm::equal(B[i], Identity[i])) ? 0 : 1;
53 -+ Error += glm::all(glm::epsilonEqual(B[i], Identity[i], glm::epsilon<float>())) ? 0 : 1;
54 -
55 - return Error;
56 - }
57 -diff --git a/test/core/core_type_mat3x4.cpp b/test/core/core_type_mat3x4.cpp
58 -index e3b78d31b..74a45d87a 100644
59 ---- a/test/core/core_type_mat3x4.cpp
60 -+++ b/test/core/core_type_mat3x4.cpp
61 -@@ -1,3 +1,5 @@
62 -+#include <glm/gtc/epsilon.hpp>
63 -+#include <glm/gtc/constants.hpp>
64 - #include <glm/vector_relational.hpp>
65 - #include <glm/mat2x2.hpp>
66 - #include <glm/mat2x3.hpp>
67 -@@ -87,7 +89,7 @@ namespace cast
68 - glm::mat3x4 Identity(1.0f);
69 -
70 - for(glm::length_t i = 0, length = B.length(); i < length; ++i)
71 -- Error += glm::all(glm::equal(B[i], Identity[i])) ? 0 : 1;
72 -+ Error += glm::all(glm::epsilonEqual(B[i], Identity[i], glm::epsilon<float>())) ? 0 : 1;
73 -
74 - return Error;
75 - }
76 -diff --git a/test/core/core_type_mat4x4.cpp b/test/core/core_type_mat4x4.cpp
77 -index 3966c2b7f..fd2aca8b4 100644
78 ---- a/test/core/core_type_mat4x4.cpp
79 -+++ b/test/core/core_type_mat4x4.cpp
80 -@@ -1,3 +1,4 @@
81 -+#include <glm/gtc/constants.hpp>
82 - #include <glm/gtc/epsilon.hpp>
83 - #include <glm/matrix.hpp>
84 - #include <glm/mat2x2.hpp>
85 -@@ -263,7 +264,7 @@ namespace cast
86 - glm::mat4x4 Identity(1.0f);
87 -
88 - for(glm::length_t i = 0, length = B.length(); i < length; ++i)
89 -- Error += glm::all(glm::equal(B[i], Identity[i])) ? 0 : 1;
90 -+ Error += glm::all(glm::epsilonEqual(B[i], Identity[i], glm::epsilon<float>())) ? 0 : 1;
91 -
92 - return Error;
93 - }
94
95 diff --git a/media-libs/glm/files/glm-gcc73.patch b/media-libs/glm/files/glm-gcc73.patch
96 deleted file mode 100644
97 index 68033b5b6f6..00000000000
98 --- a/media-libs/glm/files/glm-gcc73.patch
99 +++ /dev/null
100 @@ -1,35 +0,0 @@
101 -diff -ur glm-0.9.8.5.orig/glm/simd/platform.h glm-0.9.8.5/glm/simd/platform.h
102 ---- glm-0.9.8.5.orig/glm/simd/platform.h 2017-08-16 05:15:24.000000000 -0700
103 -+++ glm-0.9.8.5/glm/simd/platform.h 2018-01-26 15:38:57.584130263 -0800
104 -@@ -111,7 +111,8 @@
105 - #define GLM_COMPILER_GCC70 0x02000A00
106 - #define GLM_COMPILER_GCC71 0x02000B00
107 - #define GLM_COMPILER_GCC72 0x02000C00
108 --#define GLM_COMPILER_GCC80 0x02000D00
109 -+#define GLM_COMPILER_GCC73 0x02000D00
110 -+#define GLM_COMPILER_GCC80 0x02000E00
111 -
112 - // CUDA
113 - #define GLM_COMPILER_CUDA 0x10000000
114 -@@ -283,6 +284,8 @@
115 - # define GLM_COMPILER (GLM_COMPILER_GCC71)
116 - # elif (__GNUC__ == 7) && (__GNUC_MINOR__ == 2)
117 - # define GLM_COMPILER (GLM_COMPILER_GCC72)
118 -+# elif (__GNUC__ == 7) && (__GNUC_MINOR__ == 3)
119 -+# define GLM_COMPILER (GLM_COMPILER_GCC73)
120 - # elif (__GNUC__ >= 8)
121 - # define GLM_COMPILER (GLM_COMPILER_GCC80)
122 - # else
123 -diff -ur glm-0.9.8.5.orig/test/core/core_setup_message.cpp glm-0.9.8.5/test/core/core_setup_message.cpp
124 ---- glm-0.9.8.5.orig/test/core/core_setup_message.cpp 2017-08-16 05:15:24.000000000 -0700
125 -+++ glm-0.9.8.5/test/core/core_setup_message.cpp 2018-01-26 15:37:56.953298475 -0800
126 -@@ -86,6 +86,9 @@
127 - case GLM_COMPILER_GCC72:
128 - std::printf("GCC 7.2\n");
129 - break;
130 -+ case GLM_COMPILER_GCC73:
131 -+ std::printf("GCC 7.3\n");
132 -+ break;
133 - case GLM_COMPILER_GCC80:
134 - std::printf("GCC 8.0\n");
135 - break;