summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Export-of-internal-Abseil-changes.patch87
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch11
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb7
3 files changed, 9 insertions, 96 deletions
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Export-of-internal-Abseil-changes.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Export-of-internal-Abseil-changes.patch
deleted file mode 100644
index 126b79261c..0000000000
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Export-of-internal-Abseil-changes.patch
+++ /dev/null
@@ -1,87 +0,0 @@
1From c9250af98f48e4aa734cab0e2f5ae1f780c05ad0 Mon Sep 17 00:00:00 2001
2From: Zang Ruochen <zangrc.fnst@fujitsu.com>
3Date: Fri, 11 Jun 2021 10:53:37 +0900
4Subject: [PATCH] Export of internal Abseil changes
5
6--
7cf88f9cf40eab54c06bca7f20795352ec23bb583 by Derek Mauro <dmauro@google.com>:
8
9Fixes build with latest glibc
10Fixes #952
11
12PiperOrigin-RevId: 371693908
13
14--
1599bcd0f4a747ce7a401e23c745adf34d0ec5131b by Samuel Benzaquen <sbenza@google.com>:
16
17Add support for std::string_view in StrFormat even when
18absl::string_view != std::string_view.
19
20PiperOrigin-RevId: 371693633
21
22--
23e35463572149a6c2d4a0d439b9300ce03fd6b96d by Abseil Team <absl-team@google.com>:
24
25Cmake builds should only install pkg-config when explicitly requested.
26
27PiperOrigin-RevId: 371403419
28GitOrigin-RevId: cf88f9cf40eab54c06bca7f20795352ec23bb583
29Change-Id: I4360a18c638a4d901ff44ab1e0a9d8f321c302ea
30
31Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
32---
33 CMake/AbseilHelpers.cmake | 3 ++-
34 absl/strings/internal/str_format/arg.h | 8 ++++++++
35 absl/strings/internal/str_format/convert_test.cc | 3 +++
36 3 files changed, 13 insertions(+), 1 deletion(-)
37
38diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake
39index 54fb8df3..a32b94d5 100644
40--- a/CMake/AbseilHelpers.cmake
41+++ b/CMake/AbseilHelpers.cmake
42@@ -141,7 +141,8 @@ function(absl_cc_library)
43 endif()
44
45 # Generate a pkg-config file for every library:
46- if(_build_type STREQUAL "static" OR _build_type STREQUAL "shared")
47+ if((_build_type STREQUAL "static" OR _build_type STREQUAL "shared")
48+ AND ABSL_ENABLE_INSTALL)
49 if(NOT ABSL_CC_LIB_TESTONLY)
50 if(absl_VERSION)
51 set(PC_VERSION "${absl_VERSION}")
52diff --git a/absl/strings/internal/str_format/arg.h b/absl/strings/internal/str_format/arg.h
53index 7040c866..3c91be70 100644
54--- a/absl/strings/internal/str_format/arg.h
55+++ b/absl/strings/internal/str_format/arg.h
56@@ -122,6 +122,14 @@ StringConvertResult FormatConvertImpl(const std::string& v,
57 StringConvertResult FormatConvertImpl(string_view v,
58 FormatConversionSpecImpl conv,
59 FormatSinkImpl* sink);
60+#if defined(ABSL_HAVE_STD_STRING_VIEW) && !defined(ABSL_USES_STD_STRING_VIEW)
61+inline StringConvertResult FormatConvertImpl(std::string_view v,
62+ FormatConversionSpecImpl conv,
63+ FormatSinkImpl* sink) {
64+ return FormatConvertImpl(absl::string_view(v.data(), v.size()), conv, sink);
65+}
66+#endif // ABSL_HAVE_STD_STRING_VIEW && !ABSL_USES_STD_STRING_VIEW
67+
68 ArgConvertResult<FormatConversionCharSetUnion(
69 FormatConversionCharSetInternal::s, FormatConversionCharSetInternal::p)>
70 FormatConvertImpl(const char* v, const FormatConversionSpecImpl conv,
71diff --git a/absl/strings/internal/str_format/convert_test.cc b/absl/strings/internal/str_format/convert_test.cc
72index 926283cf..91e03609 100644
73--- a/absl/strings/internal/str_format/convert_test.cc
74+++ b/absl/strings/internal/str_format/convert_test.cc
75@@ -229,6 +229,9 @@ TEST_F(FormatConvertTest, BasicString) {
76 TestStringConvert(static_cast<const char*>("hello"));
77 TestStringConvert(std::string("hello"));
78 TestStringConvert(string_view("hello"));
79+#if defined(ABSL_HAVE_STD_STRING_VIEW)
80+ TestStringConvert(std::string_view("hello"));
81+#endif // ABSL_HAVE_STD_STRING_VIEW
82 }
83
84 TEST_F(FormatConvertTest, NullString) {
85--
862.25.1
87
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch
index a4937e1b33..e8048fe940 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch
@@ -31,13 +31,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
31 #ifdef __GLIBC__ 31 #ifdef __GLIBC__
32--- a/absl/base/internal/unscaledcycleclock.h 32--- a/absl/base/internal/unscaledcycleclock.h
33+++ b/absl/base/internal/unscaledcycleclock.h 33+++ b/absl/base/internal/unscaledcycleclock.h
34@@ -46,7 +46,7 @@ 34@@ -46,7 +46,8 @@
35 35
36 // The following platforms have an implementation of a hardware counter. 36 // The following platforms have an implementation of a hardware counter.
37 #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ 37 #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \
38- defined(__powerpc__) || defined(__ppc__) || \ 38- defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \
39+ ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ 39+ ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \
40 defined(_M_IX86) || defined(_M_X64) 40+ defined(__riscv) || \
41 defined(_M_IX86) || defined(_M_X64)
41 #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 42 #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1
42 #else 43 #else
43--- a/absl/debugging/internal/examine_stack.cc 44--- a/absl/debugging/internal/examine_stack.cc
@@ -67,7 +68,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
67 #elif defined(__s390__) && !defined(__s390x__) 68 #elif defined(__s390__) && !defined(__s390x__)
68--- a/absl/debugging/internal/stacktrace_config.h 69--- a/absl/debugging/internal/stacktrace_config.h
69+++ b/absl/debugging/internal/stacktrace_config.h 70+++ b/absl/debugging/internal/stacktrace_config.h
70@@ -55,7 +55,7 @@ 71@@ -59,7 +59,7 @@
71 #elif defined(__i386__) || defined(__x86_64__) 72 #elif defined(__i386__) || defined(__x86_64__)
72 #define ABSL_STACKTRACE_INL_HEADER \ 73 #define ABSL_STACKTRACE_INL_HEADER \
73 "absl/debugging/internal/stacktrace_x86-inl.inc" 74 "absl/debugging/internal/stacktrace_x86-inl.inc"
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb
index 37d5d81238..82124c1083 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb
@@ -7,14 +7,13 @@ SECTION = "libs"
7LICENSE = "Apache-2.0" 7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915"
9 9
10PV = "20210324.2+git${SRCPV}" 10PV = "20211102.0+git${SRCPV}"
11SRCREV = "278e0a071885a22dcd2fd1b5576cc44757299343" 11SRCREV = "215105818dfde3174fe799600bb0f3cae233d0bf"
12BRANCH = "lts_2021_03_24" 12BRANCH = "lts_2021_11_02"
13SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \ 13SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \
14 file://0001-absl-always-use-asm-sgidefs.h.patch \ 14 file://0001-absl-always-use-asm-sgidefs.h.patch \
15 file://0002-Remove-maes-option-from-cross-compilation.patch \ 15 file://0002-Remove-maes-option-from-cross-compilation.patch \
16 file://abseil-ppc-fixes.patch \ 16 file://abseil-ppc-fixes.patch \
17 file://0001-Export-of-internal-Abseil-changes.patch \
18 " 17 "
19 18
20S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"