From b937f8dfab2f3c33062f954f20e2dbfeae66cb68 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Sat, 7 Aug 2021 14:27:45 +0800 Subject: [PATCH] Use strsignal not sys_siglist --- procinfo-strsignal.patch | 13 +++++++++++++ procinfo.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 procinfo-strsignal.patch diff --git a/procinfo-strsignal.patch b/procinfo-strsignal.patch new file mode 100644 index 0000000..cacf349 --- /dev/null +++ b/procinfo-strsignal.patch @@ -0,0 +1,13 @@ +diff --git a/routines.c b/routines.c +index 15dcb50..35b2c1d 100644 +--- a/routines.c ++++ b/routines.c +@@ -146,7 +146,7 @@ quit (int i) + exit (0); + } else { + printf ("%s%s%s", ve, se, tgoto (cm, 0, li)); +- printf ("[%s]\n", sys_siglist[i]); ++ printf ("[%s]\n", strsignal(i)); + exit (128 + i); + } + } diff --git a/procinfo.spec b/procinfo.spec index efec18f..b094703 100644 --- a/procinfo.spec +++ b/procinfo.spec @@ -1,6 +1,6 @@ Name: procinfo Version: 18 -Release: 42 +Release: 43 Summary: A tool for displaying system information License: GPL+ Source: ftp://ftp.cistron.nl/pub/people/00-OLD/svm/procinfo-%{version}.tar.gz @@ -19,6 +19,7 @@ Patch14: procinfo-18-version.patch Patch15: procinfo-18-man-comment.patch Patch16: procinfo-18-socklist.patch Patch17: procinfo-18-idle-overflow.patch +Patch18: procinfo-strsignal.patch BuildRequires: ncurses-devel gcc @@ -49,6 +50,7 @@ This package contains documentation for procinfo. %patch15 -p1 %patch16 -p0 %patch17 -p1 +%patch18 -p1 %build make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses" LDFLAGS= LDLIBS=-lncurses @@ -71,5 +73,8 @@ make install prefix=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT/%{_mandir} %{_mandir}/man8/socklist.8* %changelog +* Sat Aug 07 2021 caodongxia - 18-43 +- Use strsignal not sys_siglist + * Thu Feb 13 2020 openEuler Buildteam - 18-42 - DESC:update the spec -- Gitee