aboutsummaryrefslogtreecommitdiffstats
path: root/community/collectd/fix-python38.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-02-04 19:18:38 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-02-06 00:31:41 +0000
commitd8de85d6d5f2352de26b20ee9ed1273d2e379aba (patch)
tree212c1940a4eef329dc634ec861f787e01ef7e43d /community/collectd/fix-python38.patch
parent3d6575438a1932b1365bac4c92be1ac171f6cd77 (diff)
downloadaports-d8de85d6d5f2352de26b20ee9ed1273d2e379aba.tar.gz
aports-d8de85d6d5f2352de26b20ee9ed1273d2e379aba.tar.bz2
aports-d8de85d6d5f2352de26b20ee9ed1273d2e379aba.tar.xz
community/collectd: fix linking with python3.8
fixes #12393
Diffstat (limited to 'community/collectd/fix-python38.patch')
-rw-r--r--community/collectd/fix-python38.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/collectd/fix-python38.patch b/community/collectd/fix-python38.patch
new file mode 100644
index 0000000000..fa7eb36804
--- /dev/null
+++ b/community/collectd/fix-python38.patch
@@ -0,0 +1,26 @@
+From 071af20ddcde3b58ddceacfd6eb95b6756af4323 Mon Sep 17 00:00:00 2001
+From: Alexander Meshcheryakov <Self-Perfection@users.noreply.github.com>
+Date: Sat, 16 Nov 2019 17:53:32 +0300
+Subject: [PATCH] Fix linking with Python 3.8
+
+Since Python 3.8 --embed flag needs to be provided to python-config to embed python.
+Reference: https://bugs.python.org/issue36721
+
+This was partially addressed in #3170 but only fixed building and not linking with python.
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9fc40b17df..00e1f6a53e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -4711,7 +4711,7 @@ if test "$PYTHON_CONFIG" != ""; then
+ if test $? -ne 0; then
+ with_libpython="no"
+ fi
+- LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags`"
++ LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags --embed`" || LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags`"
+ if test $? -ne 0; then
+ with_libpython="no"
+ fi