@@ -12,6 +12,7 @@ SRC_URI = "https://github.com/bazelbuild/bazel/releases/download/${PV}/bazel-${P
file://0001-cutsomize-native-toolchains-for-Yocto.patch \
file://0001-fix-compile-failure-on-gcc-13.patch \
file://1f2b3ed4ac717b814d02a0d125f160ddabe78003.patch \
+ file://include_stdint.patch \
"
inherit python3native
new file mode 100644
@@ -0,0 +1,28 @@
+https://github.com/lihaohong6/COPR/blob/bf48c5450a909cf8358e3cbd81cdde26df426e12/bazel7/include_stdint.patch
+
+Upstream-Status: Submitted [https://github.com/bazelbuild/bazel/issues/25514]
+
+diff --git src/main/cpp/archive_utils.h src/main/cpp/archive_utils.h
+index 18856ab..5298a36 100644
+--- src/main/cpp/archive_utils.h
++++ src/main/cpp/archive_utils.h
+@@ -15,6 +15,7 @@
+ #ifndef BAZEL_SRC_MAIN_CPP_ARCHIVE_UTILS_H_
+ #define BAZEL_SRC_MAIN_CPP_ARCHIVE_UTILS_H_
+
++#include <cstdint>
+ #include <string>
+ #include <vector>
+
+diff --git src/main/cpp/util/logging.h src/main/cpp/util/logging.h
+index b2cd459..7bf5a00 100644
+--- src/main/cpp/util/logging.h
++++ src/main/cpp/util/logging.h
+@@ -14,6 +14,7 @@
+ #ifndef BAZEL_SRC_MAIN_CPP_LOGGING_H_
+ #define BAZEL_SRC_MAIN_CPP_LOGGING_H_
+
++#include <cstdint>
+ #include <memory>
+ #include <sstream>
+ #include <string>