summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-04-26 16:26:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-04-26 16:28:10 +0000
commitc26094e490df1debe1cbe2596f56957456d5e5e2 (patch)
tree947f7f2f09a845860b89d13bfc2a3c721586cf26
parentMerging upstream version 1.14.0. (diff)
downloadnetdata-c26094e490df1debe1cbe2596f56957456d5e5e2.tar.xz
netdata-c26094e490df1debe1cbe2596f56957456d5e5e2.zip
Refreshing use-python3.patch.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/debian/0003-use-python3.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/patches/debian/0003-use-python3.patch b/debian/patches/debian/0003-use-python3.patch
index 7359393f2..db1592eb8 100644
--- a/debian/patches/debian/0003-use-python3.patch
+++ b/debian/patches/debian/0003-use-python3.patch
@@ -4,9 +4,13 @@ Description: Debian uses by default python 2 instead of python3.
diff -Naurp netdata.orig/collectors/python.d.plugin/python.d.plugin.in netdata/collectors/python.d.plugin/python.d.plugin.in
--- netdata.orig/collectors/python.d.plugin/python.d.plugin.in
+++ netdata/collectors/python.d.plugin/python.d.plugin.in
-@@ -1,6 +1,4 @@
+@@ -1,10 +1,4 @@
-#!/usr/bin/env bash
--'''':; exec "$(command -v python || command -v python3 || command -v python2 ||
+-'''':;
+-if [[ "$OSTYPE" == "darwin"* ]]; then
+- export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
+-fi
+-exec "$(command -v python || command -v python3 || command -v python2 ||
-echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@" # '''
+#!/usr/bin/python3