From a777a849581115fd72c94465876b56f0bc1106f8 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 8 Sep 2024 14:09:38 -0700 Subject: [PATCH] community/handbrake: fix build with GCC 14 --- community/handbrake/APKBUILD | 2 ++ community/handbrake/gcc14.patch | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 community/handbrake/gcc14.patch diff --git a/community/handbrake/APKBUILD b/community/handbrake/APKBUILD index 1737ee9e2ad..f4e9034b889 100644 --- a/community/handbrake/APKBUILD +++ b/community/handbrake/APKBUILD @@ -55,6 +55,7 @@ subpackages="$pkgname-lang $pkgname-gtk" source="https://github.com/HandBrake/HandBrake/releases/download/$pkgver/HandBrake-$pkgver-source.tar.bz2 handbrake-9999-remove-dvdnav-dup.patch fix-missing-x265-link-flag.patch + gcc14.patch " builddir="$srcdir/$_pkgname-$pkgver" options="!check" @@ -115,4 +116,5 @@ sha512sums=" e5cc0fee5bf063c4cdb8f64a772dac6800a7214bfdc65042c121e0e81878599fe615b499ebf6466bb78740314374ad8b8fa364fb24ff86852183e7dbbf565617 HandBrake-1.6.1-source.tar.bz2 a3d57dd37d518286a62554cfcc4722d6fd588a0c3966d30785100edc4476febb2b48fc4f9b2a7eb5b5dc049043fabd4398e1e190e10cbd63c25b2936824977d3 handbrake-9999-remove-dvdnav-dup.patch 59dc985a3664849556890bd92abc7e652e47ace066f33894d518abe97439bedc00c7cc6832ec49e81aea509b51ff6b64888bfbf32d74a03634bd6578aecee3f0 fix-missing-x265-link-flag.patch +3dd33ec338d4b479c2c4c6492f2c23b3d48fadb9089e8e22e5f4b381f920d0db95720d70ca1007989ceb613e06accfa3b0d5124aecbb3fe509d09d00cbd3a1dc gcc14.patch " diff --git a/community/handbrake/gcc14.patch b/community/handbrake/gcc14.patch new file mode 100644 index 00000000000..dd4dc1fdd0e --- /dev/null +++ b/community/handbrake/gcc14.patch @@ -0,0 +1,30 @@ +--- HandBrake-1.6.1.orig/libhb/encavcodec.c ++++ HandBrake-1.6.1/libhb/encavcodec.c +@@ -8,6 +8,7 @@ + For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html + */ + ++#include + #include "handbrake/handbrake.h" + #include "handbrake/hb_dict.h" + #include "handbrake/hbffmpeg.h" +--- HandBrake-1.6.1.orig/libhb/muxavformat.c ++++ HandBrake-1.6.1/libhb/muxavformat.c +@@ -7,6 +7,7 @@ + For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html + */ + ++#include + #include + #include "libavcodec/bsf.h" + #include "libavformat/avformat.h" +--- HandBrake-1.6.1.orig/libhb/work.c ++++ HandBrake-1.6.1/libhb/work.c +@@ -7,6 +7,7 @@ + For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html + */ + ++#include + #include "handbrake/handbrake.h" + #include "libavformat/avformat.h" + #include "handbrake/decomb.h"