summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormcf <mcf@pkgsrc.org>2021-05-12 04:03:49 +0000
committermcf <mcf@pkgsrc.org>2021-05-12 04:03:49 +0000
commita7dddbde0430f085d195ec0bde021aa11bcdba26 (patch)
tree4201af80c29a9834d7deaa5b8840142fa34f3273
parentbe5b31817380974ba81ecc99fbf0881c809a224a (diff)
downloadpkgsrc-a7dddbde0430f085d195ec0bde021aa11bcdba26.tar.gz
libebml: fix build with gcc 11
As described in the gcc 11 porting document[0], some libstdc++ headers no longer include certain headers they don't use. Patch from upstream. [0] https://gcc.gnu.org/gcc-11/porting_to.html#header-dep-changes
-rw-r--r--devel/libebml/distinfo4
-rw-r--r--devel/libebml/patches/patch-src_EbmlString.cpp16
-rw-r--r--devel/libebml/patches/patch-src_EbmlUnicodeString.cpp16
3 files changed, 35 insertions, 1 deletions
diff --git a/devel/libebml/distinfo b/devel/libebml/distinfo
index 490f239d4db..667233932c6 100644
--- a/devel/libebml/distinfo
+++ b/devel/libebml/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.38 2021/02/18 19:18:50 adam Exp $
+$NetBSD: distinfo,v 1.39 2021/05/12 04:03:49 mcf Exp $
SHA1 (libebml-1.4.2.tar.xz) = a5e545d1bf22abf8b6722f4bc2d2034bb61b2d46
RMD160 (libebml-1.4.2.tar.xz) = 72874acce95feed780c2ee16eae07ce16713f812
SHA512 (libebml-1.4.2.tar.xz) = b9535b60ba2716053819d48e345f161ad797a74678fdf60797d652da9dfa7cab905669dac744f30a81083341462bac6f2a0e69fa7d80ee59cf7414bffbd667d5
Size (libebml-1.4.2.tar.xz) = 70484 bytes
+SHA1 (patch-src_EbmlString.cpp) = b5d863d9e535feda3d45e67d7c8ae359ffc06428
+SHA1 (patch-src_EbmlUnicodeString.cpp) = 899601e0f4cd3411037a8c94e4aefb0a95c1605d
diff --git a/devel/libebml/patches/patch-src_EbmlString.cpp b/devel/libebml/patches/patch-src_EbmlString.cpp
new file mode 100644
index 00000000000..c496f0f3853
--- /dev/null
+++ b/devel/libebml/patches/patch-src_EbmlString.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_EbmlString.cpp,v 1.1 2021/05/12 04:03:50 mcf Exp $
+
+Fix build with gcc 11.
+
+Upstream: https://github.com/Matroska-Org/libebml/commit/f0bfd53647961e799a43d918c46cf3b6bff89806
+
+--- src/EbmlString.cpp.orig Wed May 12 03:52:00 2021
++++ src/EbmlString.cpp
+@@ -34,6 +34,7 @@
+ \author Steve Lhomme <robux4 @ users.sf.net>
+ */
+ #include <cassert>
++#include <limits>
+
+ #include "ebml/EbmlString.h"
+
diff --git a/devel/libebml/patches/patch-src_EbmlUnicodeString.cpp b/devel/libebml/patches/patch-src_EbmlUnicodeString.cpp
new file mode 100644
index 00000000000..0939300959c
--- /dev/null
+++ b/devel/libebml/patches/patch-src_EbmlUnicodeString.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_EbmlUnicodeString.cpp,v 1.1 2021/05/12 04:03:50 mcf Exp $
+
+Fix build with gcc 11.
+
+Upstream: https://github.com/Matroska-Org/libebml/commit/f0bfd53647961e799a43d918c46cf3b6bff89806
+
+--- src/EbmlUnicodeString.cpp.orig Wed May 12 03:51:58 2021
++++ src/EbmlUnicodeString.cpp
+@@ -36,6 +36,7 @@
+ */
+
+ #include <cassert>
++#include <limits>
+
+ #include "ebml/EbmlUnicodeString.h"
+