diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:58:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:58:04 +0000 |
commit | 89f8d515746f459d7ca8e6261bd590bd1b4602bd (patch) | |
tree | e419fa4503aef64498a4e74697f5b35b26e9c8d6 /debian/patches/debian/0003-use-python3.patch | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-89f8d515746f459d7ca8e6261bd590bd1b4602bd.tar.xz netdata-89f8d515746f459d7ca8e6261bd590bd1b4602bd.zip |
Adding debian version 1.44.3-2.debian/1.44.3-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/debian/0003-use-python3.patch')
-rw-r--r-- | debian/patches/debian/0003-use-python3.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/debian/0003-use-python3.patch b/debian/patches/debian/0003-use-python3.patch new file mode 100644 index 00000000..95f4e7a5 --- /dev/null +++ b/debian/patches/debian/0003-use-python3.patch @@ -0,0 +1,29 @@ +Author: Sander Klein <debian-bugs@roedie.nl> +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,21 +1,4 @@ +-#!/usr/bin/env bash +-'''':; +-pybinary=$(which python3 || which python || which python2) +-filtered=() +-for arg in "$@" +-do +- case $arg in +- -p*) pybinary=${arg:2} +- shift 1 ;; +- *) filtered+=("$arg") ;; +- esac +-done +-if [ "$pybinary" = "" ] +-then +- echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM" +- exit 1 +-fi +-exec "$pybinary" "$0" "${filtered[@]}" # ''' ++#!/usr/bin/python3 + + # -*- coding: utf-8 -*- + # Description: |