diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-fs/xfsprogs/0001-libfrog-Fix-cross-compilation-issue-with-randbytes.patch b/sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-fs/xfsprogs/0001-libfrog-Fix-cross-compilation-issue-with-randbytes.patch new file mode 100644 index 0000000000..8cf37fe29b --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-fs/xfsprogs/0001-libfrog-Fix-cross-compilation-issue-with-randbytes.patch @@ -0,0 +1,43 @@ +From 8969baced4cecd973f3077feba72c82c7fca34a0 Mon Sep 17 00:00:00 2001 +From: Krzesimir Nowak +Date: Fri, 4 Aug 2023 11:49:18 +0200 +Subject: [PATCH] libfrog: Fix cross-compilation issue with randbytes + +randbytes.c was mostly split off from crc32.c and, like crc32.c, is +used for selftests, which are run on the build host. As such it should +not include platform_defs.h which in turn includes urcu.h from +userspace-rcu library, because the build host might not have the +library installed. +--- + libfrog/randbytes.c | 1 - + libfrog/randbytes.h | 2 ++ + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/libfrog/randbytes.c b/libfrog/randbytes.c +index f22da0d3..2023b601 100644 +--- a/libfrog/randbytes.c ++++ b/libfrog/randbytes.c +@@ -6,7 +6,6 @@ + * + * This is the buffer of random bytes used for self tests. + */ +-#include "platform_defs.h" + #include "libfrog/randbytes.h" + + /* 4096 random bytes */ +diff --git a/libfrog/randbytes.h b/libfrog/randbytes.h +index 00fd7c4c..fddea9c7 100644 +--- a/libfrog/randbytes.h ++++ b/libfrog/randbytes.h +@@ -6,6 +6,8 @@ + #ifndef __LIBFROG_RANDBYTES_H__ + #define __LIBFROG_RANDBYTES_H__ + ++#include ++ + extern uint8_t randbytes_test_buf[]; + + #endif /* __LIBFROG_RANDBYTES_H__ */ +-- +2.25.1 + diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-fs/xfsprogs/README.md b/sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-fs/xfsprogs/README.md new file mode 100644 index 0000000000..45d471ae1b --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-fs/xfsprogs/README.md @@ -0,0 +1 @@ +Drop `0001-libfrog-Fix-cross-compilation-issue-with-randbytes.patch` when upstream or Gentoo includes it.