Add patch to build with GCC 11.0.0

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
el8
Robert-André Mauchin 4 years ago
parent 1d6fb920c3
commit e9cfb13ede
No known key found for this signature in database
GPG Key ID: F07E690B12A82D56

@ -0,0 +1,39 @@
From 8783290f260292ecba5aa2e3d63cad614fe9ed81 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Mon, 14 Dec 2020 03:23:52 +0100
Subject: [PATCH] Add missing include <limits> to modules/
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
demux/adaptive/playlist/SegmentInformation.cpp
Compilation would fail with:
> error: 'numeric_limits' is not a member of 'std'
without this include because of some hardening build
flags mandated on Fedora Linux.
Fix: #25325
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
modules/demux/adaptive/playlist/SegmentInformation.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/adaptive/playlist/SegmentInformation.cpp b/modules/demux/adaptive/playlist/SegmentInformation.cpp
index c4fe204783..aacc1d7bc1 100644
--- a/modules/demux/adaptive/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp
@@ -34,6 +34,7 @@
#include <algorithm>
#include <cassert>
+#include <limits>
using namespace adaptive::playlist;
--
2.29.2

@ -74,6 +74,10 @@ Patch9: notify-don-t-depend-on-any-GTK-version.patch
# Fix build issue with recent SRT library
# Based on https://git.videolan.org/?p=vlc.git;a=commit;h=6e8d77431127c482196115a6eeb769daf56347b3
Patch10: recent_srt_fix.patch
# Add a missing include that would make the build fail:
# https://trac.videolan.org/vlc/ticket/25325
# Drop next release
Patch11: 0001-Add-missing-include-limits-to-modules.patch
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
@ -349,6 +353,7 @@ sed -i -e 's/luac/luac-5.1/g' configure.ac
%patch9 -p1
%patch10 -p1
%patch11 -p1
%{?_with_bootstrap:
rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || :
@ -619,6 +624,7 @@ fi || :
%changelog
* Mon Dec 14 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1:3.0.12-0.4
- Rebuild for dav1d SONAME bump
- Add patch to build with GCC 11.0.0
* Fri Nov 27 2020 Sérgio Basto <sergio@serjux.com> - 1:3.0.12-0.3
- Mass rebuild for x264-0.161

Loading…
Cancel
Save