mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
ccache: fix build with gcc-13
* needed on hosts with gcc-13 for ccache-native (From OE-Core rev: 6618e5bf994f49ed93bebc4280980e297be6af98) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
c156968a90
commit
ee2bf45810
@@ -0,0 +1,92 @@
|
||||
From 1523eaeff4669e421b3f60618b43c878e4860fe6 Mon Sep 17 00:00:00 2001
|
||||
From: Joel Rosdahl <joel@rosdahl.net>
|
||||
Date: Tue, 5 Jul 2022 21:42:58 +0200
|
||||
Subject: [PATCH] build: Fix FTBFS with not yet released GCC 13
|
||||
|
||||
Reference: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
|
||||
|
||||
Fixes #1105.
|
||||
|
||||
Upstream-Status: Backport [v4.7 https://github.com/ccache/ccache/commit/19ef6e267d38d4d8b3e11c915213472d5662d593]
|
||||
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
|
||||
---
|
||||
src/Stat.hpp | 1 +
|
||||
src/core/CacheEntryHeader.hpp | 2 ++
|
||||
src/core/Sloppiness.hpp | 1 +
|
||||
src/core/Statistics.hpp | 3 ++-
|
||||
src/util/TextTable.hpp | 3 ++-
|
||||
5 files changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/Stat.hpp b/src/Stat.hpp
|
||||
index 2f56214a..074cdeeb 100644
|
||||
--- a/src/Stat.hpp
|
||||
+++ b/src/Stat.hpp
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
+#include <cstdint>
|
||||
#include <ctime>
|
||||
#include <string>
|
||||
|
||||
diff --git a/src/core/CacheEntryHeader.hpp b/src/core/CacheEntryHeader.hpp
|
||||
index 4c3e04c7..dcc32e1c 100644
|
||||
--- a/src/core/CacheEntryHeader.hpp
|
||||
+++ b/src/core/CacheEntryHeader.hpp
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <compression/types.hpp>
|
||||
#include <core/types.hpp>
|
||||
|
||||
+#include <cstdint>
|
||||
+
|
||||
// Cache entry format
|
||||
// ==================
|
||||
//
|
||||
diff --git a/src/core/Sloppiness.hpp b/src/core/Sloppiness.hpp
|
||||
index 917526bf..1ab31d71 100644
|
||||
--- a/src/core/Sloppiness.hpp
|
||||
+++ b/src/core/Sloppiness.hpp
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace core {
|
||||
diff --git a/src/core/Statistics.hpp b/src/core/Statistics.hpp
|
||||
index 3e9ed816..54f32e9c 100644
|
||||
--- a/src/core/Statistics.hpp
|
||||
+++ b/src/core/Statistics.hpp
|
||||
@@ -1,4 +1,4 @@
|
||||
-// Copyright (C) 2020-2021 Joel Rosdahl and other contributors
|
||||
+// Copyright (C) 2020-2022 Joel Rosdahl and other contributors
|
||||
//
|
||||
// See doc/AUTHORS.adoc for a complete list of contributors.
|
||||
//
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <core/StatisticsCounters.hpp>
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
diff --git a/src/util/TextTable.hpp b/src/util/TextTable.hpp
|
||||
index 05c0e0e5..60edee75 100644
|
||||
--- a/src/util/TextTable.hpp
|
||||
+++ b/src/util/TextTable.hpp
|
||||
@@ -1,4 +1,4 @@
|
||||
-// Copyright (C) 2021 Joel Rosdahl and other contributors
|
||||
+// Copyright (C) 2021-2022 Joel Rosdahl and other contributors
|
||||
//
|
||||
// See doc/AUTHORS.adoc for a complete list of contributors.
|
||||
//
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -11,7 +11,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.adoc;md5=ff5327dc93e2b286c931dda3d6079da9"
|
||||
|
||||
DEPENDS = "zstd"
|
||||
|
||||
SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz"
|
||||
SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz \
|
||||
file://0001-build-Fix-FTBFS-with-not-yet-released-GCC-13.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "73a1767ac6b7c0404a1a55f761a746d338e702883c7137fbf587023062258625"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://github.com/ccache/ccache/releases/"
|
||||
|
||||
Reference in New Issue
Block a user