temp/mesa-git: apply patch to build on 32-bit arm

Taken from upstream. Our mesa-git is pretty outdated, we should update
it soon. But we need to unblock the repository first, so this is the
fastest way for now.
This commit is contained in:
Oliver Smith 2020-07-29 13:20:57 +02:00
parent 1915c4ecb3
commit cb22119c3d
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 39 additions and 2 deletions

View file

@ -0,0 +1,35 @@
From b3beb6207f16ac55e3934b4d4d1f178adb4f4cad Mon Sep 17 00:00:00 2001
From: Peter Seiderer <ps.report@gmx.net>
Date: Sun, 22 Mar 2020 13:03:00 +0100
Subject: [PATCH] v3d_bufmgr: fix time_t printf
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes:
error: format %ld expects argument of type long int, but argument 3 has type time_t {aka long long int}
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
---
src/gallium/drivers/v3d/v3d_bufmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c
index 50e4081dafd..31a08036b38 100644
--- a/src/gallium/drivers/v3d/v3d_bufmgr.c
+++ b/src/gallium/drivers/v3d/v3d_bufmgr.c
@@ -81,7 +81,7 @@ v3d_bo_dump_stats(struct v3d_screen *screen)
struct timespec time;
clock_gettime(CLOCK_MONOTONIC, &time);
fprintf(stderr, " now: %ld\n",
- time.tv_sec);
+ (long)time.tv_sec);
}
}
--
2.20.1

View file

@ -5,7 +5,7 @@
# new Mesa stable release
pkgname=mesa-git
pkgver=0_git20200510
pkgrel=0
pkgrel=1
_commit="56f955e4850035d915a2a87e2ebea7fa66ab5e19"
pkgdesc="Mesa DRI OpenGL library (Git)"
url="https://www.mesa3d.org"
@ -68,6 +68,7 @@ source="
adjust-cache-deflate-buffer.patch
musl-fix-includes.patch
add-use-elf-tls.patch
0001-v3d_bufmgr-fix-time_t-printf.patch
"
provides="mesa"
replaces="mesa-dricore mesa"
@ -363,4 +364,5 @@ _vulkan_layer() {
sha512sums="5b45320884e6828256eb0de90ed87fce71c86213f1fed952dac83b923947cc56794f1208a6e7bea708578b51b4150631073a5ea949cfa999c4cc280b6d934ea5 mesa-git-56f955e4850035d915a2a87e2ebea7fa66ab5e19.tar.gz
cdf22d2da3328e116c379264886bd01fd3ad5cc45fe03dc6fd97bdc4794502598ee195c0b9d975fa264d6ac31c6fa108c0535c91800ecf4fcabfd308e53074cc adjust-cache-deflate-buffer.patch
cf849044d6cc7d2af4ff015208fb09d70bf9660538699797da21bda2ecb7c1892d312af83d05116afd826708d9caafb1d05a13f09139c558aea6fee931e3eee7 musl-fix-includes.patch
9aa207a38d538abbd8e7a7210e3081508563e85e8c27b2269b8f40fd62d9fc6fee0cb2f573a0e62c42f8ba0fb85740459b761f009d5991cfd9813d7614541908 add-use-elf-tls.patch"
9aa207a38d538abbd8e7a7210e3081508563e85e8c27b2269b8f40fd62d9fc6fee0cb2f573a0e62c42f8ba0fb85740459b761f009d5991cfd9813d7614541908 add-use-elf-tls.patch
25d253e91a7ea00355d830803fbf932c5fff44c174b61d7bb85391f3878efa1ca93fbdbd50a2f6939d229f135d3ee4ab76fad8f7439c4982f4ea71bc4693e215 0001-v3d_bufmgr-fix-time_t-printf.patch"