summaryrefslogtreecommitdiffstats
path: root/debian/patches/0006-Force-usage-of-python3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0006-Force-usage-of-python3.patch')
-rw-r--r--debian/patches/0006-Force-usage-of-python3.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0006-Force-usage-of-python3.patch b/debian/patches/0006-Force-usage-of-python3.patch
new file mode 100644
index 000000000..eed4e4c38
--- /dev/null
+++ b/debian/patches/0006-Force-usage-of-python3.patch
@@ -0,0 +1,23 @@
+From: Sander Klein <debian-bugs@roedie.nl>
+Date: Wed, 14 Nov 2018 14:36:37 +0100
+Subject: Force usage of python3
+
+ Debian uses Python2 by default. The netdata package installs the
+ Python3 dependencies. So, in order to work correctly it must use
+ Python3.
+---
+ collectors/python.d.plugin/python.d.plugin | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/collectors/python.d.plugin/python.d.plugin b/collectors/python.d.plugin/python.d.plugin
+index 264c338..9437405 100644
+--- a/collectors/python.d.plugin/python.d.plugin
++++ b/collectors/python.d.plugin/python.d.plugin
+@@ -1,6 +1,4 @@
+-#!/usr/bin/env bash
+-'''':; exec "$(command -v python || command -v python3 || command -v python2 ||
+-echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@" # '''
++#!/usr/bin/python3
+
+ # -*- coding: utf-8 -*-
+ # Description: