[arch-commits] Commit in gst-python/trunk (PKGBUILD gst-python-3.8.patch)

Antonio Rojas arojas at archlinux.org
Sat Oct 26 11:02:12 UTC 2019


    Date: Saturday, October 26, 2019 @ 11:02:10
  Author: arojas
Revision: 365829

Fix build with python 3.8

Added:
  gst-python/trunk/gst-python-3.8.patch
Modified:
  gst-python/trunk/PKGBUILD

----------------------+
 PKGBUILD             |    8 ++++++--
 gst-python-3.8.patch |   17 +++++++++++++++++
 2 files changed, 23 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-26 09:31:29 UTC (rev 365828)
+++ PKGBUILD	2019-10-26 11:02:10 UTC (rev 365829)
@@ -13,9 +13,11 @@
 makedepends=(python-gobject python2-gobject gst-plugins-base-libs git meson)
 _commit=16a98f94aaf576557505db76f9b8b5b7175de293  # tags/1.16.1^0
 source=("git+https://gitlab.freedesktop.org/gstreamer/gst-python.git#commit=$_commit"
-        "gst-common::git+https://gitlab.freedesktop.org/gstreamer/common.git")
+        "gst-common::git+https://gitlab.freedesktop.org/gstreamer/common.git"
+         gst-python-3.8.patch)
 sha256sums=('SKIP'
-            'SKIP')
+            'SKIP'
+            '7c916381f561fde3fade9e86a83e0d7ddb661b3e6116e95467674032a21cf8e7')
 
 pkgver() {
   cd $pkgbase
@@ -28,6 +30,8 @@
   git submodule init
   git config --local submodule.common.url "$srcdir/gst-common"
   git submodule update
+
+  patch -p1 -i ../gst-python-3.8.patch
 }
 
 _build() {

Added: gst-python-3.8.patch
===================================================================
--- gst-python-3.8.patch	                        (rev 0)
+++ gst-python-3.8.patch	2019-10-26 11:02:10 UTC (rev 365829)
@@ -0,0 +1,17 @@
+diff --git a/meson.build b/meson.build
+index 0c0a5ae..b3e66a1 100644
+--- a/meson.build
++++ b/meson.build
+@@ -24,7 +24,11 @@ pygobject_dep = dependency('pygobject-3.0', fallback: ['pygobject', 'pygobject_d
+ 
+ pymod = import('python')
+ python = pymod.find_installation(get_option('python'))
+-python_dep = python.dependency(required : true)
++if get_option('python').endswith('2')
++  python_dep = python.dependency(required : true)
++else
++  python_dep = dependency('python3-embed', required : true)
++endif
+ 
+ python_abi_flags = python.get_variable('ABIFLAGS', '')
+ pylib_loc = get_option('libpython-dir')



More information about the arch-commits mailing list