diff mbox series

gator-daemon: Fix build with gcc13

Message ID 20230203011440.3673351-1-raj.khem@gmail.com
State New
Headers show
Series gator-daemon: Fix build with gcc13 | expand

Commit Message

Khem Raj Feb. 3, 2023, 1:14 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../0001-Include-missing-cstdint.patch        | 32 +++++++++++++++++++
 .../gator-daemon/gator-daemon_7.8.0.bb        |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 meta-arm/recipes-devtools/gator-daemon/gator-daemon/0001-Include-missing-cstdint.patch

Comments

Jon Mason Feb. 5, 2023, 10 a.m. UTC | #1
On Thu, 2 Feb 2023 17:14:40 -0800, Khem Raj wrote:
> 


Applied, thanks!

[1/1] gator-daemon: Fix build with gcc13
      commit: 37fd476ae1f21962d8ae9467baad238d0df1a240

Best regards,
diff mbox series

Patch

diff --git a/meta-arm/recipes-devtools/gator-daemon/gator-daemon/0001-Include-missing-cstdint.patch b/meta-arm/recipes-devtools/gator-daemon/gator-daemon/0001-Include-missing-cstdint.patch
new file mode 100644
index 00000000..294f804f
--- /dev/null
+++ b/meta-arm/recipes-devtools/gator-daemon/gator-daemon/0001-Include-missing-cstdint.patch
@@ -0,0 +1,32 @@ 
+From 87745a6cad0f7819ac8f8d3826f5e228ebd843c5 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 2 Feb 2023 16:39:26 -0800
+Subject: [PATCH] Include missing <cstdint>
+
+gcc 13 moved some includes around and as a result <cstdint> is no
+longer transitively included [1]. Explicitly include it
+for uintXX_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Upstream-Status: Submitted [https://github.com/ARM-software/gator/pull/40]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ daemon/xml/CurrentConfigXML.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/daemon/xml/CurrentConfigXML.h b/daemon/xml/CurrentConfigXML.h
+index 0b239fd..d9047e3 100644
+--- a/daemon/xml/CurrentConfigXML.h
++++ b/daemon/xml/CurrentConfigXML.h
+@@ -1,6 +1,7 @@
+ /* Copyright (C) 2020-2021 by Arm Limited. All rights reserved. */
+ #pragma once
+ 
++#include <cstdint>
+ #include <set>
+ #include <string>
+ 
+-- 
+2.39.1
+
diff --git a/meta-arm/recipes-devtools/gator-daemon/gator-daemon_7.8.0.bb b/meta-arm/recipes-devtools/gator-daemon/gator-daemon_7.8.0.bb
index 0daebfde..6188b07e 100644
--- a/meta-arm/recipes-devtools/gator-daemon/gator-daemon_7.8.0.bb
+++ b/meta-arm/recipes-devtools/gator-daemon/gator-daemon_7.8.0.bb
@@ -18,6 +18,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 SRCREV = "6a944e7ee1f1c3ab9b2a57efd24c58503122db02"
 SRC_URI = "git://github.com/ARM-software/gator.git;protocol=http;branch=main;protocol=https \
            file://0001-daemon-mxml-Define-_GNU_SOURCE.patch;striplevel=2 \
+           file://0001-Include-missing-cstdint.patch;striplevel=2 \
           "
 
 S = "${WORKDIR}/git/daemon"