dev-libs/cglm: Backport upstream fix to 0.8.2.

This fixes a typo in 0.8.2, causing a warning
and actual misbehaviour.

Closes: https://bugs.gentoo.org/787677
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
This commit is contained in:
Oliver Freyermuth
2021-05-02 15:06:33 +02:00
parent fee29b1d9c
commit 65ce8e0ffc
2 changed files with 27 additions and 0 deletions

View File

@@ -23,6 +23,11 @@ IUSE="doc"
BDEPEND="dev-util/meson
doc? ( dev-python/sphinx )"
PATCHES=(
# Upstream patch: https://github.com/recp/cglm/commit/13269f4af8d3c95220f97746c968eac3ba122a32
"${FILESDIR}"/${PN}-0.8.2-fix-vec3-vec4.patch
)
src_configure() {
local emesonargs=(
"-Dwerror=false"

View File

@@ -0,0 +1,22 @@
From 13269f4af8d3c95220f97746c968eac3ba122a32 Mon Sep 17 00:00:00 2001
From: winter091 <winter091@yandex.ru>
Date: Sat, 1 May 2021 16:48:31 +0300
Subject: [PATCH] fix typo: vec3 -> vec4
---
include/cglm/call/vec4.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/cglm/call/vec4.h b/include/cglm/call/vec4.h
index 28a3734..f56f599 100644
--- a/include/cglm/call/vec4.h
+++ b/include/cglm/call/vec4.h
@@ -99,7 +99,7 @@ glmc_vec4_scale(vec4 v, float s, vec4 dest);
CGLM_EXPORT
void
-glmc_vec4_scale_as(vec3 v, float s, vec3 dest);
+glmc_vec4_scale_as(vec4 v, float s, vec4 dest);
CGLM_EXPORT
void