diff --git a/.gitignore b/.gitignore index 36dfe61..9047ab4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ psmisc-22.10.tar.gz /psmisc-22.13.tar.gz +/psmisc-22.14.tar.gz diff --git a/psmisc-22.13-killall-pgid.patch b/psmisc-22.13-killall-pgid.patch deleted file mode 100644 index 28f483b..0000000 --- a/psmisc-22.13-killall-pgid.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/killall.c b/src/killall.c -index 8b590c2..2550fc1 100644 ---- a/src/killall.c -+++ b/src/killall.c -@@ -331,7 +331,7 @@ kill_all (int signal, int names, char **namelist, struct passwd *pwent) - pgids = NULL; /* silence gcc */ - else - { -- pgids = malloc (pids * sizeof (pid_t)); -+ pgids = calloc (pids, sizeof (pid_t)); - if (!pgids) - { - perror ("malloc"); diff --git a/psmisc-22.13-peekfd-segv.patch b/psmisc-22.13-peekfd-segv.patch deleted file mode 100644 index c3b03d5..0000000 --- a/psmisc-22.13-peekfd-segv.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/peekfd.c b/src/peekfd.c -index 2c30f25..6d759b9 100644 ---- a/src/peekfd.c -+++ b/src/peekfd.c -@@ -199,7 +199,7 @@ int main(int argc, char **argv) - numfds = argc - optind; - fds = malloc(sizeof(int) * numfds); - for (i = 0; i < numfds; i++) -- fds[i] = atoi(argv[optind + i + 1]); -+ fds[i] = atoi(argv[optind + i]); - } - - attach(target_pid); diff --git a/psmisc-22.13-ppc64.patch b/psmisc-22.13-ppc64.patch deleted file mode 100644 index 654b21c..0000000 --- a/psmisc-22.13-ppc64.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff --git a/src/peekfd.c b/src/peekfd.c -index 6d759b9..c4a3474 100644 ---- a/src/peekfd.c -+++ b/src/peekfd.c -@@ -55,6 +55,9 @@ - #define REG_PARAM1 orig_gpr3 - #define REG_PARAM2 gpr[4] - #define REG_PARAM3 gpr[5] -+#ifndef PT_ORIG_R3 -+ #define PT_ORIG_R3 34 -+#endif - #elif defined(ARM) - #ifndef __ARM_EABI__ - #error arm oabi not supported -@@ -73,9 +76,6 @@ - #define REG_PARAM1 regs[4] - #define REG_PARAM2 regs[5] - #define REG_PARAM3 regs[6] --#ifndef PT_ORIG_R3 -- #define PT_ORIG_R3 34 --#endif - #endif - - #define MAX_ATTACHED_PIDS 1024 -@@ -222,11 +222,11 @@ int main(int argc, char **argv) - if (WIFSTOPPED(status)) { - #ifdef PPC - struct pt_regs regs; -- regs.gpr[0] = ptrace(PTRACE_PEEKUSER, pid, 4 * PT_R0, 0); -- regs.gpr[3] = ptrace(PTRACE_PEEKUSER, pid, 4 * PT_R3, 0); -- regs.gpr[4] = ptrace(PTRACE_PEEKUSER, pid, 4 * PT_R4, 0); -- regs.gpr[5] = ptrace(PTRACE_PEEKUSER, pid, 4 * PT_R5, 0); -- regs.orig_gpr3 = ptrace(PTRACE_PEEKUSER, pid, 4 * PT_ORIG_R3, 0); -+ regs.gpr[0] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R0, 0); -+ regs.gpr[3] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R3, 0); -+ regs.gpr[4] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R4, 0); -+ regs.gpr[5] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R5, 0); -+ regs.orig_gpr3 = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_ORIG_R3, 0); - #elif defined(ARM) - struct pt_regs regs; - ptrace(PTRACE_GETREGS, pid, 0, ®s); -@@ -271,7 +271,11 @@ int main(int argc, char **argv) - - for (i = 0; i < regs.REG_PARAM3; i++) { - #ifdef _BIG_ENDIAN -+#if __WORDSIZE == 64 -+ unsigned int a = bswap_64(ptrace(PTRACE_PEEKTEXT, pid, regs.REG_PARAM2 + i, 0)); -+#else - unsigned int a = bswap_32(ptrace(PTRACE_PEEKTEXT, pid, regs.REG_PARAM2 + i, 0)); -+#endif - #else - unsigned int a = ptrace(PTRACE_PEEKTEXT, pid, regs.REG_PARAM2 + i, 0); - #endif diff --git a/psmisc.spec b/psmisc.spec index 375d7fb..ee79558 100644 --- a/psmisc.spec +++ b/psmisc.spec @@ -1,22 +1,19 @@ Summary: Utilities for managing processes on your system Name: psmisc -Version: 22.13 -Release: 8%{?dist} +Version: 22.14 +Release: 1%{?dist} License: GPLv2+ Group: Applications/System Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz URL: http://sourceforge.net/projects/psmisc -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libselinux-devel BuildRequires: gettext BuildRequires: ncurses-devel BuildRequires: autoconf automake -Patch1: psmisc-22.13-peekfd-segv.patch -Patch2: psmisc-22.13-fuser-silent.patch -Patch3: psmisc-22.13-killall-pgid.patch -Patch4: psmisc-22.13-ppc64.patch +#The following has been reworked by upstream in a different way ... we'll see +#Patch1: psmisc-22.13-fuser-silent.patch %description The psmisc package contains utilities for managing processes on your @@ -29,11 +26,6 @@ of processes that are using specified files or filesystems. %prep %setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 - %build %configure --prefix=%{_prefix} --enable-selinux make %{?_smp_mflags} @@ -46,11 +38,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT/sbin %find_lang %name -%clean -rm -rf $RPM_BUILD_ROOT - %files -f %{name}.lang -%defattr(-,root,root,-) /sbin/fuser %{_bindir}/killall %{_bindir}/pstree @@ -67,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS ChangeLog COPYING README %changelog +* Tue Jul 19 2011 Jaromir Capik 22.14-1 +- Update to 22.14 + * Wed Feb 09 2011 Fedora Release Engineering - 22.13-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index d48bc14..6e6a645 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e2c339e6b65b730042084023784a729e psmisc-22.13.tar.gz +ba3f4e971895c92bba7770d81c981503 psmisc-22.14.tar.gz