summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/ccache
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-23 11:01:50 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-25 11:08:06 +0100
commit45be110a8d538eb2259304e8290ad7e9ae4c89ba (patch)
tree4134ba6aadaa70dc720622b98f009a666a53cbae /meta/recipes-devtools/ccache
parentc70ef0a18010290cbc4359acf5fb6ed99e724307 (diff)
downloadpoky-45be110a8d538eb2259304e8290ad7e9ae4c89ba.tar.gz
ccache: Fix build with gcc12 on musl
(From OE-Core rev: c74739081a24dd47bfdc5798d19f1c8bf8d8a679) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ccache')
-rw-r--r--meta/recipes-devtools/ccache/ccache_4.6.1.bb1
-rw-r--r--meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch31
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ccache/ccache_4.6.1.bb b/meta/recipes-devtools/ccache/ccache_4.6.1.bb
index 0d6471ddbc..716aec0584 100644
--- a/meta/recipes-devtools/ccache/ccache_4.6.1.bb
+++ b/meta/recipes-devtools/ccache/ccache_4.6.1.bb
@@ -13,6 +13,7 @@ DEPENDS = "zstd"
13 13
14SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz \ 14SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz \
15 file://0001-xxhash.h-Fix-build-with-gcc-12.patch \ 15 file://0001-xxhash.h-Fix-build-with-gcc-12.patch \
16 file://0001-Include-time.h-for-time_t.patch \
16" 17"
17SRC_URI[sha256sum] = "59b28a57c3a45e48d6049001999c9f94cd4d3e9b0196994bed9a6a7437ffa3bc" 18SRC_URI[sha256sum] = "59b28a57c3a45e48d6049001999c9f94cd4d3e9b0196994bed9a6a7437ffa3bc"
18 19
diff --git a/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch b/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch
new file mode 100644
index 0000000000..6c1d3cf4f9
--- /dev/null
+++ b/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch
@@ -0,0 +1,31 @@
1From 3d3364221c235c733436abaeeea9b5e6813b06ae Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 23 Aug 2022 10:27:21 -0700
4Subject: [PATCH] Include time.h for time_t
5
6Fixes
7src/core/Statistics.hpp:41:37: error: 'time_t' has not been declared
8| 41 | time_t last_updated,
9| | ^~~~~~
10
11Upstream-Status: Submitted [https://github.com/ccache/ccache/pull/1145]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/core/Statistics.hpp | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/src/core/Statistics.hpp b/src/core/Statistics.hpp
18index 3e9ed816..0017f209 100644
19--- a/src/core/Statistics.hpp
20+++ b/src/core/Statistics.hpp
21@@ -20,6 +20,7 @@
22
23 #include <core/StatisticsCounters.hpp>
24
25+#include <ctime>
26 #include <string>
27 #include <unordered_map>
28 #include <vector>
29--
302.37.2
31