summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-08-26 11:01:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-08-26 11:01:07 +0000
commitda57b68837cbbfec1148413f1afcaf36f29c329f (patch)
tree4d4987fe459731f1a636dc037059a8e9d9809a58
parentUpdating to standards version 4.2.1. (diff)
downloadnetdata-da57b68837cbbfec1148413f1afcaf36f29c329f.tar.xz
netdata-da57b68837cbbfec1148413f1afcaf36f29c329f.zip
Adding patch from Sander Klein <debian-bugs@roedie.nl> to force python3 (Closes: #906329).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/0008-force-python3.patch17
-rw-r--r--debian/patches/series1
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/0008-force-python3.patch b/debian/patches/0008-force-python3.patch
new file mode 100644
index 000000000..fb92e42ed
--- /dev/null
+++ b/debian/patches/0008-force-python3.patch
@@ -0,0 +1,17 @@
+Author: Sander Klein <debian-bugs@roedie.nl>
+Description: 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.
+
+diff -Naurp netdata.orig/plugins.d/python.d.plugin netdata/plugins.d/python.d.plugin
+--- netdata.orig/plugins.d/python.d.plugin
++++ netdata/plugins.d/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:
diff --git a/debian/patches/series b/debian/patches/series
index f2ef3d528..9928b7bf6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
0005-remove-infographic-for-privacy-breach-reasons.patch
0006-compile-on-kfreebsd-hurd.patch
0007-python-config-directory.patch
+0008-force-python3.patch