From e9cfb13edeb22163d29b104ff97296c19b77f4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Mon, 14 Dec 2020 12:16:50 +0100 Subject: [PATCH] Add patch to build with GCC 11.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- ...dd-missing-include-limits-to-modules.patch | 39 +++++++++++++++++++ vlc.spec | 6 +++ 2 files changed, 45 insertions(+) create mode 100644 0001-Add-missing-include-limits-to-modules.patch diff --git a/0001-Add-missing-include-limits-to-modules.patch b/0001-Add-missing-include-limits-to-modules.patch new file mode 100644 index 0000000..67a63ac --- /dev/null +++ b/0001-Add-missing-include-limits-to-modules.patch @@ -0,0 +1,39 @@ +From 8783290f260292ecba5aa2e3d63cad614fe9ed81 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= +Date: Mon, 14 Dec 2020 03:23:52 +0100 +Subject: [PATCH] Add missing include 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 +--- + 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 + #include ++#include + + using namespace adaptive::playlist; + +-- +2.29.2 + diff --git a/vlc.spec b/vlc.spec index 9022725..18d0330 100644 --- a/vlc.spec +++ b/vlc.spec @@ -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 - 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 - 1:3.0.12-0.3 - Mass rebuild for x264-0.161