diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2013-03-10 15:38:07 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2013-03-10 15:38:07 +0000 |
commit | e02e875f27c5db1e0bff5b5c51aba2522034562f (patch) | |
tree | 85b27a9883a9656053741b1098a2b02095d7132a /sys-process/procps/files | |
parent | bump (diff) | |
download | historical-e02e875f27c5db1e0bff5b5c51aba2522034562f.tar.gz historical-e02e875f27c5db1e0bff5b5c51aba2522034562f.tar.bz2 historical-e02e875f27c5db1e0bff5b5c51aba2522034562f.zip |
old
Package-Manager: portage-2.2.0_alpha166/cvs/Linux x86_64
Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-process/procps/files')
-rw-r--r-- | sys-process/procps/files/3.2.5-top-sort.patch | 39 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.2.8+gmake-3.82.patch | 15 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.2.8-forest-prefix.patch | 38 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.2.8-linux-ver-init.patch | 23 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.3.2-headers.patch | 205 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.3.2-ncurses.patch | 136 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.3.2-noproc.patch | 17 | ||||
-rw-r--r-- | sys-process/procps/files/procps-3.3.3-watch-8bit.patch | 42 |
8 files changed, 0 insertions, 515 deletions
diff --git a/sys-process/procps/files/3.2.5-top-sort.patch b/sys-process/procps/files/3.2.5-top-sort.patch deleted file mode 100644 index b160bcc301a9..000000000000 --- a/sys-process/procps/files/3.2.5-top-sort.patch +++ /dev/null @@ -1,39 +0,0 @@ -Under certain conditions, top's display can break. -This patch is by Curtis Doty, updated by Andreas Kling for 3.2.5. - -To reproduce bug: - - run top - - turn on color mode ('z') - - highlight sort column ('x') - - move sort column all the way to the left ('<') - - get drunk - -procps e-mail: http://sourceforge.net/mailarchive/forum.php?thread_id=6042978&forum_id=12454 -Redhat bug: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=140975 -Gentoo bug: http://bugs.gentoo.org/show_bug.cgi?id=80296 - ---- procps-3.2.5/top.c~ 2005-01-26 06:15:18.000000000 +0100 -+++ procps-3.2.5/top.c 2005-02-01 09:23:35.000000000 +0100 -@@ -2952,12 +2952,10 @@ - for (x = 0; x < q->maxpflgs; x++) { - char cbuf[ROWBUFSIZ], _z[ROWBUFSIZ]; - FLG_t i = q->procflags[x]; // support for our field/column -- const char *f = Fieldstab[i].fmts; // macro AND sometimes the fmt -+ const char *f = Fieldstab[i].fmts + ((x==0) && !Rc.mode_altscr); - unsigned s = Fieldstab[i].scale; // string must be altered ! - unsigned w = Fieldstab[i].width; - -- int advance = (x==0) && !Rc.mode_altscr; -- - switch (i) { - case P_CMD: - { char tmp[ROWBUFSIZ]; -@@ -3069,7 +3067,7 @@ - - } /* end: switch 'procflag' */ - -- rp = scat(rp, cbuf+advance); -+ rp = scat(rp, cbuf); - } /* end: for 'maxpflgs' */ - - PUFF( diff --git a/sys-process/procps/files/procps-3.2.8+gmake-3.82.patch b/sys-process/procps/files/procps-3.2.8+gmake-3.82.patch deleted file mode 100644 index b66945c4de8d..000000000000 --- a/sys-process/procps/files/procps-3.2.8+gmake-3.82.patch +++ /dev/null @@ -1,15 +0,0 @@ -ps/module.mk depends on vars set up in proc/module.mk, so make sure we always -include the .mk files in the right order - ---- procps-3.2.8/Makefile -+++ procps-3.2.8/Makefile -@@ -174,7 +174,8 @@ - # want this rule first, use := on ALL, and ALL not filled in yet - all: do_all - ---include */module.mk -+-include proc/module.mk -+-include ps/module.mk - - do_all: $(ALL) - diff --git a/sys-process/procps/files/procps-3.2.8-forest-prefix.patch b/sys-process/procps/files/procps-3.2.8-forest-prefix.patch deleted file mode 100644 index 915be67308b7..000000000000 --- a/sys-process/procps/files/procps-3.2.8-forest-prefix.patch +++ /dev/null @@ -1,38 +0,0 @@ -avoid gcc warnings like: - -ps/output.c:341:6: warning: the address of ‘forest_prefix’ will always evaluate as ‘true’ - -Index: ps/output.c -=================================================================== -RCS file: /cvsroot/procps/procps/ps/output.c,v -retrieving revision 1.63 -diff -u -p -r1.63 output.c ---- ps/output.c 3 May 2009 06:39:33 -0000 1.63 -+++ ps/output.c 14 Nov 2010 00:24:56 -0000 -@@ -338,7 +338,7 @@ static int pr_args(char *restrict const - unsigned flags; - int rightward=max_rightward; - -- if(forest_prefix){ -+ if(/*forest_prefix*/1){ - int fh = forest_helper(outbuf); - endp += fh; - rightward -= fh; -@@ -365,7 +365,7 @@ static int pr_comm(char *restrict const - unsigned flags; - int rightward=max_rightward; - -- if(forest_prefix){ -+ if(/*forest_prefix*/1){ - int fh = forest_helper(outbuf); - endp += fh; - rightward -= fh; -@@ -390,7 +390,7 @@ static int pr_fname(char *restrict const - char *endp = outbuf; - int rightward = max_rightward; - -- if(forest_prefix){ -+ if(/*forest_prefix*/1){ - int fh = forest_helper(outbuf); - endp += fh; - rightward -= fh; diff --git a/sys-process/procps/files/procps-3.2.8-linux-ver-init.patch b/sys-process/procps/files/procps-3.2.8-linux-ver-init.patch deleted file mode 100644 index 6d4039c91088..000000000000 --- a/sys-process/procps/files/procps-3.2.8-linux-ver-init.patch +++ /dev/null @@ -1,23 +0,0 @@ -https://bugs.gentoo.org/303120 - -make sure the linux version constructor runs before the libproc constructor -since the latter uses variables setup by the former - -fix by Chris Coleman - -Index: proc/version.c -=================================================================== -RCS file: /cvsroot/procps/procps/proc/version.c,v -retrieving revision 1.7 -diff -u -p -r1.7 version.c ---- proc/version.c 9 Feb 2003 07:27:16 -0000 1.7 -+++ proc/version.c 14 Nov 2010 00:22:44 -0000 -@@ -33,7 +33,7 @@ void display_version(void) { - - int linux_version_code; - --static void init_Linux_version(void) __attribute__((constructor)); -+static void init_Linux_version(void) __attribute__((constructor(100))); - static void init_Linux_version(void) { - static struct utsname uts; - int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */ diff --git a/sys-process/procps/files/procps-3.3.2-headers.patch b/sys-process/procps/files/procps-3.3.2-headers.patch deleted file mode 100644 index c359f4c9062f..000000000000 --- a/sys-process/procps/files/procps-3.3.2-headers.patch +++ /dev/null @@ -1,205 +0,0 @@ -From 3bbf0d863131ce650928460bf1222617e7e68094 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 24 Jan 2012 00:33:57 -0500 -Subject: [PATCH 1/5] include error.h for error() and friends - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - include/c.h | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/include/c.h b/include/c.h -index 2be7495..747e4e3 100644 ---- a/include/c.h -+++ b/include/c.h -@@ -16,6 +16,7 @@ - #include <stdlib.h> - #include <string.h> - #include <errno.h> -+#include <error.h> - - /* - * Compiler specific stuff --- -1.7.8.3 - -From eee0a65a45713a8e6efcfd94dbeabd33f6cf8a3a Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 24 Jan 2012 00:36:02 -0500 -Subject: [PATCH 2/5] watch: include sys/wait.h for waitpid - -Fixes build warning: - watch.c:682:3: warning: implicit declaration of - function 'waitpid' [-Wimplicit-function-declaration] - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - watch.c | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/watch.c b/watch.c -index 4a2646b..0bb6239 100644 ---- a/watch.c -+++ b/watch.c -@@ -31,6 +31,7 @@ - #include <string.h> - #include <sys/ioctl.h> - #include <sys/time.h> -+#include <sys/wait.h> - #include <termios.h> - #include <termios.h> - #include <time.h> --- -1.7.8.3 - -From 4191f4598701b7d76df4be0506f06f15d97b9a64 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 24 Jan 2012 00:39:49 -0500 -Subject: [PATCH 3/5] use helpers from c.h - -A few files still use the C library helpers from err.h, so migrate -them to the local c.h helpers. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - include/xalloc.h | 8 ++++---- - proc/sig.c | 3 ++- - skill.c | 2 +- - 4 files changed, 8 insertions(+), 7 deletions(-) - -diff --git a/include/xalloc.h b/include/xalloc.h -index bd02c75..37bf0ef 100644 ---- a/include/xalloc.h -+++ b/include/xalloc.h -@@ -24,7 +24,7 @@ void *xmalloc(const size_t size) - { - void *ret = malloc(size); - if (!ret && size) -- err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size); -+ xerrx(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size); - return ret; - } - -@@ -33,7 +33,7 @@ void *xrealloc(void *ptr, const size_t size) - { - void *ret = realloc(ptr, size); - if (!ret && size) -- err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size); -+ xerrx(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size); - return ret; - } - -@@ -42,7 +42,7 @@ void *xcalloc(const size_t nelems, const size_t size) - { - void *ret = calloc(nelems, size); - if (!ret && size && nelems) -- err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size); -+ xerrx(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size); - return ret; - } - -@@ -53,7 +53,7 @@ static inline char *xstrdup(const char *str) - return NULL; - ret = strdup(str); - if (!ret) -- err(XALLOC_EXIT_CODE, "cannot duplicate string"); -+ xerrx(XALLOC_EXIT_CODE, "cannot duplicate string"); - return ret; - } - -diff --git a/proc/sig.c b/proc/sig.c -index 1137fef..b83e645 100644 ---- a/proc/sig.c -+++ b/proc/sig.c -@@ -13,6 +13,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include "sig.h" -+#include "c.h" - - /* Linux signals: - * -@@ -221,7 +222,7 @@ char *strtosig(const char *restrict s){ - - copy = strdup(s); - if (!copy) -- err(EXIT_FAILURE, "cannot duplicate string"); -+ xerrx(EXIT_FAILURE, "cannot duplicate string"); - for (p = copy; *p != '\0'; p++) - *p = toupper(*p); - p = copy; -diff --git a/skill.c b/skill.c -index de3ccb9..078624d 100644 ---- a/skill.c -+++ b/skill.c -@@ -131,7 +131,7 @@ static void check_proc(int pid, struct run_time_conf_t *run_time) - if (fd == -1) { - /* process exited maybe */ - if (run_time->warnings) -- warn(_("cannot open file %s"), buf); -+ xwarn(_("cannot open file %s"), buf); - return; - } - fstat(fd, &statbuf); --- -1.7.8.3 - -From b5de7d14e1db889c83dc45ae275652aa042c359c Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 24 Jan 2012 00:41:25 -0500 -Subject: [PATCH 4/5] proc: pull in ctype.h where needed - -Fix the build warnings: - -sig.c:227:5: warning: implicit declaration of function 'toupper' [-Wimplicit-function-declaration] -sig.c:231:3: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - proc/sig.c | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/proc/sig.c b/proc/sig.c -index b83e645..b427e01 100644 ---- a/proc/sig.c -+++ b/proc/sig.c -@@ -8,6 +8,7 @@ - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Library General Public License for more details. - */ -+#include <ctype.h> - #include <signal.h> - #include <string.h> - #include <stdio.h> --- -1.7.8.3 - -From 4abea5e70d391a363c2af9a6405e375081cb10b2 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 24 Jan 2012 00:43:35 -0500 -Subject: [PATCH 5/5] ps: include error.h - -This code currently uses error_at_line() from error.h, so pull it in. -Long term, this might get moved to c.h as a local helper on err.h, -but I have no idea. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - ps/global.c | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/ps/global.c b/ps/global.c -index 22cf3ef..5bddb8c 100644 ---- a/ps/global.c -+++ b/ps/global.c -@@ -17,6 +17,7 @@ - #include <string.h> - #include <termios.h> - #include <unistd.h> -+#include <error.h> - - #include <sys/ioctl.h> - #include <sys/stat.h> --- -1.7.8.3 - diff --git a/sys-process/procps/files/procps-3.3.2-ncurses.patch b/sys-process/procps/files/procps-3.3.2-ncurses.patch deleted file mode 100644 index d717502489a8..000000000000 --- a/sys-process/procps/files/procps-3.3.2-ncurses.patch +++ /dev/null @@ -1,136 +0,0 @@ -From 1928653399e4aa73a99049c34334d66345ca8b97 Mon Sep 17 00:00:00 2001 -From: Craig Small <csmall@enc.com.au> -Date: Mon, 9 Jan 2012 21:40:53 +1100 -Subject: [PATCH] watch needs a conditonal LDADD - -Makes Debian patch makefile_watch_ncurses redundant. -watch was being linked to NCURSES_LIBS when it should of been -WATCH_NCURSES_LIBS which can be ncursesw with 8bit enabled. ---- - Makefile.am | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/Makefile.am b/Makefile.am -index 06b70ed..0ec2938 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -62,7 +62,7 @@ dist_man_MANS += \ - slabtop_SOURCES = slabtop.c $(top_srcdir)/lib/strutils.c - slabtop_LDADD = @NCURSES_LIBS@ - watch_SOURCES = watch.c $(top_srcdir)/lib/strutils.c --watch_LDADD = @NCURSES_LIBS@ -+watch_LDADD = @WATCH_NCURSES_LIBS@ - endif - - kill_SOURCES = skill.c $(top_srcdir)/lib/strutils.c --- -1.7.8.3 - -From b953a2926549a26b185c56de17d15b232368f6d6 Mon Sep 17 00:00:00 2001 -From: Samuli Suominen <ssuominen@gentoo.org> -Date: Tue, 24 Jan 2012 12:11:46 -0500 -Subject: [PATCH] fix basic ncurses check - -The first check for ncurses is for the non-wide variant, so drop the "w". -The wide version gets checked later on based on watch8bit. - -Signed-off-by: Samuli Suominen <ssuominen@gentoo.org> -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - configure.ac | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - - squashed below --- -1.7.8.3 - -From fd1295e4618ad9711d8af359e097f3162f30ebd0 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 24 Jan 2012 12:15:13 -0500 -Subject: [PATCH] fix AC_ARG_WITH(ncurses) handling - -The third arg is for "the user has specified some flag", not "the user -has disabled things", so use $withval. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - configure.ac | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 838d4a4..f6a24a6 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -127,7 +127,7 @@ AC_TRY_COMPILE([#include <argp.h>], - - AC_ARG_WITH([ncurses], - AS_HELP_STRING([--without-ncurses], [build only applications not needing ncurses]), -- [with_ncurses=no], [with_ncurses=yes] -+ [with_ncurses=$withval], [with_ncurses=yes] - ) - - if test "x$with_ncurses" = xno; then --- -1.7.8.3 - -From 32b74bce18cda251cb1f8d4b1851b1217065eaa3 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 24 Jan 2012 12:40:27 -0500 -Subject: [PATCH] use pkg-config for ncurses by default - -Newer ncurses install pkg-config files, so search those first. If they -aren't found, fall back to existing detection logic. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> ---- - configure.ac | 23 ++++++++++++++--------- - 1 files changed, 14 insertions(+), 9 deletions(-) - -diff --git a/configure.ac b/configure.ac -index f6a24a6..792222c 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -16,6 +16,7 @@ AC_PROG_CC - AM_PROG_CC_C_O - AC_PROG_INSTALL - AC_PROG_LN_S -+PKG_PROG_PKG_CONFIG - - AC_SUBST([WITH_WATCH8BIT]) - AC_ARG_ENABLE([watch8bit], -@@ -133,19 +134,23 @@ AC_ARG_WITH([ncurses], - if test "x$with_ncurses" = xno; then - AM_CONDITIONAL(WITH_NCURSES, false) - else -- AC_CHECK_LIB(ncursesw, initscr, [have_ncurses=yes], [have_ncurses=no]) -- AC_CHECK_HEADERS(curses.h ncurses.h term.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT) -- if test "x$have_ncurses" = xno; then -- AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)]) -- fi -+ PKG_CHECK_MODULES([NCURSES], [ncurses], [], [ -+ AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no]) -+ AC_CHECK_HEADERS(curses.h ncurses.h term.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT) -+ if test "x$have_ncurses" = xno; then -+ AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)]) -+ fi -+ NCURSES_LIBS="-lncurses" -+ ]) - AM_CONDITIONAL(WITH_NCURSES, true) - if test "$enable_watch8bit" = yes; then -- AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], -- [AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])]) -+ PKG_CHECK_MODULES([NCURSESW], [ncursesw], [WATCH_NCURSES_LIBS="$NCURSESW_LIBS"], [ -+ AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], -+ [AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])]) -+ ]) - else -- WATCH_NCURSES_LIBS="-lncurses" -+ WATCH_NCURSES_LIBS="$NCURSES_LIBS" - fi -- NCURSES_LIBS="-lncurses" - fi - AC_SUBST([NCURSES_LIBS]) - AC_SUBST([WATCH_NCURSES_LIBS]) --- -1.7.8.3 - diff --git a/sys-process/procps/files/procps-3.3.2-noproc.patch b/sys-process/procps/files/procps-3.3.2-noproc.patch deleted file mode 100644 index 43cf5b2ef9af..000000000000 --- a/sys-process/procps/files/procps-3.3.2-noproc.patch +++ /dev/null @@ -1,17 +0,0 @@ -If /proc isnt mounted, `top` will cause screen corruption ... - ---- b/top/top.c -+++ b/top/top.c -@@ -3201,6 +3201,12 @@ - { - (void)dont_care_argc; - before(*argv); -+ -+ if (access("/proc/stat", F_OK)) { -+ fprintf(stderr, "/proc is not mounted, required for output data"); -+ exit(1); -+ } -+ - // +-------------+ - windows_stage1(); // top (sic) slice - configs_read(); // > spread etc, < diff --git a/sys-process/procps/files/procps-3.3.3-watch-8bit.patch b/sys-process/procps/files/procps-3.3.3-watch-8bit.patch deleted file mode 100644 index e2a1169bb78a..000000000000 --- a/sys-process/procps/files/procps-3.3.3-watch-8bit.patch +++ /dev/null @@ -1,42 +0,0 @@ -From ff3ab9d52d2d5bb9eed1cfcb54013d5483a37677 Mon Sep 17 00:00:00 2001 -From: Craig Small <csmall@enc.com.au> -Date: Sun, 20 May 2012 17:08:29 +1000 -Subject: [PATCH] watch compiles with 8bit enabled - -watch wouldn't compile with --enable-watch8bit as some variables were -missing. This changes fixes it. ---- - watch.c | 8 ++++++++ - 1 files changed, 8 insertions(+), 0 deletions(-) - -diff --git a/watch.c b/watch.c -index 4465268..4649844 100644 ---- a/watch.c -+++ b/watch.c -@@ -296,7 +296,11 @@ wint_t my_getwc(FILE * s) - } - #endif /* WITH_WATCH8BIT */ - -+#ifdef WITH_WATCH8BIT -+void output_header(wchar_t *restrict wcommand, int wcommand_columns, int wcommand_characters, double interval) -+#else - void output_header(char *restrict command, double interval) -+#endif /* WITH_WATCH8BIT */ - { - time_t t = time(NULL); - char *ts = ctime(&t); -@@ -718,7 +722,11 @@ int main(int argc, char *argv[]) - } - - if (show_title) -+#ifdef WITH_WATCH8BIT -+ output_header(wcommand, wcommand_columns, wcommand_characters, interval); -+#else - output_header(command, interval); -+#endif /* WITH_WATCH8BIT */ - - if (run_command(command, command_argv)) - break; --- -1.7.8.6 - |