pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libebml libebml: fix build with gcc 11



details:   https://anonhg.NetBSD.org/pkgsrc/rev/23100db741c6
branches:  trunk
changeset: 452490:23100db741c6
user:      mcf <mcf%pkgsrc.org@localhost>
date:      Wed May 12 04:03:49 2021 +0000

description:
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

diffstat:

 devel/libebml/distinfo                                |   4 +++-
 devel/libebml/patches/patch-src_EbmlString.cpp        |  16 ++++++++++++++++
 devel/libebml/patches/patch-src_EbmlUnicodeString.cpp |  16 ++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 9282305fd547 -r 23100db741c6 devel/libebml/distinfo
--- a/devel/libebml/distinfo    Wed May 12 00:11:13 2021 +0000
+++ b/devel/libebml/distinfo    Wed May 12 04:03:49 2021 +0000
@@ -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 -r 9282305fd547 -r 23100db741c6 devel/libebml/patches/patch-src_EbmlString.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libebml/patches/patch-src_EbmlString.cpp    Wed May 12 04:03:49 2021 +0000
@@ -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 -r 9282305fd547 -r 23100db741c6 devel/libebml/patches/patch-src_EbmlUnicodeString.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libebml/patches/patch-src_EbmlUnicodeString.cpp     Wed May 12 04:03:49 2021 +0000
@@ -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"
+ 



Home | Main Index | Thread Index | Old Index