Accepting request 870816 from home:cgiboudeaux:branches:multimedia:libs
- Add patch to fix build with GCC 11 (boo#1181883) * 0001-Fix-build-with-GCC-11.patch OBS-URL: https://build.opensuse.org/request/show/870816 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/srt?expand=0&rev=26
This commit is contained in:
parent
95425c1e3a
commit
84e62e8a22
25
0001-Fix-build-with-GCC-11.patch
Normal file
25
0001-Fix-build-with-GCC-11.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 93d0a244b8494a436ce97343bb46174a731aaef1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
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 <cstdlib>
|
||||||
|
+#include <limits>
|
||||||
|
#ifdef ENABLE_STDCXX_SYNC
|
||||||
|
#include <chrono>
|
||||||
|
#include <thread>
|
||||||
|
--
|
||||||
|
2.30.0
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 10 10:29:12 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- 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 <aloisio@gmx.com>
|
Wed Oct 7 09:01:37 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
6
srt.spec
6
srt.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package srt
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
URL: https://www.srtalliance.org
|
||||||
Source0: https://github.com/Haivision/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/Haivision/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM
|
||||||
|
Patch0: 0001-Fix-build-with-GCC-11.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -75,7 +77,7 @@ needed to develop applications with Secure Reliable Transport
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
%fdupes %{buildroot}/%{_prefix}
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
%post -n libsrt%{sover} -p /sbin/ldconfig
|
%post -n libsrt%{sover} -p /sbin/ldconfig
|
||||||
%postun -n libsrt%{sover} -p /sbin/ldconfig
|
%postun -n libsrt%{sover} -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user