summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-05-01 00:02:27 +0000
committerjoerg <joerg@pkgsrc.org>2020-05-01 00:02:27 +0000
commit7db9a33edbb56f76896e9ce4f5247f6b56f2f171 (patch)
tree545f5753c284670beec4c2b3752670ba962eb9a9 /devel
parentdb5b9436de73ec2c004c671eed59bd7d297be5f0 (diff)
downloadpkgsrc-7db9a33edbb56f76896e9ce4f5247f6b56f2f171.tar.gz
Don't depend on deprecrated behavior.
Diffstat (limited to 'devel')
-rw-r--r--devel/flatbuffers/distinfo4
-rw-r--r--devel/flatbuffers/patches/patch-include_flatbuffers_flatbuffers.h24
-rw-r--r--devel/flatbuffers/patches/patch-include_flatbuffers_reflection.h15
3 files changed, 42 insertions, 1 deletions
diff --git a/devel/flatbuffers/distinfo b/devel/flatbuffers/distinfo
index 5e993b8ba08..95f572728a9 100644
--- a/devel/flatbuffers/distinfo
+++ b/devel/flatbuffers/distinfo
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.3 2018/05/08 16:44:15 minskim Exp $
+$NetBSD: distinfo,v 1.4 2020/05/01 00:02:27 joerg Exp $
SHA1 (flatbuffers-1.9.0.tar.gz) = 66a3c75a271c6dab1dc4511aed4b7d498875265d
RMD160 (flatbuffers-1.9.0.tar.gz) = 0a73365e0d0f6db5d65b59d4807f457af4a0645e
SHA512 (flatbuffers-1.9.0.tar.gz) = 0ba07dbe5b2fde1d0a6e14ee26ee2816062541d934eda204b846a30c019362f2626761b628c900293928b9b546dba8ca477c13182e022c3e0e0a142fd67f0696
Size (flatbuffers-1.9.0.tar.gz) = 681752 bytes
SHA1 (patch-CMakeLists.txt) = 89679eed28e7b5ce1fb6573c14433acdc43058a6
+SHA1 (patch-include_flatbuffers_flatbuffers.h) = 1ebdddb8861098c94c0a359be958d75c1d375cd8
+SHA1 (patch-include_flatbuffers_reflection.h) = 4e276144637c519be8713ea95cdb73c4a5769e91
diff --git a/devel/flatbuffers/patches/patch-include_flatbuffers_flatbuffers.h b/devel/flatbuffers/patches/patch-include_flatbuffers_flatbuffers.h
new file mode 100644
index 00000000000..f4be3eaf1b4
--- /dev/null
+++ b/devel/flatbuffers/patches/patch-include_flatbuffers_flatbuffers.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-include_flatbuffers_flatbuffers.h,v 1.1 2020/05/01 00:02:27 joerg Exp $
+
+Implicit copy constructor is deprecated when a user-defined assignment
+operator is defined.
+
+--- include/flatbuffers/flatbuffers.h.orig 2020-04-29 23:22:29.846831379 +0000
++++ include/flatbuffers/flatbuffers.h
+@@ -1371,6 +1371,8 @@ class FlatBufferBuilder {
+
+ /// @cond FLATBUFFERS_INTERNAL
+ template<typename T> struct StructKeyComparator {
++ StructKeyComparator () = default;
++ StructKeyComparator (const StructKeyComparator &) = default;
+ bool operator()(const T &a, const T &b) const {
+ return a.KeyCompareLessThan(&b);
+ }
+@@ -1442,6 +1444,7 @@ class FlatBufferBuilder {
+ /// @cond FLATBUFFERS_INTERNAL
+ template<typename T> struct TableKeyComparator {
+ TableKeyComparator(vector_downward &buf) : buf_(buf) {}
++ TableKeyComparator (const TableKeyComparator &) = default;
+ bool operator()(const Offset<T> &a, const Offset<T> &b) const {
+ auto table_a = reinterpret_cast<T *>(buf_.data_at(a.o));
+ auto table_b = reinterpret_cast<T *>(buf_.data_at(b.o));
diff --git a/devel/flatbuffers/patches/patch-include_flatbuffers_reflection.h b/devel/flatbuffers/patches/patch-include_flatbuffers_reflection.h
new file mode 100644
index 00000000000..61b89a94ed6
--- /dev/null
+++ b/devel/flatbuffers/patches/patch-include_flatbuffers_reflection.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-include_flatbuffers_reflection.h,v 1.1 2020/05/01 00:02:27 joerg Exp $
+
+Implicit copy constructor is deprecated when a user-defined assignment
+operator is defined.
+
+--- include/flatbuffers/reflection.h.orig 2020-04-29 23:28:21.560920814 +0000
++++ include/flatbuffers/reflection.h
+@@ -363,6 +363,7 @@ template<typename T, typename U> class p
+ reinterpret_cast<uint8_t *>(flatbuffers::vector_data(vec_)) + offset_);
+ }
+ T *operator->() const { return operator*(); }
++ pointer_inside_vector (const pointer_inside_vector &) = default;
+ void operator=(const pointer_inside_vector &piv);
+
+ private: