diff --git a/0001-Fix-build-with-GCC-11.patch b/0001-Fix-build-with-GCC-11.patch new file mode 100644 index 0000000..1862f22 --- /dev/null +++ b/0001-Fix-build-with-GCC-11.patch @@ -0,0 +1,25 @@ +From 93d0a244b8494a436ce97343bb46174a731aaef1 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Wed, 10 Feb 2021 11:28:02 +0100 +Subject: [PATCH] Fix build with GCC 11. + +The 'limits' header must be included explicitly. +--- + srtcore/sync.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/srtcore/sync.h b/srtcore/sync.h +index 59c125a..9f01ca9 100644 +--- a/srtcore/sync.h ++++ b/srtcore/sync.h +@@ -15,6 +15,7 @@ + //#define ENABLE_CXX17 + + #include ++#include + #ifdef ENABLE_STDCXX_SYNC + #include + #include +-- +2.30.0 + diff --git a/srt.changes b/srt.changes index 668e294..a6035d1 100644 --- a/srt.changes +++ b/srt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 10 10:29:12 UTC 2021 - Christophe Giboudeaux + +- Add patch to fix build with GCC 11 (boo#1181883) + * 0001-Fix-build-with-GCC-11.patch + ------------------------------------------------------------------- Wed Oct 7 09:01:37 UTC 2020 - Luigi Baldoni diff --git a/srt.spec b/srt.spec index 83bb8c3..17bc95b 100644 --- a/srt.spec +++ b/srt.spec @@ -1,7 +1,7 @@ # # spec file for package srt # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,8 @@ Group: Development/Libraries/C and C++ URL: https://www.srtalliance.org Source0: https://github.com/Haivision/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source99: baselibs.conf +# PATCH-FIX-UPSTREAM +Patch0: 0001-Fix-build-with-GCC-11.patch BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ @@ -75,7 +77,7 @@ needed to develop applications with Secure Reliable Transport %install %cmake_install -%fdupes %{buildroot}/%{_prefix} +%fdupes %{buildroot}%{_prefix} %post -n libsrt%{sover} -p /sbin/ldconfig %postun -n libsrt%{sover} -p /sbin/ldconfig