pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/py-gstreamer1 Fix build with lang/python38



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e012e52fe0c6
branches:  trunk
changeset: 344861:e012e52fe0c6
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Wed Nov 27 03:37:17 2019 +0000

description:
Fix build with lang/python38

diffstat:

 multimedia/py-gstreamer1/distinfo                |   4 ++--
 multimedia/py-gstreamer1/patches/patch-configure |  19 +++++++++++++------
 2 files changed, 15 insertions(+), 8 deletions(-)

diffs (45 lines):

diff -r d24d52bb0b44 -r e012e52fe0c6 multimedia/py-gstreamer1/distinfo
--- a/multimedia/py-gstreamer1/distinfo Tue Nov 26 23:24:25 2019 +0000
+++ b/multimedia/py-gstreamer1/distinfo Wed Nov 27 03:37:17 2019 +0000
@@ -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 -r d24d52bb0b44 -r e012e52fe0c6 multimedia/py-gstreamer1/patches/patch-configure
--- a/multimedia/py-gstreamer1/patches/patch-configure  Tue Nov 26 23:24:25 2019 +0000
+++ b/multimedia/py-gstreamer1/patches/patch-configure  Wed Nov 27 03:37:17 2019 +0000
@@ -1,15 +1,22 @@
-$NetBSD: patch-configure,v 1.1 2018/11/13 12:55:31 adam Exp $
-
-python-config --ldflags is for linking executables; use --libs instead
+$NetBSD: patch-configure,v 1.2 2019/11/27 03:37:17 ryoon Exp $
 
---- configure.orig     2018-11-13 12:01:21.000000000 +0000
+* 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     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



Home | Main Index | Thread Index | Old Index