summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/rdfind
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-01-25 21:18:52 -0800
committerKhem Raj <raj.khem@gmail.com>2023-01-25 23:18:05 -0800
commitdf99d6037021dc9754b8d33d98c9c964db0f76f4 (patch)
tree3243f6e00270abd9819136d85028a230d10b0eb4 /meta-oe/recipes-support/rdfind
parentcbd762fafc70000fb4e1c3ef9d70fdb891e5530a (diff)
downloadmeta-openembedded-df99d6037021dc9754b8d33d98c9c964db0f76f4.tar.gz
rdfind: Fix build with gcc13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/rdfind')
-rw-r--r--meta-oe/recipes-support/rdfind/rdfind/0001-include-standard-headers-limits-and-cstdint.patch54
-rw-r--r--meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb1
2 files changed, 55 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/rdfind/rdfind/0001-include-standard-headers-limits-and-cstdint.patch b/meta-oe/recipes-support/rdfind/rdfind/0001-include-standard-headers-limits-and-cstdint.patch
new file mode 100644
index 000000000..bd59b7441
--- /dev/null
+++ b/meta-oe/recipes-support/rdfind/rdfind/0001-include-standard-headers-limits-and-cstdint.patch
@@ -0,0 +1,54 @@
1From 8c317f0fd5fde95a9aae2319053a196a166aec88 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 25 Jan 2023 21:12:47 -0800
4Subject: [PATCH] include standard headers <limits> and <cstdint>
5
6gcc 13 moved some includes around and as a result <cstdint> is no longer
7transitively included [1]. Explicitly include it for uint64_t.
8
9Fixes errors like below
10
11../rdfind-1.5.0/rdfind.cc:225:30: error: 'numeric_limits' is not a member of 'std'
12 225 | o.maximumfilesize = std::numeric_limits<decltype(o.maximumfilesize)>::max();
13 | ^~~~~~~~~~~~~~
14
15...
16
17| ../rdfind-1.5.0/Fileinfo.hh:70:20: error: 'std::int64_t' has not been declared
18
19[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
20
21Upstream-Status: Submitted [https://github.com/pauldreik/rdfind/pull/129]
22Signed-off-by: Khem Raj <raj.khem@gmail.com>
23---
24 Fileinfo.hh | 1 +
25 rdfind.cc | 1 +
26 2 files changed, 2 insertions(+)
27
28diff --git a/Fileinfo.hh b/Fileinfo.hh
29index 3ffb837..23ed54e 100644
30--- a/Fileinfo.hh
31+++ b/Fileinfo.hh
32@@ -8,6 +8,7 @@
33 #define Fileinfo_hh
34
35 #include <array>
36+#include <cstdint>
37 #include <string>
38
39 // os specific headers
40diff --git a/rdfind.cc b/rdfind.cc
41index fbd6cb8..64dd8f6 100644
42--- a/rdfind.cc
43+++ b/rdfind.cc
44@@ -9,6 +9,7 @@
45 // std
46 #include <algorithm>
47 #include <iostream>
48+#include <limits>
49 #include <string>
50 #include <vector>
51
52--
532.39.1
54
diff --git a/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb b/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb
index 0d776b4e9..8f2c5e885 100644
--- a/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb
+++ b/meta-oe/recipes-support/rdfind/rdfind_1.5.0.bb
@@ -7,6 +7,7 @@ DEPENDS = "nettle autoconf-archive"
7 7
8SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \ 8SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \
9 file://0001-configure-Fix-check-for-AC_CHECK_LIB.patch \ 9 file://0001-configure-Fix-check-for-AC_CHECK_LIB.patch \
10 file://0001-include-standard-headers-limits-and-cstdint.patch \
10" 11"
11 12
12SRC_URI[sha256sum] = "4150ed1256f7b12b928c65113c485761552b9496c433778aac3f9afc3e767080" 13SRC_URI[sha256sum] = "4150ed1256f7b12b928c65113c485761552b9496c433778aac3f9afc3e767080"