summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-11-22 12:35:59 -0500
committerMike Gilbert <floppym@gentoo.org>2021-11-22 12:35:59 -0500
commit71597a2506a6df852cde9b4c693c88972b5065e4 (patch)
treefc8f3b8c6ade7d6b1f520f0ecf515d2a2708f8d0 /media-plugins
parentdev-python/zstandard: Stabilize 0.16.0 arm64, #825706 (diff)
downloadgentoo-71597a2506a6df852cde9b4c693c88972b5065e4.tar.gz
gentoo-71597a2506a6df852cde9b4c693c88972b5065e4.tar.bz2
gentoo-71597a2506a6df852cde9b4c693c88972b5065e4.zip
media-plugins/gst-plugins-vaapi: avoid calling python3
Closes: https://bugs.gentoo.org/823701 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/gst-plugins-vaapi/files/1.18.4-Avoid-calling-python3-script-to-enable-git-hook.patch26
-rw-r--r--media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.18.4-r2.ebuild4
2 files changed, 30 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-vaapi/files/1.18.4-Avoid-calling-python3-script-to-enable-git-hook.patch b/media-plugins/gst-plugins-vaapi/files/1.18.4-Avoid-calling-python3-script-to-enable-git-hook.patch
new file mode 100644
index 000000000000..4a1d19fa487a
--- /dev/null
+++ b/media-plugins/gst-plugins-vaapi/files/1.18.4-Avoid-calling-python3-script-to-enable-git-hook.patch
@@ -0,0 +1,26 @@
+From a417420d30ed258143259de4706795e0515ad795 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Mon, 22 Nov 2021 12:31:57 -0500
+Subject: [PATCH] Avoid calling python3 script to enable git hook
+
+This has not been submitted upstream: the gstreamer-vaapi repo appears
+to be merging into the gstreamer "mono" repo, where this issue does not
+exist.
+---
+ meson.build | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 60e26e0f..05aefff7 100644
+--- a/meson.build
++++ b/meson.build
+@@ -207,6 +207,3 @@ if gst_version_nano == 0
+ endif
+
+ configure_file(output: 'config.h', configuration: cdata)
+-
+-python3 = import('python').find_installation()
+-run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
+--
+2.34.0
+
diff --git a/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.18.4-r2.ebuild b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.18.4-r2.ebuild
index c1c1a02a825d..4fca3ec4362a 100644
--- a/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.18.4-r2.ebuild
+++ b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.18.4-r2.ebuild
@@ -72,6 +72,10 @@ S="${WORKDIR}/${MY_PN}-${PV}"
# FIXME: "Failed to create vaapipostproc element"
RESTRICT="test"
+PATCHES=(
+ "${FILESDIR}/1.18.4-Avoid-calling-python3-script-to-enable-git-hook.patch"
+)
+
multilib_src_configure() {
local emesonargs=(
-Dwith_encoders=yes