summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-graphics/wayland/waylandpp/0001-include-missing-cstdint.patch59
-rw-r--r--meta-oe/recipes-graphics/wayland/waylandpp_1.0.0.bb3
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 @@
1From 5e3243b163aa5d50083b4036c21f84c1204f2023 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 26 Jan 2023 23:25:05 -0800
4Subject: [PATCH] include missing <cstdint>
5
6gcc 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
10Upstream-Status: Submitted [https://github.com/NilsBrause/waylandpp/pull/75]
11Signed-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
17diff --git a/include/wayland-client.hpp b/include/wayland-client.hpp
18index 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>
29diff --git a/scanner/scanner.cpp b/scanner/scanner.cpp
30index 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--
582.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"
2LICENSE = "MIT" 2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=3aae28cc66d61975114c2b14df215407" 3LIC_FILES_CHKSUM = "file://LICENSE;md5=3aae28cc66d61975114c2b14df215407"
4 4
5SRC_URI = "git://github.com/NilsBrause/waylandpp.git;protocol=https;branch=master" 5SRC_URI = "git://github.com/NilsBrause/waylandpp.git;protocol=https;branch=master \
6 file://0001-include-missing-cstdint.patch"
6 7
7DEPENDS = "pugixml" 8DEPENDS = "pugixml"
8DEPENDS:append:class-target = " waylandpp-native wayland virtual/egl virtual/libgles2" 9DEPENDS:append:class-target = " waylandpp-native wayland virtual/egl virtual/libgles2"