From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/postgis/files/, dev-db/postgis/
Date: Mon, 29 May 2023 19:10:00 +0000 (UTC) [thread overview]
Message-ID: <1685387374.dc10ecae76251e05914bdd47a9728a42ef0cc853.asturm@gentoo> (raw)
commit: dc10ecae76251e05914bdd47a9728a42ef0cc853
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon May 29 18:50:28 2023 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon May 29 19:09:34 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc10ecae
dev-db/postgis: Fix build with dev-cpp/abseil-cpp-20230125.2
Closes: https://bugs.gentoo.org/905378
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../postgis-3.3.2-flatbuffers-abseil-2023.patch | 39 ++++++++++++++++++++++
dev-db/postgis/postgis-3.3.2-r1.ebuild | 2 ++
2 files changed, 41 insertions(+)
diff --git a/dev-db/postgis/files/postgis-3.3.2-flatbuffers-abseil-2023.patch b/dev-db/postgis/files/postgis-3.3.2-flatbuffers-abseil-2023.patch
new file mode 100644
index 000000000000..670361b5b29e
--- /dev/null
+++ b/dev-db/postgis/files/postgis-3.3.2-flatbuffers-abseil-2023.patch
@@ -0,0 +1,39 @@
+From 411abb7014b05b809c0644f196425af1028e7ad3 Mon Sep 17 00:00:00 2001
+From: Berke <iamberkeyavas@gmail.com>
+Date: Fri, 7 Apr 2023 22:05:45 +0300
+Subject: [PATCH] additional check for absl::string_view availability
+
+absl::string_view is uses std::string_view when available. It already checks if std::string_view is available in the earlier code.
+It should only use absl::string_view implementation.
+---
+ deps/flatgeobuf/include/flatbuffers/base.h | 17 +++++++++++------
+ 1 file changed, 11 insertions(+), 6 deletions(-)
+
+diff --git a/deps/flatgeobuf/include/flatbuffers/base.h b/deps/flatgeobuf/include/flatbuffers/base.h
+index bc64f18ad93..98a02262c2b 100644
+--- a/deps/flatgeobuf/include/flatbuffers/base.h
++++ b/deps/flatgeobuf/include/flatbuffers/base.h
+@@ -233,12 +233,17 @@ namespace flatbuffers {
+ }
+ #define FLATBUFFERS_HAS_STRING_VIEW 1
+ // Check for absl::string_view
+- #elif __has_include("absl/strings/string_view.h")
+- #include "absl/strings/string_view.h"
+- namespace flatbuffers {
+- typedef absl::string_view string_view;
+- }
+- #define FLATBUFFERS_HAS_STRING_VIEW 1
++ #elif __has_include("absl/strings/string_view.h") && \
++ __has_include("absl/base/config.h") && \
++ (__cplusplus >= 201411)
++ #include "absl/base/config.h"
++ #if !defined(ABSL_USES_STD_STRING_VIEW)
++ #include "absl/strings/string_view.h"
++ namespace flatbuffers {
++ typedef absl::string_view string_view;
++ }
++ #define FLATBUFFERS_HAS_STRING_VIEW 1
++ #endif
+ #endif
+ #endif // __has_include
+ #endif // !FLATBUFFERS_HAS_STRING_VIEW
diff --git a/dev-db/postgis/postgis-3.3.2-r1.ebuild b/dev-db/postgis/postgis-3.3.2-r1.ebuild
index 40199711aa2c..5e948c1a6828 100644
--- a/dev-db/postgis/postgis-3.3.2-r1.ebuild
+++ b/dev-db/postgis/postgis-3.3.2-r1.ebuild
@@ -54,6 +54,8 @@ DEPEND="${RDEPEND}
PATCHES=(
"${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
+ # source: https://github.com/google/flatbuffers/pull/7897
+ "${FILESDIR}/${P}-flatbuffers-abseil-2023.patch" # bug 905378
)
src_prepare() {
next reply other threads:[~2023-05-29 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-29 19:10 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-12-24 3:46 [gentoo-commits] repo/gentoo:master commit in: dev-db/postgis/files/, dev-db/postgis/ Aaron W. Swenson
2015-12-15 12:32 Aaron Swenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1685387374.dc10ecae76251e05914bdd47a9728a42ef0cc853.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox