commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-04-02 22:49:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "bcc" Mon Apr 2 22:49:39 2018 rev:21 rq:592979 version:0.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-03-20 22:01:17.155681902 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-04-02 22:49:45.368691075 +0200 @@ -1,0 +2,6 @@ +Tue Mar 27 08:08:37 UTC 2018 - glin@suse.com + +- Add bcc-bsc1080085-fix-syscount-str.patch to convert ausyscall + output to string (bsc#1080085) + +------------------------------------------------------------------- New: ---- bcc-bsc1080085-fix-syscount-str.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bcc.spec ++++++ --- /var/tmp/diff_new_pack.xf1uGJ/_old 2018-04-02 22:49:45.956669697 +0200 +++ /var/tmp/diff_new_pack.xf1uGJ/_new 2018-04-02 22:49:45.960669552 +0200 @@ -43,6 +43,7 @@ Patch6: %{name}-bsc1080085-fix-cachetop-py3-str.patch Patch7: %{name}-bsc1080085-import-readline-from-lib.patch Patch8: %{name}-bsc1080085-detect-slab-for-slabratetop.patch +Patch9: %{name}-bsc1080085-fix-syscount-str.patch ExcludeArch: ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -175,6 +176,7 @@ %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build # Prevent the cpp examples from compilation and installation ++++++ bcc-bsc1080085-fix-syscount-str.patch ++++++
From 85db55338c0d3178903bc60a5b3b85a9bc24159b Mon Sep 17 00:00:00 2001 From: Gary Lin <glin@suse.com> Date: Tue, 27 Mar 2018 15:54:09 +0800 Subject: [PATCH] tools/syscount: convert ausyscall output to string
In python3, subprocess.check_output() returns a byte array and it failed the following split(). Convert the output to string to avoid the error. Signed-off-by: Gary Lin <glin@suse.com> --- tools/syscount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/syscount.py b/tools/syscount.py index a20d777..1f31bef 100755 --- a/tools/syscount.py +++ b/tools/syscount.py @@ -362,7 +362,7 @@ try: # Skip the first line, which is a header. The rest of the lines are simply # SYSCALL_NUM\tSYSCALL_NAME pairs. out = subprocess.check_output('ausyscall --dump | tail -n +2', shell=True) - syscalls = dict(map(parse_syscall, out.strip().split('\n'))) + syscalls = dict(map(parse_syscall, out.decode().strip().split('\n'))) except Exception as e: if platform.machine() == "x86_64": pass -- 2.16.2
participants (1)
-
root@hilbert.suse.de