mesa: fix build on musl
PATCH 1/1 mesa: fix build on musl
Signed-off-by Ross Burton <[email protected]>
--- .../mesa/files/missing-time-h.patch | 29 ++++++++++++++++++++++ meta/recipes-graphics/mesa/mesa_18.1.1.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta/recipes-graphics/mesa/files/missing-time-h.patch
meta/recipes-graphics/mesa/files/missing-time-h.patch new file +29 -0
@@ -0,0 +1,29 @@ +Upstream-Status: Submitted [https://lists.freedesktop.org/archives/mesa-dev/2018-June/197438.html] +Signed-off-by: Ross Burton <[email protected]> + +From a138d929be540eee246f8aa6d64e8b6d23922f1b Mon Sep 17 00:00:00 2001 +From: Ross Burton <[email protected]> +Date: Tue, 12 Jun 2018 11:57:58 +0100 +Subject: [PATCH] drivers/dri/i965: add missing #include + +brw_bufmgr.h uses time_t without include time.h, so the build fails under musl. +--- + src/mesa/drivers/dri/i965/brw_bufmgr.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h +index 68f5e0c2c8..5c2702652b 100644 +--- a/src/mesa/drivers/dri/i965/brw_bufmgr.h ++++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h +@@ -37,6 +37,8 @@ + #include <stdbool.h> + #include <stdint.h> + #include <stdio.h> ++#include <time.h> ++ + #include "util/u_atomic.h" + #include "util/list.h" + +-- +2.11.0 +
meta/recipes-graphics/mesa/mesa_18.1.1.bb +1 -0
@@ -7,6 +7,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ file://0004-hardware-gloat.patch \ file://0005-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch \ file://0006-Use-Python-3-to-execute-the-scripts.patch \ + file://missing-time-h.patch \ " SRC_URI[md5sum] = "063468c930ff61d211ece0191874fa95"
Signature · 1 line
2.11.0