net-libs/gtk-vnc: fix honoring of python-any chosen py version
authorMart Raudsepp <leio@gentoo.org>
Sat, 4 Apr 2020 21:10:06 +0000 (00:10 +0300)
committerMart Raudsepp <leio@gentoo.org>
Sat, 4 Apr 2020 21:15:16 +0000 (00:15 +0300)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
net-libs/gtk-vnc/files/1.0.0-honor-python-ver.patch [new file with mode: 0644]
net-libs/gtk-vnc/gtk-vnc-1.0.0.ebuild

diff --git a/net-libs/gtk-vnc/files/1.0.0-honor-python-ver.patch b/net-libs/gtk-vnc/files/1.0.0-honor-python-ver.patch
new file mode 100644 (file)
index 0000000..f26a857
--- /dev/null
@@ -0,0 +1,26 @@
+From a51acc0c353959e8af06a031724a79cfe6b60963 Mon Sep 17 00:00:00 2001
+From: Mart Raudsepp <leio@gentoo.org>
+Date: Sun, 5 Apr 2020 00:05:49 +0300
+Subject: [PATCH] meson: Find python explicitly to honor downstream python
+ choice
+
+---
+ src/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/meson.build b/src/meson.build
+index 461d8d2..a09aee9 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -308,7 +308,7 @@ gtk_vnc_sources = gtk_vnc_gir_sources + gvnc_marshal + [
+   'vncdisplaykeymap.c',
+ ]
+-python = import('python').find_installation()
++python = import('python').find_installation('python3')
+ keymaps = [
+   'xorgevdev',
+   'xorgkbd',
+-- 
+2.20.1
+
index c8939c84f659558e86e921b8613204bfcd5f0ee5..da83431610b46559253a22e0e8582c7ffa35a089 100644 (file)
@@ -43,6 +43,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
        # Few fixes from origin/master + optionality patches filed as https://gitlab.gnome.org/GNOME/gtk-vnc/merge_requests/6
        "${WORKDIR}"/patches
+       "${FILESDIR}"/${PV}-honor-python-ver.patch
 )
 
 src_prepare() {