diff --git a/meta-oe/recipes-support/rdfind/rdfind/0001-include-standard-header-cstdint.patch b/meta-oe/recipes-support/rdfind/rdfind/0001-include-standard-header-cstdint.patch new file mode 100644 index 0000000000..6875f5f462 --- /dev/null +++ b/meta-oe/recipes-support/rdfind/rdfind/0001-include-standard-header-cstdint.patch @@ -0,0 +1,41 @@ +From 067790f733ad55a53e8218015710885da9484304 Mon Sep 17 00:00:00 2001 +From: Jiaqing Zhao +Date: Tue, 25 Jun 2024 06:45:20 +0000 +Subject: [PATCH] include standard header +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +gcc 13 moved some includes around and as a result is no longer +transitively included [1]. Explicitly include it for uint64_t. + +Fixes errors like below + +In file included from ../rdfind-1.4.1/Fileinfo.cc:22: +../rdfind-1.4.1/Fileinfo.hh:68:8: error: 'int64_t' in namespace 'std' does not name a type + 68 | std::int64_t getidentity() const { return m_identity; } + | ^~~~~~~ + +[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes + +Upstream-Status: Backport [1.6.0 https://github.com/pauldreik/rdfind/commit/f6c3f698dd680931b5c2f05688319290bdf0d930] +Signed-off-by: Jiaqing Zhao +--- + Fileinfo.hh | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Fileinfo.hh b/Fileinfo.hh +index 69a1b2a..f1eb748 100644 +--- a/Fileinfo.hh ++++ b/Fileinfo.hh +@@ -8,6 +8,7 @@ + #define Fileinfo_hh + + #include ++#include + #include + + // os specific headers +-- +2.43.0 + diff --git a/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb b/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb index 64ae62a2d3..3a5938d22c 100644 --- a/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb +++ b/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fa22e16ebbe6638b2bd253338fbded9f" DEPENDS = "nettle autoconf-archive" SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \ + file://0001-include-standard-header-cstdint.patch \ " SRC_URI[md5sum] = "180418c863b861d1df221bc486a07ce7"