Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/glm/
Date: Wed, 08 Dec 2021 05:01:58
Message-Id: 1638939614.952a29c6138d6eb1e1e3bd77781c053837924d5b.sam@gentoo
1 commit: 952a29c6138d6eb1e1e3bd77781c053837924d5b
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 8 05:00:14 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 8 05:00:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=952a29c6
7
8 media-libs/glm: fix test-core_func_integer test
9
10 Note that glm is a header-only library and the miscompilation/unintended
11 optimisation/whatever we want to call it only affectes tests, so no
12 need to revbump (no change in runtime behaviour).
13
14 See: https://github.com/g-truc/glm/pull/1087
15 Bug: https://bugs.gentoo.org/818235
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 media-libs/glm/glm-0.9.9.8-r1.ebuild | 6 +++++-
19 1 file changed, 5 insertions(+), 1 deletion(-)
20
21 diff --git a/media-libs/glm/glm-0.9.9.8-r1.ebuild b/media-libs/glm/glm-0.9.9.8-r1.ebuild
22 index 04922fcc2113..744910fd87c9 100644
23 --- a/media-libs/glm/glm-0.9.9.8-r1.ebuild
24 +++ b/media-libs/glm/glm-0.9.9.8-r1.ebuild
25 @@ -3,7 +3,7 @@
26
27 EAPI=7
28
29 -inherit cmake
30 +inherit cmake flag-o-matic
31
32 DESCRIPTION="OpenGL Mathematics"
33 HOMEPAGE="http://glm.g-truc.net/"
34 @@ -24,6 +24,10 @@ PATCHES=(
35 src_configure() {
36 # Header-only library
37 if use test; then
38 + # See https://github.com/g-truc/glm/pull/1087
39 + # https://bugs.gentoo.org/818235
40 + append-cxxflags -fno-ipa-modref
41 +
42 local mycmakeargs=(
43 -DGLM_TEST_ENABLE=ON
44 -DGLM_TEST_ENABLE_SIMD_SSE2="$(usex cpu_flags_x86_sse2 ON OFF)"