summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-09-06 18:56:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-07 14:36:30 +0100
commit5ec7af42ecf47339cda194b73b31765426db40aa (patch)
tree4a21c8176d3d1ac95be1ddcb21afd0f7b49260f8 /meta/recipes-graphics/mesa
parent6c6643eb4a7cee924acfb5cbffc828b2936e6f50 (diff)
downloadpoky-5ec7af42ecf47339cda194b73b31765426db40aa.tar.gz
libglu: update 9.0.2 -> 9.0.3
Drop backport. Set gl_provider explicitly, as upstream changed the default to glvnd. (From OE-Core rev: 3f8627d8367720ec3160b337f46b4d383ebf431d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r--meta/recipes-graphics/mesa/libglu/0001-Remove-deprecated-register-in-C-17.patch32
-rw-r--r--meta/recipes-graphics/mesa/libglu_9.0.3.bb (renamed from meta/recipes-graphics/mesa/libglu_9.0.2.bb)9
2 files changed, 5 insertions, 36 deletions
diff --git a/meta/recipes-graphics/mesa/libglu/0001-Remove-deprecated-register-in-C-17.patch b/meta/recipes-graphics/mesa/libglu/0001-Remove-deprecated-register-in-C-17.patch
deleted file mode 100644
index 95d56e9573..0000000000
--- a/meta/recipes-graphics/mesa/libglu/0001-Remove-deprecated-register-in-C-17.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From 1910b3a83a7e5aa1a31c4325829c94134fafce76 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 13 Jan 2023 20:58:07 -0800
4Subject: [PATCH] Remove deprecated register in C++17
5
6Fixes errors like
7
8src/libnurbs/internals/varray.cc:76:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
9 register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
10 ^~~~~~~~~
11
12Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/10]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/libnurbs/internals/varray.cc | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/src/libnurbs/internals/varray.cc b/src/libnurbs/internals/varray.cc
19index 1cb2354..41b3b18 100644
20--- a/src/libnurbs/internals/varray.cc
21+++ b/src/libnurbs/internals/varray.cc
22@@ -73,8 +73,8 @@ Varray::~Varray( void )
23 inline void
24 Varray::update( Arc_ptr arc, long dir[2], REAL val )
25 {
26- register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
27- register long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
28+ long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
29+ long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
30
31 if( dir[0] != ds || dir[1] != dt ) {
32 dir[0] = ds;
diff --git a/meta/recipes-graphics/mesa/libglu_9.0.2.bb b/meta/recipes-graphics/mesa/libglu_9.0.3.bb
index 525d631611..8151727c52 100644
--- a/meta/recipes-graphics/mesa/libglu_9.0.2.bb
+++ b/meta/recipes-graphics/mesa/libglu_9.0.3.bb
@@ -11,17 +11,18 @@ LIC_FILES_CHKSUM = "file://include/GL/glu.h;endline=29;md5=6b79c570f644363b35645
11# Epoch as this used to be part of mesa 11# Epoch as this used to be part of mesa
12PE = "2" 12PE = "2"
13 13
14SRC_URI = "https://mesa.freedesktop.org/archive/glu/glu-${PV}.tar.gz \ 14SRC_URI = "https://mesa.freedesktop.org/archive/glu/glu-${PV}.tar.xz \
15 file://0001-Remove-deprecated-register-in-C-17.patch \
16 " 15 "
17 16
18SRC_URI[sha256sum] = "24effdfb952453cc00e275e1c82ca9787506aba0282145fff054498e60e19a65" 17SRC_URI[sha256sum] = "bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f"
19 18
20S = "${WORKDIR}/glu-${PV}" 19S = "${WORKDIR}/glu-${PV}"
21 20
22DEPENDS = "virtual/libgl" 21DEPENDS = "virtual/libgl"
23 22
24inherit autotools pkgconfig features_check 23inherit meson pkgconfig features_check
24
25EXTRA_OEMESON = "-Dgl_provider=gl"
25 26
26# Requires libGL.so which is provided by mesa when x11 in DISTRO_FEATURES 27# Requires libGL.so which is provided by mesa when x11 in DISTRO_FEATURES
27REQUIRED_DISTRO_FEATURES = "x11 opengl" 28REQUIRED_DISTRO_FEATURES = "x11 opengl"