Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/totem/, media-video/totem/files/
Date: Fri, 30 Sep 2022 19:09:48
Message-Id: 1664564748.589176e316d803ef69d4d3712129c9e8ecbdf0f6.mattst88@gentoo
1 commit: 589176e316d803ef69d4d3712129c9e8ecbdf0f6
2 Author: brahmajit das <listout <AT> protonmail <DOT> com>
3 AuthorDate: Sat Sep 17 20:52:01 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 19:05:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589176e3
7
8 media-video/totem: Version bump to 43.0
9
10 Closes: https://github.com/gentoo/gentoo/pull/27311
11 Signed-off-by: brahmajit das <listout <AT> protonmail.com>
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 media-video/totem/Manifest | 1 +
15 .../totem/files/43.0-gst-inspect-sandbox.patch | 30 +++++
16 media-video/totem/totem-43.0.ebuild | 128 +++++++++++++++++++++
17 3 files changed, 159 insertions(+)
18
19 diff --git a/media-video/totem/Manifest b/media-video/totem/Manifest
20 index 08aa7abe8948..9098875f44d7 100644
21 --- a/media-video/totem/Manifest
22 +++ b/media-video/totem/Manifest
23 @@ -1 +1,2 @@
24 DIST totem-42.0.tar.xz 2476952 BLAKE2B 45eac2e586c3c17eab9f570812ae2c79812859635d1ef6df1d0d2c526436558dbab9581699ce86d3e2cd3048f5d65bbd1927c3faa5f7575a5468d0813ce68bcc SHA512 67872d06a7d691a23b97255c5ee5f8d90a1fdf2b36f064f26c10fb4958733772eea456aab4f0fe2c89d23ec987cf5b9c2383c97ba5bec45247953296f1cd6c4b
25 +DIST totem-43.0.tar.xz 2486304 BLAKE2B 3b43ad2cbf40472bff3b7369001b9b7784ef52244812d9aae493fffa99982a8f24770d0f5063f0b1f1fd320d6b2cec5e702ded9ccfaece51f7bdf9d862b96230 SHA512 b35d32ebadf4b9900ab234f07f8a7128edbc15593e1447c22f3c7a653fcbd4a2df9d45484e2decce5dd5ab67849fca1003a1ded338a0af0930b6560ee4f764ae
26
27 diff --git a/media-video/totem/files/43.0-gst-inspect-sandbox.patch b/media-video/totem/files/43.0-gst-inspect-sandbox.patch
28 new file mode 100644
29 index 000000000000..6b545ebcdf8f
30 --- /dev/null
31 +++ b/media-video/totem/files/43.0-gst-inspect-sandbox.patch
32 @@ -0,0 +1,30 @@
33 +# From abb91b315f407b7e180bc00eb96f1cd6bb0ab25d Mon Sep 17 00:00:00 2001
34 +# From: Gilles Dartiguelongue <eva@g.o>
35 +# Date: Thu, 7 Jun 2018 23:47:48 +0200
36 +# Subject: [PATCH] Make gst-inspect calls optional at build-time
37 +#
38 +# Crashes on Gentoo due to plugins trying to access dri nodes which are sandboxed
39 +--- a/meson_options.txt
40 ++++ b/meson_options.txt
41 +@@ -6,3 +6,4 @@ option('with-plugins', type: 'combo', choices: ['all', 'none', 'auto'], value: '
42 + option('enable-gtk-doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation')
43 + option('profile', type: 'combo', choices: ['default', 'development'], value: 'default', description: 'Build profiles')
44 + option('inspector-page', type:'boolean', value: false, description: 'Whether to build the optional GTK inspector page')
45 ++option('gst-inspect', type: 'boolean', value: true, description: 'build-time test of available gstreamer plugins')
46 +--- a/src/backend/meson.build
47 ++++ b/src/backend/meson.build
48 +@@ -1,5 +1,6 @@
49 + backend_inc = include_directories('.')
50 +
51 ++if get_option('gst-inspect')
52 + gst_inspect = find_program(
53 + 'gst-inspect-1.0',
54 + join_paths(gst_dep.get_pkgconfig_variable('toolsdir'), 'gst-inspect-1.0'),
55 +@@ -32,6 +33,7 @@ foreach plugin: gst_good_plugins
56 + assert(r.returncode() == 0,
57 + 'Cannot find required GStreamer-1.0 plugin "' + plugin + '". It should be part of gst-plugins-good. Please install it.')
58 + endforeach
59 ++endif
60 +
61 + sources = files(
62 + 'bacon-time-label.c',
63
64 diff --git a/media-video/totem/totem-43.0.ebuild b/media-video/totem/totem-43.0.ebuild
65 new file mode 100644
66 index 000000000000..5786f84eb326
67 --- /dev/null
68 +++ b/media-video/totem/totem-43.0.ebuild
69 @@ -0,0 +1,128 @@
70 +# Copyright 1999-2022 Gentoo Authors
71 +# Distributed under the terms of the GNU General Public License v2
72 +
73 +EAPI=8
74 +PYTHON_COMPAT=( python3_{8..11} )
75 +PYTHON_REQ_USE="threads(+)"
76 +
77 +inherit gnome.org gnome2-utils meson virtualx xdg python-single-r1
78 +
79 +DESCRIPTION="Media player for GNOME"
80 +HOMEPAGE="https://wiki.gnome.org/Apps/Videos https://gitlab.gnome.org/GNOME/totem/"
81 +
82 +LICENSE="GPL-2+ LGPL-2+"
83 +SLOT="0"
84 +IUSE="gtk-doc +python test"
85 +# see bug #359379
86 +REQUIRED_USE="
87 + python? ( ${PYTHON_REQUIRED_USE} )
88 +"
89 +RESTRICT="!test? ( test )"
90 +
91 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
92 +
93 +COMMON_DEPEND="
94 + >=dev-libs/glib-2.72.0:2
95 + >=x11-libs/gtk+-3.22.0:3[introspection]
96 + >=gui-libs/libhandy-1.5.0:1
97 + >=media-libs/gstreamer-1.6.0:1.0
98 + >=media-libs/gst-plugins-base-1.6.0:1.0[pango]
99 + >=media-libs/gst-plugins-good-1.6.0:1.0
100 + >=media-libs/grilo-0.3.0:0.3[playlist]
101 + >=dev-libs/libpeas-1.1.0[gtk]
102 + >=dev-libs/totem-pl-parser-3.26.5:0=[introspection]
103 + gnome-base/gnome-desktop:3=
104 + gnome-base/gsettings-desktop-schemas
105 + >=x11-libs/cairo-1.14
106 + x11-libs/gdk-pixbuf:2
107 + >=dev-libs/gobject-introspection-1.54:=
108 +
109 + python? (
110 + ${PYTHON_DEPS}
111 + $(python_gen_cond_dep '
112 + >=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}]
113 + ')
114 + )
115 +"
116 +RDEPEND="${COMMON_DEPEND}
117 + media-plugins/grilo-plugins:0.3
118 + media-plugins/gst-plugins-gtk:1.0[opengl]
119 + media-plugins/gst-plugins-meta:1.0
120 + media-plugins/gst-plugins-taglib:1.0
121 + x11-themes/adwaita-icon-theme
122 + dev-libs/libportal:0=[gtk]
123 + python? (
124 + x11-libs/pango[introspection]
125 + >=dev-libs/libpeas-1.1.0[python,${PYTHON_SINGLE_USEDEP}]
126 + $(python_gen_cond_dep '
127 + dev-python/dbus-python[${PYTHON_USEDEP}]
128 + ')
129 + )
130 +"
131 +DEPEND="${COMMON_DEPEND}
132 + x11-base/xorg-proto
133 +"
134 +BDEPEND="
135 + dev-lang/perl
136 + gtk-doc? ( >=dev-util/gtk-doc-1.14
137 + app-text/docbook-xml-dtd:4.5 )
138 + dev-util/glib-utils
139 + dev-util/itstool
140 + >=sys-devel/gettext-0.19.8
141 + virtual/pkgconfig
142 +"
143 +# perl for pod2man
144 +# Prevent dev-python/pylint dep, bug #482538
145 +
146 +PATCHES=(
147 + "${FILESDIR}"/${PV}-gst-inspect-sandbox.patch # Allow disabling calls to gst-inspect (sandbox issue)
148 +)
149 +
150 +pkg_setup() {
151 + use python && python-single-r1_pkg_setup
152 +}
153 +
154 +src_prepare() {
155 + default
156 + xdg_environment_reset
157 +
158 + # Drop pointless samplepython plugin from build
159 + sed -e '/samplepython/d' -i src/plugins/meson.build || die
160 +}
161 +
162 +src_configure() {
163 + local emesonargs=(
164 + -Dhelp=true
165 + -Denable-easy-codec-installation=yes
166 + -Denable-python=$(usex python yes no)
167 + -Dlibportal=enabled
168 + -Dwith-plugins=all # in 3.34.1 only builtin and python plugins are left, and python is extra controlled by enable-python
169 + $(meson_use gtk-doc enable-gtk-doc)
170 + -Dprofile=default
171 + -Dinspector-page=false
172 + -Dgst-inspect=false
173 + )
174 + meson_src_configure
175 +}
176 +
177 +src_install() {
178 + local -x GST_PLUGIN_SYSTEM_PATH_1_0= # bug 812170
179 + meson_src_install
180 + if use python ; then
181 + python_optimize "${ED}"/usr/$(get_libdir)/totem/plugins/
182 + fi
183 +}
184 +
185 +pkg_postinst() {
186 + xdg_pkg_postinst
187 + gnome2_schemas_update
188 +}
189 +
190 +pkg_postrm() {
191 + xdg_pkg_postrm
192 + gnome2_schemas_update
193 +}
194 +
195 +src_test() {
196 + virtx meson_src_test
197 +}