mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
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:
@@ -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"
|
||||
22
dev-libs/cglm/files/cglm-0.8.2-fix-vec3-vec4.patch
Normal file
22
dev-libs/cglm/files/cglm-0.8.2-fix-vec3-vec4.patch
Normal 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
|
||||
Reference in New Issue
Block a user