unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob e55089271a90e9603c27177089f88bccacd83eb7 847 bytes (raw)
name: gnu/packages/patches/netdata-0003-use-python3.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 python || which python3 || 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:

debug log:

solving e55089271a ...
found e55089271a in https://yhetil.org/guix-patches/20210211080944.11165-1-lle-bout@zaclys.net/

applying [1/1] https://yhetil.org/guix-patches/20210211080944.11165-1-lle-bout@zaclys.net/
diff --git a/gnu/packages/patches/netdata-0003-use-python3.patch b/gnu/packages/patches/netdata-0003-use-python3.patch
new file mode 100644
index 0000000000..e55089271a

1:33: trailing whitespace.
 
Checking patch gnu/packages/patches/netdata-0003-use-python3.patch...
Applied patch gnu/packages/patches/netdata-0003-use-python3.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 e55089271a90e9603c27177089f88bccacd83eb7	gnu/packages/patches/netdata-0003-use-python3.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).