summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Export-of-internal-Abseil-changes.patch82
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb1
2 files changed, 83 insertions, 0 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
new file mode 100644
index 0000000000..c0fb0571f7
--- /dev/null
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-Export-of-internal-Abseil-changes.patch
@@ -0,0 +1,82 @@
1From d3424201a73f29ab533121b1821a76e1b4313beb Mon Sep 17 00:00:00 2001
2From: Abseil Team <absl-team@google.com>
3Date: Mon, 3 May 2021 07:37:39 -0700
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---
31 absl/debugging/failure_signal_handler.cc | 3 ++-
32 absl/strings/internal/str_format/arg.h | 8 ++++++++
33 absl/strings/internal/str_format/convert_test.cc | 3 +++
34 3 files changed, 13 insertions(+), 1 deletion(-)
35
36diff --git a/absl/debugging/failure_signal_handler.cc b/absl/debugging/failure_signal_handler.cc
37index 5d13bdbb..2ed137b5 100644
38--- a/absl/debugging/failure_signal_handler.cc
39+++ b/absl/debugging/failure_signal_handler.cc
40@@ -135,7 +135,8 @@ static bool SetupAlternateStackOnce() {
41 #else
42 const size_t page_mask = sysconf(_SC_PAGESIZE) - 1;
43 #endif
44- size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
45+ size_t stack_size =
46+ (std::max<size_t>(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
47 #if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
48 defined(ABSL_HAVE_MEMORY_SANITIZER) || defined(ABSL_HAVE_THREAD_SANITIZER)
49 // Account for sanitizer instrumentation requiring additional stack space.
50diff --git a/absl/strings/internal/str_format/arg.h b/absl/strings/internal/str_format/arg.h
51index 3dbc1526..f9d89d12 100644
52--- a/absl/strings/internal/str_format/arg.h
53+++ b/absl/strings/internal/str_format/arg.h
54@@ -108,6 +108,14 @@ StringConvertResult FormatConvertImpl(const std::string& v,
55 StringConvertResult FormatConvertImpl(string_view v,
56 FormatConversionSpecImpl conv,
57 FormatSinkImpl* sink);
58+#if defined(ABSL_HAVE_STD_STRING_VIEW) && !defined(ABSL_USES_STD_STRING_VIEW)
59+inline StringConvertResult FormatConvertImpl(std::string_view v,
60+ FormatConversionSpecImpl conv,
61+ FormatSinkImpl* sink) {
62+ return FormatConvertImpl(absl::string_view(v.data(), v.size()), conv, sink);
63+}
64+#endif // ABSL_HAVE_STD_STRING_VIEW && !ABSL_USES_STD_STRING_VIEW
65+
66 ArgConvertResult<FormatConversionCharSetUnion(
67 FormatConversionCharSetInternal::s, FormatConversionCharSetInternal::p)>
68 FormatConvertImpl(const char* v, const FormatConversionSpecImpl conv,
69diff --git a/absl/strings/internal/str_format/convert_test.cc b/absl/strings/internal/str_format/convert_test.cc
70index 634ee78b..cc789530 100644
71--- a/absl/strings/internal/str_format/convert_test.cc
72+++ b/absl/strings/internal/str_format/convert_test.cc
73@@ -215,6 +215,9 @@ TEST_F(FormatConvertTest, BasicString) {
74 TestStringConvert(static_cast<const char*>("hello"));
75 TestStringConvert(std::string("hello"));
76 TestStringConvert(string_view("hello"));
77+#if defined(ABSL_HAVE_STD_STRING_VIEW)
78+ TestStringConvert(std::string_view("hello"));
79+#endif // ABSL_HAVE_STD_STRING_VIEW
80 }
81
82 TEST_F(FormatConvertTest, NullString) {
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 569bb13993..a49fe672e8 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_git.bb
@@ -14,6 +14,7 @@ SRC_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 \
17 " 18 "
18 19
19S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"