All of lore.kernel.org
 help / color / mirror / Atom feed
From: "akuster" <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [dunfell 08/35] dstat: Fix runtime error that depend python.
Date: Sun, 31 May 2020 09:15:55 -0700	[thread overview]
Message-ID: <6fbfbc4b1239b4b2f492b45103fa7a3f6e4b2f18.1590941674.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1590941673.git.akuster808@gmail.com>

From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>

Make dstat to depend python3.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 5a825b5ce781aef64f347a6c9a76307406a4f295)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 .../dstat/0001-change-dstat-to-python3.patch  | 89 +++++++++++++++++++
 meta-oe/recipes-support/dstat/dstat_0.7.4.bb  |  4 +-
 2 files changed, 92 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/dstat/dstat/0001-change-dstat-to-python3.patch

diff --git a/meta-oe/recipes-support/dstat/dstat/0001-change-dstat-to-python3.patch b/meta-oe/recipes-support/dstat/dstat/0001-change-dstat-to-python3.patch
new file mode 100644
index 0000000000..06a8498f3c
--- /dev/null
+++ b/meta-oe/recipes-support/dstat/dstat/0001-change-dstat-to-python3.patch
@@ -0,0 +1,89 @@
+From ce0528cb48666843fed2ad10ece5ecb0ac0b8cf8 Mon Sep 17 00:00:00 2001
+From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
+Date: Fri, 15 May 2020 12:38:49 +0900
+Subject: [PATCH] change dstat to python3.
+
+Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
+---
+ dstat               | 2 +-
+ examples/curstest   | 2 +-
+ examples/devtest.py | 2 +-
+ examples/mmpipe.py  | 2 +-
+ examples/mstat.py   | 2 +-
+ examples/read.py    | 2 +-
+ examples/tdbtest    | 2 +-
+ 7 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/dstat b/dstat
+index 9359965..f250f06 100755
+--- a/dstat
++++ b/dstat
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ 
+ ### This program is free software; you can redistribute it and/or
+ ### modify it under the terms of the GNU General Public License
+diff --git a/examples/curstest b/examples/curstest
+index afc4e70..d720cca 100755
+--- a/examples/curstest
++++ b/examples/curstest
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ import curses, sys
+ 
+ #c = curses.wrapper(s)
+diff --git a/examples/devtest.py b/examples/devtest.py
+index 0e9e969..e53babd 100755
+--- a/examples/devtest.py
++++ b/examples/devtest.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ 
+ import sys
+ sys.path.insert(0, '/usr/share/dstat/')
+diff --git a/examples/mmpipe.py b/examples/mmpipe.py
+index 5c93567..f91515f 100755
+--- a/examples/mmpipe.py
++++ b/examples/mmpipe.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ import select, sys, os
+ 
+ def readpipe(file, tmout = 0.001):
+diff --git a/examples/mstat.py b/examples/mstat.py
+index abf4d07..ac157e4 100755
+--- a/examples/mstat.py
++++ b/examples/mstat.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ 
+ ### Example2: simple sub-second monitor (ministat)
+ 
+diff --git a/examples/read.py b/examples/read.py
+index 556b7ae..a925109 100755
+--- a/examples/read.py
++++ b/examples/read.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ 
+ ### Example 1: Direct accessing stats
+ ### This is a quick example showing how you can access dstat data
+diff --git a/examples/tdbtest b/examples/tdbtest
+index 528a8ea..ae7fef9 100755
+--- a/examples/tdbtest
++++ b/examples/tdbtest
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ import sys, tdb
+ 
+ db = tdb.tdb('/var/cache/samba/connections.tdb')
+-- 
+2.17.1
+
diff --git a/meta-oe/recipes-support/dstat/dstat_0.7.4.bb b/meta-oe/recipes-support/dstat/dstat_0.7.4.bb
index 2e37dd72eb..74af54ca53 100644
--- a/meta-oe/recipes-support/dstat/dstat_0.7.4.bb
+++ b/meta-oe/recipes-support/dstat/dstat_0.7.4.bb
@@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
 DEPENDS += "asciidoc-native xmlto-native"
 
-SRC_URI = "git://github.com/dagwieers/dstat.git"
+SRC_URI = "git://github.com/dagwieers/dstat.git \
+           file://0001-change-dstat-to-python3.patch \
+          "
 
 SRCREV = "6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728"
 
-- 
2.17.1


  parent reply	other threads:[~2020-05-31 16:16 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-31 16:15 [dunfell 00/35] Patch review akuster
2020-05-31 16:15 ` [dunfell 01/35] netplan: Depend on systemd if it is in distro akuster
2020-05-31 16:15 ` [dunfell 02/35] uim: Add patch to fix -fno-common link error akuster
2020-05-31 16:15 ` [dunfell 03/35] nlohmann-json: backport gcc10 fix akuster
2020-05-31 16:15 ` [dunfell 04/35] xfconf: 4.14.2 -> 4.14.3 akuster
2020-05-31 16:15 ` [dunfell 05/35] thunar: 1.8.12 -> 1.8.14 akuster
2020-05-31 16:15 ` [dunfell 06/35] catfish: 1.4.11 -> 1.4.13 akuster
2020-05-31 16:15 ` [dunfell 07/35] librsync: upgrade 2.3.0 -> 2.3.1 akuster
2020-05-31 16:15 ` akuster [this message]
2020-05-31 16:15 ` [dunfell 09/35] unicode-ucd: Stop broken license downloading akuster
2020-05-31 16:15 ` [dunfell 10/35] python-periphery: Add python-mmap to RDEPENDS akuster
2020-05-31 16:15 ` [dunfell 11/35] postfix: Upgrade to 3.4.10 and compile with -fcommon akuster
2020-05-31 16:15 ` [dunfell 12/35] postfix: Upgrade 3.4.10 -> 3.4.12 akuster
2020-05-31 16:16 ` [dunfell 13/35] python3-iso8601: add python3-numbers to RDEPENDS akuster
2020-05-31 16:16 ` [dunfell 14/35] jansson: upgrade 2.12 -> 2.13.1 akuster
2020-05-31 16:16 ` [dunfell 15/35] openldap: upgrade 2.4.49 -> 2.4.50 akuster
2020-05-31 16:16 ` [dunfell 16/35] python3-jinja2: Update 2.11.1 -> 2.11.2 akuster
2020-05-31 16:16 ` [dunfell 17/35] python3-gmqtt: Upgrade to 0.6.5 akuster
2020-05-31 16:16 ` [dunfell 18/35] python3-pycparser: upgrade 2.19 -> 2.20 akuster
2020-05-31 16:16 ` [dunfell 19/35] python3-appdirs: Upgrade to 1.4.4 akuster
2020-05-31 16:16 ` [dunfell 20/35] apache2: create log/run directory via pkg_postinst akuster
2020-05-31 16:16 ` [dunfell 21/35] dnsmasq: upgrade 2.80 -> 2.81 akuster
2020-05-31 16:16 ` [dunfell 22/35] fetchmail: upgrade 6.4.3 -> 6.4.4 akuster
2020-05-31 16:16 ` [dunfell 23/35] kea: upgrade 1.7.6 -> 1.7.7 akuster
2020-05-31 16:16 ` [dunfell 24/35] libqmi: upgrade 1.24.8 -> 1.24.12 akuster
2020-05-31 16:16 ` [dunfell 25/35] python3-pandas: Upgrade 1.0.1 -> 1.0.3 akuster
2020-05-31 16:16 ` [dunfell 26/35] python3-parallax: Upgrade 1.0.5 -> 1.0.6 akuster
2020-05-31 16:16 ` [dunfell 27/35] python3-openpyxl: Upgrade 2.6.3 -> 3.0.3 akuster
2020-05-31 16:16 ` [dunfell 28/35] safec: Update to latest on 3.5.1 release tags akuster
2020-05-31 16:16 ` [dunfell 29/35] turbostat: fix the build failure for new v5.7-rc6 kernel akuster
2020-05-31 16:16 ` [dunfell 30/35] cryptsetup: upgrade 2.3.1 -> 2.3.2 akuster
2020-05-31 16:16 ` [dunfell 31/35] tremor: update SRC_URI as project moved to gitlab akuster
2020-05-31 16:16 ` [dunfell 32/35] ser2net: fix upstream check URL akuster
2020-05-31 16:16 ` [dunfell 33/35] ser2net: upgrade 4.1.5 -> 4.1.8 akuster
2020-05-31 16:16 ` [dunfell 34/35] gexiv2: upgrade 0.12.0 -> 0.12.1 akuster
2020-05-31 16:16 ` [dunfell 35/35] thunar: upgrade 1.8.14 -> 1.8.15 akuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6fbfbc4b1239b4b2f492b45103fa7a3f6e4b2f18.1590941674.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.