1 |
commit: 65ce8e0ffcc8bccc88df3cfd4f38aabdcf16f371 |
2 |
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Sun May 2 13:06:33 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun May 2 13:06:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=65ce8e0f |
7 |
|
8 |
dev-libs/cglm: Backport upstream fix to 0.8.2. |
9 |
|
10 |
This fixes a typo in 0.8.2, causing a warning |
11 |
and actual misbehaviour. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/787677 |
14 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
15 |
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> |
16 |
|
17 |
.../{cglm-0.8.2.ebuild => cglm-0.8.2-r1.ebuild} | 5 +++++ |
18 |
dev-libs/cglm/files/cglm-0.8.2-fix-vec3-vec4.patch | 22 ++++++++++++++++++++++ |
19 |
2 files changed, 27 insertions(+) |
20 |
|
21 |
diff --git a/dev-libs/cglm/cglm-0.8.2.ebuild b/dev-libs/cglm/cglm-0.8.2-r1.ebuild |
22 |
similarity index 86% |
23 |
rename from dev-libs/cglm/cglm-0.8.2.ebuild |
24 |
rename to dev-libs/cglm/cglm-0.8.2-r1.ebuild |
25 |
index 4009cf449..6c84b8aea 100644 |
26 |
--- a/dev-libs/cglm/cglm-0.8.2.ebuild |
27 |
+++ b/dev-libs/cglm/cglm-0.8.2-r1.ebuild |
28 |
@@ -23,6 +23,11 @@ IUSE="doc" |
29 |
BDEPEND="dev-util/meson |
30 |
doc? ( dev-python/sphinx )" |
31 |
|
32 |
+PATCHES=( |
33 |
+ # Upstream patch: https://github.com/recp/cglm/commit/13269f4af8d3c95220f97746c968eac3ba122a32 |
34 |
+ "${FILESDIR}"/${PN}-0.8.2-fix-vec3-vec4.patch |
35 |
+) |
36 |
+ |
37 |
src_configure() { |
38 |
local emesonargs=( |
39 |
"-Dwerror=false" |
40 |
|
41 |
diff --git a/dev-libs/cglm/files/cglm-0.8.2-fix-vec3-vec4.patch b/dev-libs/cglm/files/cglm-0.8.2-fix-vec3-vec4.patch |
42 |
new file mode 100644 |
43 |
index 000000000..1819ab1a6 |
44 |
--- /dev/null |
45 |
+++ b/dev-libs/cglm/files/cglm-0.8.2-fix-vec3-vec4.patch |
46 |
@@ -0,0 +1,22 @@ |
47 |
+From 13269f4af8d3c95220f97746c968eac3ba122a32 Mon Sep 17 00:00:00 2001 |
48 |
+From: winter091 <winter091@××××××.ru> |
49 |
+Date: Sat, 1 May 2021 16:48:31 +0300 |
50 |
+Subject: [PATCH] fix typo: vec3 -> vec4 |
51 |
+ |
52 |
+--- |
53 |
+ include/cglm/call/vec4.h | 2 +- |
54 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
55 |
+ |
56 |
+diff --git a/include/cglm/call/vec4.h b/include/cglm/call/vec4.h |
57 |
+index 28a3734..f56f599 100644 |
58 |
+--- a/include/cglm/call/vec4.h |
59 |
++++ b/include/cglm/call/vec4.h |
60 |
+@@ -99,7 +99,7 @@ glmc_vec4_scale(vec4 v, float s, vec4 dest); |
61 |
+ |
62 |
+ CGLM_EXPORT |
63 |
+ void |
64 |
+-glmc_vec4_scale_as(vec3 v, float s, vec3 dest); |
65 |
++glmc_vec4_scale_as(vec4 v, float s, vec4 dest); |
66 |
+ |
67 |
+ CGLM_EXPORT |
68 |
+ void |