Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/vlc/files/, media-video/vlc/
Date: Fri, 25 Dec 2020 02:36:00
Message-Id: 1608863751.e014d41451b0d3fc3f9037d37703a20de1d197e3.sam@gentoo
1 commit: e014d41451b0d3fc3f9037d37703a20de1d197e3
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 02:26:13 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 02:35:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e014d414
7
8 media-video/vlc: fix USE=srt with >=net-libs/srt-1.4.2
9
10 Thanks-to: Attila Tóth <atoth <AT> atoth.sote.hu>
11 Closes: https://bugs.gentoo.org/758062
12 Package-Manager: Portage-3.0.9, Repoman-3.0.2
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 media-video/vlc/files/vlc-3.0.11.1-srt-1.4.2.patch | 25 ++++++++++++++++++++++
16 ...3.0.11.1-r100.ebuild => vlc-3.0.11.1-r1.ebuild} | 18 ++++------------
17 ...0.11.1-r100.ebuild => vlc-3.0.11.1-r101.ebuild} | 3 ++-
18 3 files changed, 31 insertions(+), 15 deletions(-)
19
20 diff --git a/media-video/vlc/files/vlc-3.0.11.1-srt-1.4.2.patch b/media-video/vlc/files/vlc-3.0.11.1-srt-1.4.2.patch
21 new file mode 100644
22 index 00000000000..d617a8357ff
23 --- /dev/null
24 +++ b/media-video/vlc/files/vlc-3.0.11.1-srt-1.4.2.patch
25 @@ -0,0 +1,25 @@
26 +net-libs/srt renamed the SRTO_TSBPDDELAY constant to SRTRO_LATENCY.
27 +https://github.com/Haivision/srt/pull/1364
28 +https://bugs.gentoo.org/758062
29 +--- b/modules/access/srt.c
30 ++++ a/modules/access/srt.c
31 +@@ -165,7 +165,7 @@ static bool srt_schedule_reconnect(strea
32 +
33 + /* Set latency */
34 + i_latency = var_InheritInteger( p_stream, "latency" );
35 +- srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY,
36 ++ srt_setsockopt( p_sys->sock, 0, SRTO_LATENCY,
37 + &i_latency, sizeof( int ) );
38 +
39 + psz_passphrase = var_InheritString( p_stream, "passphrase" );
40 +--- a/modules/access_output/srt.c
41 ++++ b/modules/access_output/srt.c
42 +@@ -162,7 +162,7 @@ static bool srt_schedule_reconnect(sout_
43 +
44 + /* Set latency */
45 + i_latency = var_InheritInteger( p_access, "latency" );
46 +- srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY,
47 ++ srt_setsockopt( p_sys->sock, 0, SRTO_LATENCY,
48 + &i_latency, sizeof( int ) );
49 +
50 + if ( psz_passphrase != NULL && psz_passphrase[0] != '\0')
51
52 diff --git a/media-video/vlc/vlc-3.0.11.1-r100.ebuild b/media-video/vlc/vlc-3.0.11.1-r1.ebuild
53 similarity index 97%
54 copy from media-video/vlc/vlc-3.0.11.1-r100.ebuild
55 copy to media-video/vlc/vlc-3.0.11.1-r1.ebuild
56 index 1c18dbda43a..5191f531572 100644
57 --- a/media-video/vlc/vlc-3.0.11.1-r100.ebuild
58 +++ b/media-video/vlc/vlc-3.0.11.1-r1.ebuild
59 @@ -3,8 +3,6 @@
60
61 EAPI=7
62
63 -LUA_COMPAT=( lua5-{1..2} )
64 -
65 MY_PV="${PV/_/-}"
66 MY_PV="${MY_PV/-beta/-test}"
67 MY_P="${PN}-${MY_PV}"
68 @@ -23,7 +21,7 @@ else
69 fi
70 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 -sparc ~x86"
71 fi
72 -inherit autotools flag-o-matic lua-single toolchain-funcs virtualx xdg
73 +inherit autotools flag-o-matic toolchain-funcs virtualx xdg
74
75 DESCRIPTION="Media player and framework with support for most multimedia files and streaming"
76 HOMEPAGE="https://www.videolan.org/vlc/"
77 @@ -49,7 +47,6 @@ REQUIRED_USE="
78 libcaca? ( X )
79 libtar? ( skins )
80 libtiger? ( kate )
81 - lua? ( ${LUA_REQUIRED_USE} )
82 skins? ( qt5 truetype X xml )
83 ssl? ( gcrypt )
84 vaapi? ( ffmpeg X )
85 @@ -58,7 +55,6 @@ REQUIRED_USE="
86 BDEPEND="
87 >=sys-devel/gettext-0.19.8
88 virtual/pkgconfig
89 - lua? ( ${LUA_DEPS} )
90 amd64? ( dev-lang/yasm )
91 x86? ( dev-lang/yasm )
92 "
93 @@ -137,7 +133,7 @@ RDEPEND="
94 linsys? ( media-libs/zvbi )
95 lirc? ( app-misc/lirc )
96 live? ( media-plugins/live:= )
97 - lua? ( ${LUA_DEPS} )
98 + lua? ( >=dev-lang/lua-5.1:0= )
99 mad? ( media-libs/libmad )
100 matroska? (
101 >=dev-libs/libebml-1.3.6:=
102 @@ -184,7 +180,7 @@ RDEPEND="
103 >=media-libs/speex-1.2.0
104 media-libs/speexdsp
105 )
106 - srt? ( net-libs/srt )
107 + srt? ( >=net-libs/srt-1.4.2 )
108 ssl? ( net-libs/gnutls:= )
109 svg? (
110 gnome-base/librsvg:2
111 @@ -232,19 +228,13 @@ PATCHES=(
112 "${FILESDIR}"/${PN}-2.2.8-freerdp-2.patch # bug 590164
113 "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290
114 "${FILESDIR}"/${PN}-3.0.8-qt-5.15.patch # TODO: upstream
115 - "${FILESDIR}"/${PN}-3.0.11.1-configure_lua_version.patch
116 + "${FILESDIR}"/${PN}-3.0.11.1-srt-1.4.2.patch # bug 758062
117 )
118
119 DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt )
120
121 S="${WORKDIR}/${MY_P}"
122
123 -pkg_setup() {
124 - if use lua; then
125 - lua-single_pkg_setup
126 - fi
127 -}
128 -
129 src_prepare() {
130 xdg_src_prepare # bug 608256
131
132
133 diff --git a/media-video/vlc/vlc-3.0.11.1-r100.ebuild b/media-video/vlc/vlc-3.0.11.1-r101.ebuild
134 similarity index 99%
135 rename from media-video/vlc/vlc-3.0.11.1-r100.ebuild
136 rename to media-video/vlc/vlc-3.0.11.1-r101.ebuild
137 index 1c18dbda43a..f07316c9278 100644
138 --- a/media-video/vlc/vlc-3.0.11.1-r100.ebuild
139 +++ b/media-video/vlc/vlc-3.0.11.1-r101.ebuild
140 @@ -184,7 +184,7 @@ RDEPEND="
141 >=media-libs/speex-1.2.0
142 media-libs/speexdsp
143 )
144 - srt? ( net-libs/srt )
145 + srt? ( >=net-libs/srt-1.4.2 )
146 ssl? ( net-libs/gnutls:= )
147 svg? (
148 gnome-base/librsvg:2
149 @@ -233,6 +233,7 @@ PATCHES=(
150 "${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290
151 "${FILESDIR}"/${PN}-3.0.8-qt-5.15.patch # TODO: upstream
152 "${FILESDIR}"/${PN}-3.0.11.1-configure_lua_version.patch
153 + "${FILESDIR}"/${PN}-3.0.11.1-srt-1.4.2.patch # bug 758062
154 )
155
156 DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt )