From f8c8886f7be7db00e70bd0362e3473a2c54663b5 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 1 Sep 2022 22:12:04 +0200 Subject: [PATCH] package/flatbuffers: bump version to 2.0.8 Updated patch 0001: - updated upstream status to reflect its rejection - rebased - added fix for uClibc build, fixes non-locale kodi build: https://lists.buildroot.org/pipermail/buildroot/2022-August/648240.html Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- ...flatbuffers-base.h-fix-build-on-musl.patch | 20 +++++++++++-------- package/flatbuffers/flatbuffers.hash | 2 +- package/flatbuffers/flatbuffers.mk | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/package/flatbuffers/0001-include-flatbuffers-base.h-fix-build-on-musl.patch b/package/flatbuffers/0001-include-flatbuffers-base.h-fix-build-on-musl.patch index b4bc0e12de..82feca3e39 100644 --- a/package/flatbuffers/0001-include-flatbuffers-base.h-fix-build-on-musl.patch +++ b/package/flatbuffers/0001-include-flatbuffers-base.h-fix-build-on-musl.patch @@ -28,7 +28,10 @@ Fixes: - http://autobuild.buildroot.org/results/68045b83e94f8caa337b1af7ed5f493ac1a55c47 Signed-off-by: Fabrice Fontaine -[Upstream status: https://github.com/google/flatbuffers/pull/6773] +[Upstream status: Rejected: + https://github.com/google/flatbuffers/pull/6773] +Signed-off-by: Bernd Kuhls +(rebased and added fix for uClibc-build) --- include/flatbuffers/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) @@ -37,15 +40,16 @@ diff --git a/include/flatbuffers/base.h b/include/flatbuffers/base.h index de7898dc..101c7598 100644 --- a/include/flatbuffers/base.h +++ b/include/flatbuffers/base.h -@@ -266,7 +266,7 @@ namespace flatbuffers { - #ifndef FLATBUFFERS_LOCALE_INDEPENDENT - // Enable locale independent functions {strtof_l, strtod_l,strtoll_l, strtoull_l}. - #if ((defined(_MSC_VER) && _MSC_VER >= 1800) || \ -- (defined(_XOPEN_VERSION) && (_XOPEN_VERSION>=700)) && (!defined(__ANDROID_API__) || (defined(__ANDROID_API__) && (__ANDROID_API__>=21)))) -+ (defined(__GLIBC__) && defined(_XOPEN_VERSION) && (_XOPEN_VERSION>=700)) && (!defined(__ANDROID_API__) || (defined(__ANDROID_API__) && (__ANDROID_API__>=21)))) +@@ -264,7 +264,8 @@ namespace flatbuffers { + // strtoull_l}. + #if (defined(_MSC_VER) && _MSC_VER >= 1800) || \ + (defined(__ANDROID_API__) && __ANDROID_API__>= 21) || \ +- (defined(_XOPEN_VERSION) && (_XOPEN_VERSION >= 700)) && \ ++ (defined(_XOPEN_VERSION) && (_XOPEN_VERSION >= 700) && \ ++ defined(__GLIBC__) && !defined(__UCLIBC__)) && \ + (!defined(__Fuchsia__) && !defined(__ANDROID_API__)) #define FLATBUFFERS_LOCALE_INDEPENDENT 1 #else - #define FLATBUFFERS_LOCALE_INDEPENDENT 0 -- 2.30.2 diff --git a/package/flatbuffers/flatbuffers.hash b/package/flatbuffers/flatbuffers.hash index 6b54dbde92..6382b86f1b 100644 --- a/package/flatbuffers/flatbuffers.hash +++ b/package/flatbuffers/flatbuffers.hash @@ -1,3 +1,3 @@ # Locally computed: -sha256 e2dc24985a85b278dd06313481a9ca051d048f9474e0f199e372fea3ea4248c9 flatbuffers-2.0.6.tar.gz +sha256 f97965a727d26386afaefff950badef2db3ab6af9afe23ed6d94bfb65f95f37e flatbuffers-2.0.8.tar.gz sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE.txt diff --git a/package/flatbuffers/flatbuffers.mk b/package/flatbuffers/flatbuffers.mk index 2cbd68c346..9d286bf9e1 100644 --- a/package/flatbuffers/flatbuffers.mk +++ b/package/flatbuffers/flatbuffers.mk @@ -4,7 +4,7 @@ # ################################################################################ -FLATBUFFERS_VERSION = 2.0.6 +FLATBUFFERS_VERSION = 2.0.8 FLATBUFFERS_SITE = $(call github,google,flatbuffers,v$(FLATBUFFERS_VERSION)) FLATBUFFERS_LICENSE = Apache-2.0 FLATBUFFERS_LICENSE_FILES = LICENSE.txt