[packages/tvheadend] - fix building with ffmpeg 6 - package all files = rel 2

baggins baggins at pld-linux.org
Sat Oct 21 22:39:58 CEST 2023


commit 376794166ab620f16349947a5d1f65017dd0032d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 21 22:39:28 2023 +0200

    - fix building with ffmpeg 6
    - package all files
    = rel 2

 ffmpeg6.patch  | 11 +++++++++++
 tvheadend.spec |  9 +++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/tvheadend.spec b/tvheadend.spec
index f2f6658..d32ce9e 100644
--- a/tvheadend.spec
+++ b/tvheadend.spec
@@ -4,7 +4,7 @@
 
 %define		gitref	c531383ca6654639dc112db67fd8dc893c1f5272
 %define		snap	20230719
-%define		rel	1
+%define		rel	2
 
 Summary:	TV streaming server
 Name:		tvheadend
@@ -19,6 +19,7 @@ Source1:	%{name}.service
 Source2:	%{name}.sysconfig
 Source3:	%{name}.init
 Patch0:		x32.patch
+Patch1:		ffmpeg6.patch
 URL:		https://tvheadend.org/projects/tvheadend
 BuildRequires:	avahi-devel
 BuildRequires:	dbus-devel
@@ -55,6 +56,7 @@ DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources.
 %ifarch x32
 %patch0 -p1
 %endif
+%patch1 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' lib/py/tvh/tv_meta_{tm,tv}db.py support/tvhmeta
 
@@ -122,7 +124,10 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc docs
-%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/tvheadend
+%attr(755,root,root) %{_bindir}/tvhmeta
+%attr(755,root,root) %{_bindir}/tv_meta_tmdb.py
+%attr(755,root,root) %{_bindir}/tv_meta_tvdb.py
 %attr(754,root,root) /etc/rc.d/init.d/tvheadend
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %{_mandir}/man1/%{name}.1*
diff --git a/ffmpeg6.patch b/ffmpeg6.patch
new file mode 100644
index 0000000..b7cc7cd
--- /dev/null
+++ b/ffmpeg6.patch
@@ -0,0 +1,11 @@
+--- tvheadend-c531383ca6654639dc112db67fd8dc893c1f5272/src/transcoding/transcode/hwaccels/vaapi.c~	2023-07-19 21:53:15.000000000 +0200
++++ tvheadend-c531383ca6654639dc112db67fd8dc893c1f5272/src/transcoding/transcode/hwaccels/vaapi.c	2023-10-21 22:34:37.128586237 +0200
+@@ -594,7 +594,7 @@
+     }
+ 
+     avctx->get_buffer2 = vaapi_get_buffer2;
+-    avctx->thread_safe_callbacks = 0;
++    //avctx->thread_safe_callbacks = 0;
+ 
+     return 0;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tvheadend.git/commitdiff/376794166ab620f16349947a5d1f65017dd0032d



More information about the pld-cvs-commit mailing list