diff options
author | ryoon <ryoon@pkgsrc.org> | 2019-11-27 03:37:17 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2019-11-27 03:37:17 +0000 |
commit | 32e97c78c82e7fac4cb466c7eb2921c81895b8db (patch) | |
tree | 6200fb56f8ad83f97392dca1f26659fc1e77d52c /multimedia | |
parent | a8bc3df0bc5f9c86908376e1deac9888b0dfbfc8 (diff) | |
download | pkgsrc-32e97c78c82e7fac4cb466c7eb2921c81895b8db.tar.gz |
Fix build with lang/python38
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/py-gstreamer1/distinfo | 4 | ||||
-rw-r--r-- | multimedia/py-gstreamer1/patches/patch-configure | 17 |
2 files changed, 14 insertions, 7 deletions
diff --git a/multimedia/py-gstreamer1/distinfo b/multimedia/py-gstreamer1/distinfo index 7a6a0de75ca..2f2ac2b7fbf 100644 --- a/multimedia/py-gstreamer1/distinfo +++ b/multimedia/py-gstreamer1/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.12 2019/11/26 13:07:46 wiz Exp $ +$NetBSD: distinfo,v 1.13 2019/11/27 03:37:17 ryoon Exp $ SHA1 (gst-python-1.16.1.tar.xz) = 2d6854adf591c3089861c0a85a84c0bd9f8bec5c RMD160 (gst-python-1.16.1.tar.xz) = 8baa0d2801ebb06dc3d6039c6a13ca4abf322282 SHA512 (gst-python-1.16.1.tar.xz) = 333000bfe964c5d94db98990e500b7f0e12ae8c8058b306bb3a822ab13c2031ea5c55c06dd55f40c66874f879d32a15bdd4f08bcd2107e1a5bb5eb90a4572691 Size (gst-python-1.16.1.tar.xz) = 412888 bytes -SHA1 (patch-configure) = c9df2724aa909ca3b00a8323aad0d76e28fec480 +SHA1 (patch-configure) = 1d0ea6c3e9938b2e9aa3afe39f2125ed452d1475 diff --git a/multimedia/py-gstreamer1/patches/patch-configure b/multimedia/py-gstreamer1/patches/patch-configure index 76da354ff40..7ccccd4f21a 100644 --- a/multimedia/py-gstreamer1/patches/patch-configure +++ b/multimedia/py-gstreamer1/patches/patch-configure @@ -1,15 +1,22 @@ -$NetBSD: patch-configure,v 1.1 2018/11/13 12:55:31 adam Exp $ +$NetBSD: patch-configure,v 1.2 2019/11/27 03:37:17 ryoon Exp $ -python-config --ldflags is for linking executables; use --libs instead +* python-config --ldflags is for linking executables; use --libs instead +* Python 3.8's python3.8-config --libs does not return -lpython3.8 any more. + Use --embed flag. See: + https://docs.python.org/3/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build ---- configure.orig 2018-11-13 12:01:21.000000000 +0000 +--- configure.orig 2019-09-23 10:19:47.000000000 +0000 +++ configure -@@ -14460,7 +14460,7 @@ fi +@@ -14463,7 +14463,11 @@ fi $as_echo_n "checking for libraries required to embed python... " >&6; } if $PYTHON-config --help 1>/dev/null 2>/dev/null; then - PYTHON_LIBS=`$PYTHON-config --ldflags 2>/dev/null` -+ PYTHON_LIBS=`$PYTHON-config --libs 2>/dev/null` ++ if $PYTHON-config --libs --embed 1>/dev/null 2>/dev/null; then ++ PYTHON_LIBS=`$PYTHON-config --libs --embed 2>/dev/null` ++ else ++ PYTHON_LIBS=`$PYTHON-config --libs 2>/dev/null` ++ fi PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig as s; print(s.get_python_lib(standard_lib=1))"` if echo "$host_os" | grep darwin >/dev/null 2>&1; then PYTHON_LIB_LOC=/usr/lib |