diff options
-rw-r--r-- | meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch | 59 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/wayland/waylandpp_1.0.0.bb | 3 |
2 files changed, 61 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch b/meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch new file mode 100644 index 0000000000..f2169c43c9 --- /dev/null +++ b/meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From 5e3243b163aa5d50083b4036c21f84c1204f2023 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 26 Jan 2023 23:25:05 -0800 | ||
4 | Subject: [PATCH] include missing <cstdint> | ||
5 | |||
6 | gcc 13 moved some includes around and as a result <cstdint> is no longer transitively included [1]. Explicitly include it for uint{32,64}_t. | ||
7 | |||
8 | [1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/NilsBrause/waylandpp/pull/75] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | include/wayland-client.hpp | 1 + | ||
14 | scanner/scanner.cpp | 3 +++ | ||
15 | 2 files changed, 4 insertions(+) | ||
16 | |||
17 | diff --git a/include/wayland-client.hpp b/include/wayland-client.hpp | ||
18 | index a3f782b..4598a0e 100644 | ||
19 | --- a/include/wayland-client.hpp | ||
20 | +++ b/include/wayland-client.hpp | ||
21 | @@ -29,6 +29,7 @@ | ||
22 | /** \file */ | ||
23 | |||
24 | #include <atomic> | ||
25 | +#include <cstdint> | ||
26 | #include <functional> | ||
27 | #include <memory> | ||
28 | #include <string> | ||
29 | diff --git a/scanner/scanner.cpp b/scanner/scanner.cpp | ||
30 | index bebd71e..c25746a 100644 | ||
31 | --- a/scanner/scanner.cpp | ||
32 | +++ b/scanner/scanner.cpp | ||
33 | @@ -15,6 +15,7 @@ | ||
34 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
35 | */ | ||
36 | |||
37 | +#include <cstdint> | ||
38 | #include <fstream> | ||
39 | #include <iostream> | ||
40 | #include <list> | ||
41 | @@ -1106,6 +1107,7 @@ int main(int argc, char *argv[]) | ||
42 | wayland_hpp << "#pragma once" << std::endl | ||
43 | << std::endl | ||
44 | << "#include <array>" << std::endl | ||
45 | + << "#include <cstdint>" << std::endl | ||
46 | << "#include <functional>" << std::endl | ||
47 | << "#include <memory>" << std::endl | ||
48 | << "#include <string>" << std::endl | ||
49 | @@ -1125,6 +1127,7 @@ int main(int argc, char *argv[]) | ||
50 | wayland_server_hpp << "#pragma once" << std::endl | ||
51 | << std::endl | ||
52 | << "#include <array>" << std::endl | ||
53 | + << "#include <cstdint>" << std::endl | ||
54 | << "#include <functional>" << std::endl | ||
55 | << "#include <memory>" << std::endl | ||
56 | << "#include <string>" << std::endl | ||
57 | -- | ||
58 | 2.39.1 | ||
59 | |||
diff --git a/meta-oe/recipes-graphics/wayland/waylandpp_1.0.0.bb b/meta-oe/recipes-graphics/wayland/waylandpp_1.0.0.bb index 0deed332c6..5ba5aa7940 100644 --- a/meta-oe/recipes-graphics/wayland/waylandpp_1.0.0.bb +++ b/meta-oe/recipes-graphics/wayland/waylandpp_1.0.0.bb | |||
@@ -2,7 +2,8 @@ SUMMARY = " C++ binding for Wayland using the most modern C++ technology" | |||
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3aae28cc66d61975114c2b14df215407" | 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3aae28cc66d61975114c2b14df215407" |
4 | 4 | ||
5 | SRC_URI = "git://github.com/NilsBrause/waylandpp.git;protocol=https;branch=master" | 5 | SRC_URI = "git://github.com/NilsBrause/waylandpp.git;protocol=https;branch=master \ |
6 | file://0001-include-missing-cstdint.patch" | ||
6 | 7 | ||
7 | DEPENDS = "pugixml" | 8 | DEPENDS = "pugixml" |
8 | DEPENDS:append:class-target = " waylandpp-native wayland virtual/egl virtual/libgles2" | 9 | DEPENDS:append:class-target = " waylandpp-native wayland virtual/egl virtual/libgles2" |