From 551d4f02f35142525dcc5b0ac7388952bc9f85e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 24 Nov 2021 23:48:59 +0100 Subject: [PATCH] - fix building with gcc 11, rel 3 --- gcc11.patch | 22 ++++++++++++++++++++++ libebml.spec | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 gcc11.patch 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 + */ + #include ++#include + + #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 ++#include + + #include "ebml/EbmlUnicodeString.h" + 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 -- 2.44.0