diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2020-03-19 00:41:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-21 22:39:01 +0000 |
commit | 10121e7a3c3d1f77586766be575a53cbe836b98c (patch) | |
tree | 89759e3277963e51379bbfee02d38ff767ab935c /meta/recipes-graphics | |
parent | 3e3b66ca1d4602fc79e1d1c3065994b1c082bcce (diff) | |
download | poky-10121e7a3c3d1f77586766be575a53cbe836b98c.tar.gz |
glew: upgrade 2.1.0 -> 2.2.0
0001-Fixed-compilation-with-current-mesa-versions.patch
removed since it is included in 2.2.0
(From OE-Core rev: 39e59246cb8e3b5b65ad10935e08078f5053e350)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/glew/glew/0001-Fixed-compilation-with-current-mesa-versions.patch | 73 | ||||
-rw-r--r-- | meta/recipes-graphics/glew/glew_2.2.0.bb (renamed from meta/recipes-graphics/glew/glew_2.1.0.bb) | 7 |
2 files changed, 3 insertions, 77 deletions
diff --git a/meta/recipes-graphics/glew/glew/0001-Fixed-compilation-with-current-mesa-versions.patch b/meta/recipes-graphics/glew/glew/0001-Fixed-compilation-with-current-mesa-versions.patch deleted file mode 100644 index 64f3e2fd9b..0000000000 --- a/meta/recipes-graphics/glew/glew/0001-Fixed-compilation-with-current-mesa-versions.patch +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | From 7f65a36866f4e24dd1446fe1c9d21424f28bcabd Mon Sep 17 00:00:00 2001 | ||
2 | From: Deve <deveee@gmail.com> | ||
3 | Date: Wed, 14 Nov 2018 21:07:29 +0100 | ||
4 | Subject: [PATCH] Fixed compilation with current mesa versions. | ||
5 | |||
6 | As you can see in | ||
7 | https://cgit.freedesktop.org/mesa/mesa/tree/include/GL/glext.h | ||
8 | now the file uses __gl_glext_h_ instead of __glext_h_ | ||
9 | It's precisely caused by commit f7d42ee7d319256608ad60778f6787c140badada | ||
10 | |||
11 | Backoprt notes: | ||
12 | |||
13 | * The original patch adjusts auto/src/glew_head.h only | ||
14 | * include/GL/glew.h is not part of git repo and gets created on tarball | ||
15 | creation | ||
16 | |||
17 | => patch include/GL/glew.h either to cause the desired fix | ||
18 | |||
19 | Upstream-Status: Backport [1] | ||
20 | |||
21 | [1] https://github.com/nigels-com/glew/commit/7f65a36866f4e24dd1446fe1c9d21424f28bcabd | ||
22 | |||
23 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
24 | --- | ||
25 | auto/src/glew_head.h | 3 ++- | ||
26 | include/GL/glew.h | 3 ++- | ||
27 | 2 files changed, 4 insertions(+), 2 deletions(-) | ||
28 | |||
29 | diff --git a/auto/src/glew_head.h b/auto/src/glew_head.h | ||
30 | index c19cefb..8f313d9 100644 | ||
31 | --- a/auto/src/glew_head.h | ||
32 | +++ b/auto/src/glew_head.h | ||
33 | @@ -14,7 +14,7 @@ | ||
34 | #if defined(__REGAL_H__) | ||
35 | #error Regal.h included before glew.h | ||
36 | #endif | ||
37 | -#if defined(__glext_h_) || defined(__GLEXT_H_) | ||
38 | +#if defined(__glext_h_) || defined(__GLEXT_H_) || defined(__gl_glext_h_) | ||
39 | #error glext.h included before glew.h | ||
40 | #endif | ||
41 | #if defined(__gl_ATI_h_) | ||
42 | @@ -30,6 +30,7 @@ | ||
43 | #define __X_GL_H | ||
44 | #define __glext_h_ | ||
45 | #define __GLEXT_H_ | ||
46 | +#define __gl_glext_h_ | ||
47 | #define __gl_ATI_h_ | ||
48 | |||
49 | #if defined(_WIN32) | ||
50 | diff --git a/include/GL/glew.h b/include/GL/glew.h | ||
51 | index b5b6987..a9f9e4b 100644 | ||
52 | --- a/include/GL/glew.h | ||
53 | +++ b/include/GL/glew.h | ||
54 | @@ -93,7 +93,7 @@ | ||
55 | #if defined(__REGAL_H__) | ||
56 | #error Regal.h included before glew.h | ||
57 | #endif | ||
58 | -#if defined(__glext_h_) || defined(__GLEXT_H_) | ||
59 | +#if defined(__glext_h_) || defined(__GLEXT_H_) || defined(__gl_glext_h_) | ||
60 | #error glext.h included before glew.h | ||
61 | #endif | ||
62 | #if defined(__gl_ATI_h_) | ||
63 | @@ -109,6 +109,7 @@ | ||
64 | #define __X_GL_H | ||
65 | #define __glext_h_ | ||
66 | #define __GLEXT_H_ | ||
67 | +#define __gl_glext_h_ | ||
68 | #define __gl_ATI_h_ | ||
69 | |||
70 | #if defined(_WIN32) | ||
71 | -- | ||
72 | 2.20.1 | ||
73 | |||
diff --git a/meta/recipes-graphics/glew/glew_2.1.0.bb b/meta/recipes-graphics/glew/glew_2.2.0.bb index edcbdc0a7a..8948444e08 100644 --- a/meta/recipes-graphics/glew/glew_2.1.0.bb +++ b/meta/recipes-graphics/glew/glew_2.2.0.bb | |||
@@ -6,11 +6,10 @@ LICENSE = "MIT" | |||
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" |
7 | 7 | ||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ | 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ |
9 | file://no-strip.patch \ | 9 | file://no-strip.patch" |
10 | file://0001-Fixed-compilation-with-current-mesa-versions.patch" | ||
11 | 10 | ||
12 | SRC_URI[md5sum] = "b2ab12331033ddfaa50dc39345343980" | 11 | SRC_URI[md5sum] = "3579164bccaef09e36c0af7f4fd5c7c7" |
13 | SRC_URI[sha256sum] = "04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95" | 12 | SRC_URI[sha256sum] = "d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1" |
14 | 13 | ||
15 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/glew/files/glew" | 14 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/glew/files/glew" |
16 | UPSTREAM_CHECK_REGEX = "/glew/(?P<pver>(\d+[\.\-_]*)+)/" | 15 | UPSTREAM_CHECK_REGEX = "/glew/(?P<pver>(\d+[\.\-_]*)+)/" |