diff mbox series

mesa: fix build on musl

Message ID 20180612110402.32107-1-ross.burton@intel.com
State New
Headers show
Series mesa: fix build on musl | expand

Commit Message

Ross Burton June 12, 2018, 11:04 a.m. UTC
Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 .../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

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-graphics/mesa/files/missing-time-h.patch b/meta/recipes-graphics/mesa/files/missing-time-h.patch
new file mode 100644
index 00000000000..5a4dcd9c4da
--- /dev/null
+++ b/meta/recipes-graphics/mesa/files/missing-time-h.patch
@@ -0,0 +1,29 @@ 
+Upstream-Status: Submitted [https://lists.freedesktop.org/archives/mesa-dev/2018-June/197438.html]
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+From a138d929be540eee246f8aa6d64e8b6d23922f1b Mon Sep 17 00:00:00 2001
+From: Ross Burton <ross.burton@intel.com>
+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
+
diff --git a/meta/recipes-graphics/mesa/mesa_18.1.1.bb b/meta/recipes-graphics/mesa/mesa_18.1.1.bb
index 7aeb28bda36..d9feb334e54 100644
--- a/meta/recipes-graphics/mesa/mesa_18.1.1.bb
+++ b/meta/recipes-graphics/mesa/mesa_18.1.1.bb
@@ -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"