- fix building with gcc 11, rel 3 master auto/th/libebml-1.4.2-3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 24 Nov 2021 22:48:59 +0000 (23:48 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 24 Nov 2021 22:48:59 +0000 (23:48 +0100)
gcc11.patch [new file with mode: 0644]
libebml.spec

diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644 (file)
index 0000000..859f763
--- /dev/null
@@ -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"
index e7211a98177acfef1e065f8186df17cc1a6f9581..700f71523264cbcb963b4f22b93519a46d7a17d1 100644 (file)
@@ -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
This page took 0.14078 seconds and 4 git commands to generate.