commit 551d4f02f35142525dcc5b0ac7388952bc9f85e7
Author: Jan Rękorajski <[email protected]>
Date:   Wed Nov 24 23:48:59 2021 +0100

    - fix building with gcc 11, rel 3

 gcc11.patch  | 22 ++++++++++++++++++++++
 libebml.spec |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/libebml.spec b/libebml.spec
index e7211a9..700f715 100644
--- a/libebml.spec
+++ b/libebml.spec
@@ -6,11 +6,12 @@ Summary:      Extensible Binary Meta Language access library
 Summary(pl.UTF-8):     Biblioteka dostępu rozszerzalnego metajęzyka binarnego
 Name:          libebml
 Version:       1.4.2
-Release:       2
+Release:       3
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       
https://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.xz
 # Source0-md5: 194095f4315334fcedacb4900c59c014
+Patch0:                gcc11.patch
 URL:           https://www.matroska.org/
 BuildRequires: cmake >= 3.1.2
 BuildRequires: libstdc++-devel >= 6:4.7
@@ -56,6 +57,7 @@ Statyczna wersja biblioteki rozszerzalnego metajęzyka 
binarnego.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644
index 0000000..859f763
--- /dev/null
+++ b/gcc11.patch
@@ -0,0 +1,22 @@
+diff -up libebml-1.4.2/src/EbmlString.cpp.gcc11 
libebml-1.4.2/src/EbmlString.cpp
+--- libebml-1.4.2/src/EbmlString.cpp.gcc11     2021-02-18 12:42:59.000000000 
+0100
++++ libebml-1.4.2/src/EbmlString.cpp   2021-03-01 11:42:02.122854703 +0100
+@@ -34,6 +34,7 @@
+   \author Steve Lhomme     <robux4 @ users.sf.net>
+ */
+ #include <cassert>
++#include <limits>
+ 
+ #include "ebml/EbmlString.h"
+ 
+diff -up libebml-1.4.2/src/EbmlUnicodeString.cpp.gcc11 
libebml-1.4.2/src/EbmlUnicodeString.cpp
+--- libebml-1.4.2/src/EbmlUnicodeString.cpp.gcc11      2021-03-01 
11:42:02.121854696 +0100
++++ libebml-1.4.2/src/EbmlUnicodeString.cpp    2021-03-01 11:42:21.772995170 
+0100
+@@ -36,6 +36,7 @@
+ */
+ 
+ #include <cassert>
++#include <limits>
+ 
+ #include "ebml/EbmlUnicodeString.h"
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libebml.git/commitdiff/551d4f02f35142525dcc5b0ac7388952bc9f85e7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to