Hello community,

here is the log from the commit of package psmisc for openSUSE:Factory
checked in at Tue Jun 28 10:29:46 CEST 2011.



--------
--- psmisc/psmisc.changes       2011-02-08 17:55:24.000000000 +0100
+++ /mounts/work_src_done/STABLE/psmisc/psmisc.changes  2011-06-21 
19:04:32.000000000 +0200
@@ -1,0 +2,24 @@
+Tue Jun 21 15:56:45 CEST 2011 - [email protected]
+
+- Update to version 22.14:
+  + Fix file descriptor as weel as memory leaks in fuser
+  + Strip @ symbol from file names read from /proc/net/unix
+  + Above 2 changes close openSuSE bugs #536209, #529520, and #417841
+    and provided by Werner Fink
+  + Applied patch from Werner Fink to avoid stat(2) on NFS mounts
+  + Zeros process group memory - Patch by jgorig SF#3152925 RH#666213
+  + fuser -m -s flags work - Patch by jgorig SF#31110178 RH#651794
+  + fuser silent if /proc/swaps not available SF#3072134
+  + ppc 64 support for peekfd by jgorig SF#3166444
+  + jiffies now ULL in killall SF#3138538
+  + pstree can show parents of a process. Patch supplied by Curtis
+    Hawthorne SF#3135157
+  + killall creates right size buffer instead of MAX_PATH Debian #623425
+  + check for /proc/$$/stat not /proc/self/stat which is not available
+    on hurd platforms. Same Debian bug as above
+  + fuser understands IPv6 addresses, removed comment in fuser.1 that it
+    doesn't Debian #609904
+  + fuser -k only returns 0 if you kill something.
+  + fuser doesn't complain if /proc/#/fd disappears SF#3310990
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  psmisc-22.12-leaks.patch
  psmisc-22.12-writeonly.patch
  psmisc-22.13-nfs4fuser.patch
  psmisc-22.13-peekfd-segv.patch
  psmisc-22.13.dif
  psmisc-22.13.tar.bz2

New:
----
  _service:download_files:psmisc-22.14.tar.gz
  _service:download_files:psmisc-22.14.tar.gz.1
  _service:format_spec_file:psmisc.spec
  psmisc-22.14-toomuch.dif
  psmisc-22.14.dif
  psmisc-22.14.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ _service:format_spec_file:psmisc.spec ++++++
#
# spec file for package psmisc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           psmisc
BuildRequires:  gcc-c++ glibc-devel ncurses-devel
BuildRequires:  libselinux-devel
Url:            http://sourceforge.net/projects/psmisc/
License:        GPLv2+
Group:          System/Monitoring
PreReq:         %fillup_prereq %insserv_prereq
Version:        22.14
Release:        1
Provides:       ps:/usr/bin/killall
Summary:        Utilities for managing processes on your system
Source:         
http://sourceforge.net/projects/psmisc/files/psmisc/%{name}-%{version}.tar.gz
Patch0:         %name-22.14.dif
Patch1:         %name-22.12-tigetstr.patch
Patch2:         %name-22.12-pstree_overflow.patch
Patch3:         %name-22.12-pstree.patch
Patch4:         %name-22.14-toomuch.dif

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define nopeek  s390 s390x ia64 %sparc hppa


%description
The psmisc package contains utilities for managing processes on your
system: pstree, killall and fuser.  The pstree command displays a tree
structure of all of the running processes on your system.  The killall
command sends a specified signal (SIGTERM if nothing is specified) to
processes identified by name.  The fuser command identifies the PIDs of
processes that are using specified files or filesystems.

%prep
%setup -q
%patch1 -p0 -b .tigetstr
%patch2 -p0 -b .pstreeovfl
%patch3 -p0 -b .pstree
%patch4 -p0 -b .2much
%patch0 -p0 -b .0


%build
autoreconf -fi
CFLAGS="-D_GNU_SOURCE ${RPM_OPT_FLAGS} -pipe"
CXXFLAGS="$CFLAGS"
CC=gcc
CXX=g++
export CFLAGS CXXFLAGS CC CXX
sh ./configure --prefix=%{_prefix} --mandir=%{_mandir} --enable-selinux
make %{?_smp_mflags} CFLAGS="$CFLAGS" "CC=$CC"


%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/bin/
mv $RPM_BUILD_ROOT/usr/bin/fuser $RPM_BUILD_ROOT/bin/
%ifarch %nopeek
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/peekfd.1*
%endif
%find_lang psmisc


%clean
rm -rf $RPM_BUILD_ROOT


%files -f psmisc.lang
%defattr (-,root,root,755)
/bin/fuser
%{_bindir}/killall
%ifnarch %nopeek
%{_bindir}/peekfd
%endif
%{_bindir}/prtstat
%{_bindir}/pstree
%{_bindir}/pstree.x11
%{_mandir}/man1/fuser.1*
%{_mandir}/man1/killall.1*
%ifnarch %nopeek
%{_mandir}/man1/peekfd.1*
%endif
%{_mandir}/man1/prtstat.1*
%{_mandir}/man1/pstree.1*



%changelog
++++++ psmisc.spec ++++++
--- /var/tmp/diff_new_pack.R4hG8l/_old  2011-06-28 10:13:26.000000000 +0200
+++ /var/tmp/diff_new_pack.R4hG8l/_new  2011-06-28 10:13:26.000000000 +0200
@@ -21,23 +21,20 @@
 Name:           psmisc
 BuildRequires:  gcc-c++ glibc-devel ncurses-devel
 BuildRequires:  libselinux-devel
-Url:            http://switch.dl.sourceforge.net/sourceforge/psmisc/
+Url:            http://sourceforge.net/projects/psmisc/
 License:        GPLv2+
 Group:          System/Monitoring
 PreReq:         %fillup_prereq %insserv_prereq
-Version:        22.13
-Release:        3
+Version:        22.14
+Release:        1
 Provides:       ps:/usr/bin/killall
 Summary:        Utilities for managing processes on your system
-Source:         
http://switch.dl.sourceforge.net/sourceforge/psmisc/%{name}-%{version}.tar.bz2
-Patch0:         %name-22.13.dif
+Source:         
http://sourceforge.net/projects/psmisc/files/psmisc/%{name}-%{version}.tar.gz
+Patch0:         %name-22.14.dif
 Patch1:         %name-22.12-tigetstr.patch
 Patch2:         %name-22.12-pstree_overflow.patch
 Patch3:         %name-22.12-pstree.patch
-Patch4:         %name-22.12-leaks.patch
-Patch5:         %name-22.13-nfs4fuser.patch
-Patch6:         %name-22.12-writeonly.patch
-Patch7:         %name-22.13-peekfd-segv.patch
+Patch4:         %name-22.14-toomuch.dif
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %define nopeek  s390 s390x ia64 %sparc hppa
@@ -55,10 +52,7 @@
 %patch1 -p0 -b .tigetstr
 %patch2 -p0 -b .pstreeovfl
 %patch3 -p0 -b .pstree
-%patch4 -p0 -b .leaks
-%patch5 -p0 -b .nfs4fuser
-%patch6 -p0 -b .wrtonly
-%patch7 -p1 -b .peekfd
+%patch4 -p0 -b .2much
 %patch0 -p0 -b .0
 
 %build

++++++ psmisc-22.14-toomuch.dif ++++++
--- src/lists.h
+++ src/lists.h 2011-06-21 13:38:35.696426015 +0000
@@ -247,252 +247,3 @@ static inline void move_tail(list_t *res
        for (pos = (head)->prev; pos != (head); pos = pos->prev)
 
 #endif /* _LISTS_H */
-/*
- * lists.h     Simple doubly linked list implementation,
- *             based on <linux/list.h> and <linux/prefetch.h>.
- *
- * Version:    0.1 01-Feb-2011 Fink
- *
- * Copyright 2011 Werner Fink, 2005 SUSE LINUX Products GmbH, Germany.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Author:     Werner Fink <[email protected]>, 2011
- */
-
-#ifndef _LISTS_H
-#define _LISTS_H
-
-#include <stddef.h>
-#include <sys/types.h>
-
-typedef enum _boolean {false, true} boolean;
-typedef unsigned char uchar;
-#ifndef __USE_MISC
-typedef unsigned short ushort;
-typedef unsigned int uint;
-#endif
-
-#ifndef __OPTIMIZE__
-# warning This will not compile without -O at least
-#endif
-#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
-# ifndef  inline
-#  define inline               __inline__
-# endif
-# ifndef  restrict
-#  define restrict             __restrict__
-# endif
-# ifndef  volatile
-#  define volatile             __volatile__
-# endif
-# ifndef  asm
-#  define asm                  __asm__
-# endif
-# ifndef  extension
-#  define extension            __extension__
-# endif
-#endif
-#ifndef  attribute
-# define attribute(attr)       __attribute__(attr)
-#endif
-
-/*
- * This is lent from the kernel by e.g. using
- *
- *   echo '#include <asm-i386/processor.h>\nint main () { prefetch(); return 
0; }' | \
- *     gcc -I/usr/src/linux/include -D__KERNEL__ -x c -E -P - | \
- *     sed -rn '/void[[:blank:]]+prefetch[[:blank:]]*\(/,/^}/p'
- *
- * on the appropiate architecture (here on i686 for i586).
- */
-extern inline void 
attribute((used,__gnu_inline__,always_inline,__artificial__)) prefetch(const 
void *restrict x)
-{
-#if   defined(__x86_64__)
-    asm volatile ("prefetcht0 %0"  :: "m" (*(unsigned long *)x))
-#elif defined(__ia64__)
-    asm volatile ("lfetch [%0]"    :: "r" (x))
-#elif defined(__powerpc64__)
-    asm volatile ("dcbt 0,%0"      :: "r" (x))
-#elif 1 && defined(__i386__)
-    asm volatile ("661:\n\t"
-                 ".byte 0x8d,0x74,0x26,0x00\n"
-                 "\n662:\n"
-                 ".section .altinstructions,\"a\"\n"
-                 "  .align 4\n"
-                 "  .long 661b\n"
-                 "  .long 663f\n"
-                 "  .byte %c0\n"
-                 "  .byte 662b-661b\n"
-                 "  .byte 664f-663f\n"
-                 ".previous\n"
-                 ".section .altinstr_replacement,\"ax\"\n"
-                 "   663:\n\t"
-                 "   prefetchnta (%1)"
-                 "   \n664:\n"
-                 ".previous"
-                 :: "i" ((0*32+25)), "r" (x))
-#else
-    __builtin_prefetch ((x), 0, 1);
-#endif
-    ;
-}
-
-#if defined(DEBUG) && (DEBUG > 0)
-# define __align attribute((packed))
-#else
-# define __align attribute((aligned(sizeof(struct list_struct*))))
-#endif
-#define __packed attribute((packed))
-
-#define alignof(type)          ((sizeof(type)+(sizeof(void*)-1)) & 
~(sizeof(void*)-1))
-#define strsize(string)                ((strlen(string)+1)*sizeof(char))
-
-typedef struct list_struct {
-    struct list_struct * next, * prev;
-} __align list_t;
-
-/*
- * Linked list handling
- * ====================
- * The structures which will be linked into such lists have to be of the
- * same type.  The structures may have alway a list identifier of the type
- * `list_t' as very first element.  With this the macro list_entry() can
- * be used to cast the memory address of a list member to the corresponding
- * allocated structure.
- */
-
-/*
- * Insert new entry as next member.
- */
-static inline void _insert(list_t *restrict new, list_t *restrict here) 
attribute((always_inline,nonnull(1,2)));
-static inline void _insert(list_t *restrict new, list_t *restrict here)
-{
-    list_t * prev = here;
-    list_t * next = here->next;
-
-    next->prev = new;
-    new->next = next;
-    new->prev = prev;
-    prev->next = new;
-}
-
-#define insert(new, list)      _insert(&((new)->this), (&(list)));
-#define append(new, list)      _insert(&((new)->this), (&(list))->prev);
-
-/*
- * Set head
- */
-static inline void initial(list_t *restrict head) 
attribute((always_inline,nonnull(1)));
-static inline void initial(list_t *restrict head)
-{
-    head->prev = head->next = head;
-}
-
-/*
- * Remove entries, note that the pointer its self remains.
- */
-static inline void delete(list_t *restrict entry) 
attribute((always_inline,nonnull(1)));
-static inline void delete(list_t *restrict entry)
-{
-    list_t * prev = entry->prev;
-    list_t * next = entry->next;
-
-    next->prev = prev;
-    prev->next = next;
-
-    initial(entry);
-}
-
-/*
- * Replace an entry by a new one.
- */
-static inline void replace(list_t *restrict old, list_t *restrict new) 
attribute((always_inline,nonnull(1,2)));
-static inline void replace(list_t *restrict old, list_t *restrict new)
-{
-    new->next = old->next;
-    new->next->prev = new;
-    new->prev = old->prev;
-    new->prev->next = new;
-}
-
-static inline void join(list_t *restrict list, list_t *restrict head) 
attribute((always_inline,nonnull(1,2)));
-static inline void join(list_t *restrict list, list_t *restrict head)
-{
-    list_t * first = list->next;
-
-    if (first != list) {
-       list_t * last = list->prev;
-               list_t * at = head->next;
-
-               first->prev = head;
-               head->next = first;
-
-               last->next = at;
-               at->prev = last;
-    }
-}
-
-static inline boolean list_empty(const list_t *restrict const head) 
attribute((always_inline,nonnull(1)));
-static inline boolean list_empty(const list_t *restrict const head)
-{
-     return head->next == head;
-}
-
-static inline void move_head(list_t *restrict entry, list_t *restrict head) 
attribute((always_inline,nonnull(1,2)));
-static inline void move_head(list_t *restrict entry, list_t *restrict head)
-{
-    list_t * prev = entry->prev;
-    list_t * next = entry->next;
-
-    next->prev = prev;         /* remove entry from old list */
-    prev->next = next;
-
-    prev = head;
-    next = head->next;
-
-    next->prev = entry;                /* and add it at head of new list */
-    entry->next = next;
-    entry->prev = prev;
-    prev->next = entry;
-}
-
-static inline void move_tail(list_t *restrict entry, list_t *restrict head) 
attribute((always_inline,nonnull(1,2)));
-static inline void move_tail(list_t *restrict entry, list_t *restrict head)
-{
-    list_t * prev = entry->prev;
-    list_t * next = entry->next;
-
-    next->prev = prev;         /* remove entry from old list */
-    prev->next = next;
-
-    prev = head->prev;
-    next = head;
-
-    next->prev = entry;                /* and add it at tail of new list */
-    entry->next = next;
-    entry->prev = prev;
-    prev->next = entry;
-}
-
-/*
- * The handle of the list is named `this'
- */
-#define list_entry(ptr, type)  (__extension__ ({       \
-       const typeof( ((type *)0)->this ) *__mptr = (ptr);      \
-       ((type *)( (char *)(__mptr) - offsetof(type,this) )); }))
-#define list_for_each(pos, head)       \
-       for (pos = (head)->next; prefetch(pos->next), pos != (head); pos = 
pos->next)
-#define np_list_for_each(pos, head)    \
-       for (pos = (head)->next; pos != (head); pos = pos->next)
-#define list_for_each_safe(pos, safe, head)    \
-       for (pos = (head)->next, safe = pos->next; pos != (head); pos = safe, 
safe = pos->next)
-#define list_for_each_prev(pos, head)  \
-       for (pos = (head)->prev; prefetch(pos->prev), pos != (head); pos = 
pos->prev)
-#define np_list_for_each_prev(pos, head)       \
-       for (pos = (head)->prev; pos != (head); pos = pos->prev)
-
-#endif /* _LISTS_H */
++++++ psmisc-22.13.dif -> psmisc-22.14.dif ++++++


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to