diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-02-07 22:05:50 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-02-07 22:05:50 +0000 |
commit | 479a669d7cc9b42ae2462a5e455867db450f05a0 (patch) | |
tree | 4fea0062f62d1e5793be6ba7221ef3ec028bc698 /sys-apps/man | |
parent | add cracklib info to magic (diff) | |
download | gentoo-2-479a669d7cc9b42ae2462a5e455867db450f05a0.tar.gz gentoo-2-479a669d7cc9b42ae2462a5e455867db450f05a0.tar.bz2 gentoo-2-479a669d7cc9b42ae2462a5e455867db450f05a0.zip |
old
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-apps/man')
-rw-r--r-- | sys-apps/man/files/digest-man-1.5m-r2 | 1 | ||||
-rw-r--r-- | sys-apps/man/files/digest-man-1.5o_p2 | 1 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-LL-linelength.patch | 10 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-cross-compile.patch | 40 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-defmanpath-symlinks.patch | 21 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-locale-debug-info.patch | 57 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-locale-order.patch | 11 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-redhat-patches.patch | 223 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-search-order.patch | 16 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-security.patch | 25 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-util_c-segfault.patch | 67 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5m-wrong-quotes-v2.patch | 11 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5o_p1-man2html-CFLAGS.patch | 7 | ||||
-rw-r--r-- | sys-apps/man/files/man-1.5o_p2-defmanpath-symlinks.patch | 20 | ||||
-rw-r--r-- | sys-apps/man/man-1.5m-r2.ebuild | 154 | ||||
-rw-r--r-- | sys-apps/man/man-1.5o_p2.ebuild | 135 |
16 files changed, 0 insertions, 799 deletions
diff --git a/sys-apps/man/files/digest-man-1.5m-r2 b/sys-apps/man/files/digest-man-1.5m-r2 deleted file mode 100644 index 40276c035044..000000000000 --- a/sys-apps/man/files/digest-man-1.5m-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 d27867e59d3bbb971b00058f20ef8ea4 man-1.5m2.tar.gz 228145 diff --git a/sys-apps/man/files/digest-man-1.5o_p2 b/sys-apps/man/files/digest-man-1.5o_p2 deleted file mode 100644 index 7d06a77e063e..000000000000 --- a/sys-apps/man/files/digest-man-1.5o_p2 +++ /dev/null @@ -1 +0,0 @@ -MD5 57698044c2864c70f0332fc38ee461b9 man-1.5o2.tar.gz 229373 diff --git a/sys-apps/man/files/man-1.5m-LL-linelength.patch b/sys-apps/man/files/man-1.5m-LL-linelength.patch deleted file mode 100644 index 10fcd0603a71..000000000000 --- a/sys-apps/man/files/man-1.5m-LL-linelength.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- man-1.5l/src/man.c.orig 2003-06-10 16:40:16.000000000 +0100 -+++ man-1.5l/src/man.c 2003-06-10 16:40:57.000000000 +0100 -@@ -550,6 +550,7 @@ - /* however, a .lt command here fails, only - .ev 1; .lt ...; .ev helps for my version of groff */ - sprintf(eos(bufh), "echo \".ll %d.%di\"; ", ll/10, ll%10); -+ sprintf(eos(bufh), "echo \".nr LL %d.%di\"; ", ll/10, ll%10); - #if 0 - sprintf(eos(bufh), "echo \".lt %d.%di\"; ", ll/10, ll%10); - #endif diff --git a/sys-apps/man/files/man-1.5m-cross-compile.patch b/sys-apps/man/files/man-1.5m-cross-compile.patch deleted file mode 100644 index a86a61d02dc0..000000000000 --- a/sys-apps/man/files/man-1.5m-cross-compile.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff -ur man-1.5o1.orig/configure man-1.5o1/configure ---- man-1.5o1.orig/configure 2004-12-13 20:39:38.711558600 -0500 -+++ man-1.5o1/configure 2004-12-13 20:40:42.946793360 -0500 -@@ -211,6 +211,7 @@ - fi - - CC=${CC-cc} -+BUILD_CC=${BUILD_CC-${CC}} - INSTALL=${INSTALL-install} - INCLUDEDIR=${INCLUDEDIR-/usr/include} - -@@ -1265,6 +1266,7 @@ - sed -e ' - s,@version@,$version, - s,@CC@,$CC, -+s,@BUILD_CC@,$BUILD_CC, - s,@INSTALL@,$INSTALL, - s,@DEFS@,$DEFS, - s,@LIBS@,$LIBS, -diff -ur man-1.5o1.orig/src/Makefile.in man-1.5o1/src/Makefile.in ---- man-1.5o1.orig/src/Makefile.in 2004-12-13 20:39:38.721557080 -0500 -+++ man-1.5o1/src/Makefile.in 2004-12-13 20:40:15.417978376 -0500 -@@ -12,6 +12,7 @@ - # use of catalogs - aeb, June 1994 - - CC = @CC@ -+BUILD_CC = @BUILD_CC@ - INSTALL = @INSTALL@ - - pager = @pager@ -@@ -36,6 +37,9 @@ - man: $(MANOBJS) $(LIBOBJS) - $(CC) $(LDFLAGS) -o man $(MANOBJS) $(LIBOBJS) $(LIBS) - -+makemsg: -+ $(BUILD_CC) -o makemsg makemsg.c -+ - msg.c gripedefs.h: ../msgs/mess.en makemsg - ./makemsg ../msgs/mess.en gripedefs.h msg.c - diff --git a/sys-apps/man/files/man-1.5m-defmanpath-symlinks.patch b/sys-apps/man/files/man-1.5m-defmanpath-symlinks.patch deleted file mode 100644 index 7d359be922ba..000000000000 --- a/sys-apps/man/files/man-1.5m-defmanpath-symlinks.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -urN man-1.5m2.orig/src/makewhatis.sh man-1.5m2/src/makewhatis.sh ---- man-1.5m2.orig/src/makewhatis.sh 2003-09-06 14:57:10.000000000 +0100 -+++ man-1.5m2/src/makewhatis.sh 2003-09-06 14:57:52.000000000 +0100 -@@ -41,7 +41,7 @@ - # and should be first. - # It is a bug to add /var/cache/man to DEFCATPATH. - dm= --for d in /usr/share/man /usr/X11R6/man /usr/local/man /usr/man -+for d in /usr/share/man /usr/X11R6/man /usr/local/man - do - if [ -d $d ]; then - if [ x$dm = x ]; then dm=$d; else dm=$dm:$d; fi -@@ -49,7 +49,7 @@ - done - DEFMANPATH=$dm - dc= --for d in /var/cache/man /usr/share/man/preformat /usr/man/preformat -+for d in /var/cache/man /usr/share/man/preformat - do - if [ -d $d ]; then - if [ x$dc = x ]; then dc=$d; else dc=$dc:$d; fi diff --git a/sys-apps/man/files/man-1.5m-locale-debug-info.patch b/sys-apps/man/files/man-1.5m-locale-debug-info.patch deleted file mode 100644 index 26df852b3d1e..000000000000 --- a/sys-apps/man/files/man-1.5m-locale-debug-info.patch +++ /dev/null @@ -1,57 +0,0 @@ - Do not print the 'man: No such file or directory' error if - 'man -d' was called and the NLS catalogue was not found, as - it confuses people, and be more informative. More info at: - - http://bugs.gentoo.org/show_bug.cgi?id= - - - Martin Schlemmer <azarah@gentoo.org> (26 Dec 2002). - ---- man-1.5k/catopen/catopen.c.orig 2002-12-26 08:25:07.000000000 +0200 -+++ man-1.5k/catopen/catopen.c 2002-12-26 10:25:06.000000000 +0200 -@@ -10,7 +10,11 @@ - extern char *my_malloc(int); /* in util.c */ - - #ifndef DEFAULT_NLSPATH --#define DEFAULT_NLSPATH "/usr/lib/locale/%N/%L" -+# if __GLIBC__ >= 2 -+# define DEFAULT_NLSPATH "/usr/share/locale/%L/%N" -+# else -+# define DEFAULT_NLSPATH "/usr/lib/locale/%N/%L" -+# endif - #endif - - static nl_catd my_catopenpath(char *name, char *path); ---- man-1.5k/src/gripes.c.orig 2002-12-26 08:13:53.000000000 +0200 -+++ man-1.5k/src/gripes.c 2002-12-26 10:29:46.000000000 +0200 -@@ -47,14 +47,25 @@ - if (!lg) - lg = getenv("LC_ALL"); - if ((s || lg) && (!lg || strncmp(lg, "en", 2))) { -- perror(mantexts); -+ /* This prints 'man: No such file or directory' which -+ * confuses people. The fprintf message should really -+ * be enouth ... -+ */ -+/* perror(mantexts); */ -+ - fprintf(stderr, --"Failed to open the message catalog %s on the path NLSPATH=%s\n\n", -- mantexts, s ? s : "<none>"); -+"Failed to open the message catalog \"%s\" for locale \"%s\"\n\ -+(NLSPATH=\"%s\")\n\n", -+ mantexts, lg ? lg : "<none>", -+ s ? s : DEFAULT_NLSPATH); - } else if (debug) { -- perror(mantexts); -+ /* This prints 'man: No such file or directory' which -+ * confuses people. The fprintf message should really -+ * be enouth ... -+ */ -+/* perror(mantexts); */ - fprintf(stderr, --"Looked whether there exists a message catalog %s, but there is none\n" -+"Looked whether there exists a message catalog \"%s\", but there is none\n\n" - "(and for English messages none is needed)\n\n", - mantexts); - } diff --git a/sys-apps/man/files/man-1.5m-locale-order.patch b/sys-apps/man/files/man-1.5m-locale-order.patch deleted file mode 100644 index d18fb4d4602f..000000000000 --- a/sys-apps/man/files/man-1.5m-locale-order.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- man-1.5m2/src/gripesold.c 2004-08-14 13:35:18.931494560 +0300 -+++ man-1.5m2/src/gripes.c 2004-08-14 13:36:06.816214976 +0300 -@@ -35,7 +35,7 @@ - static void - catinit (void) { - if (!cat_is_open) { -- catfd = my_catopen(mantexts,0); -+ catfd = my_catopen(mantexts,NL_CAT_LOCALE); - if (catfd == (nl_catd) -1) { - /* Only complain if at least one of NLSPATH and LANG exists, - and LANG != "en" (or when debugging). Also accept en_ZA etc. */ diff --git a/sys-apps/man/files/man-1.5m-redhat-patches.patch b/sys-apps/man/files/man-1.5m-redhat-patches.patch deleted file mode 100644 index 2e759e0ff3c8..000000000000 --- a/sys-apps/man/files/man-1.5m-redhat-patches.patch +++ /dev/null @@ -1,223 +0,0 @@ -diff -Narup man-1.5k.orig/gencat/genlib.c man-1.5k/gencat/genlib.c ---- man-1.5k.orig/gencat/genlib.c 1997-12-02 08:23:30.000000000 -0500 -+++ man-1.5k/gencat/genlib.c 2002-12-19 09:16:38.000000000 -0500 -@@ -47,6 +47,7 @@ up-to-date. Many thanks. - 01/14/91 4 nazgul Off by one on number specified entries - */ - -+#undef _GNU_SOURCE - #include <stdio.h> - #ifdef SYSV - #include <sys/types.h> -diff -Narup man-1.5k.orig/src/apropos.sh man-1.5k/src/apropos.sh - -diff -Narup man-1.5k.orig/src/man-getopt.c man-1.5k/src/man-getopt.c ---- man-1.5k.orig/src/man-getopt.c 2002-07-17 15:32:32.000000000 -0400 -+++ man-1.5k/src/man-getopt.c 2002-12-19 09:25:36.000000000 -0500 -@@ -171,7 +171,7 @@ get_options_from_string(const char *s) { - char **argvec; - int optindsv; - -- if (!s) -+ if (!s || *s==0) - return; - - /* In order to avoid having a list of options in two places, -diff -Narup man-1.5k.orig/src/man.c man-1.5k/src/man.c ---- man-1.5k.orig/src/man.c 2002-07-17 17:33:20.000000000 -0400 -+++ man-1.5k/src/man.c 2002-12-19 09:19:05.000000000 -0500 -@@ -300,7 +300,7 @@ ultimate_source (const char *name0) { - - if (strlen(name0) >= sizeof(ultname)) - return name0; -- strcpy(ultname, name0); -+ strncpy(ultname, name0, BUFSIZE-32); - name = ultname; - - again: -@@ -332,7 +332,7 @@ again: - * .so files - we could glob for all possible extensions, - * for now: only try .gz - */ -- else if (fp == NULL && get_expander(".gz") && -+ if (fp == NULL && get_expander(".gz") && - strlen(name)+strlen(".gz") < BUFSIZE) { - strcat(name, ".gz"); - fp = fopen (name, "r"); -@@ -361,7 +361,7 @@ again: - beg++; - - end = beg; -- while (*end != ' ' && *end != '\t' && *end != '\n' && *end != '\0') -+ while (*end != ' ' && *end != '\t' && *end != '\n' && *end != '\0' && (end-buf)<BUFSIZE) - end++; /* note that buf is NUL-terminated */ - /* hence the RH patch is superfluous */ - -@@ -394,6 +394,9 @@ again: - strcat(name, "/"); - strcat(name, beg); - } -+ /* If this is too long, bad things have already happened. * -+ * we should quit IMMEDIATELY. */ -+ if(strlen(name)>sizeof(ultname)) _exit(1); - - goto again; - } -@@ -1197,6 +1200,20 @@ main (int argc, char **argv) { - #endif - - -+ char *s; -+#define CHECK(p, l) s=getenv(p); if(s && (strlen(s)>l)) { fprintf(stderr, "ERROR: Environment variable %s too long!\n", p); exit(1); } -+ -+ CHECK("LANG", 32); -+ CHECK("MANPAGER", 128); -+ CHECK("PAGER", 128); -+ CHECK("SYSTEM", 64); -+ CHECK("MANROFFSEQ", 128); -+ CHECK("MANSECT", 128); -+ CHECK("MANPL", 128); -+ CHECK("MAN_HP_DIREXT", 128); -+ CHECK("LANGUAGE", 128); -+ CHECK("LC_MESSAGES", 128); -+ - #ifndef __FreeBSD__ - /* Slaven Rezif: FreeBSD-2.2-SNAP does not recognize LC_MESSAGES. */ - setlocale(LC_CTYPE, ""); /* used anywhere? maybe only isdigit()? */ - -diff -Narup man-1.5k.orig/src/makewhatis.sh man-1.5k/src/makewhatis.sh ---- man-1.5k.orig/src/makewhatis.sh 2002-07-17 14:59:05.000000000 -0400 -+++ man-1.5k/src/makewhatis.sh 2002-12-19 09:24:14.000000000 -0500 -@@ -41,7 +41,7 @@ - # and should be first. - # It is a bug to add /var/cache/man to DEFCATPATH. - dm= --for d in /usr/man /usr/share/man -+for d in /usr/share/man /usr/X11R6/man /usr/local/man /usr/man - do - if [ -d $d ]; then - if [ x$dm = x ]; then dm=$d; else dm=$dm:$d; fi -@@ -49,13 +49,13 @@ - done - DEFMANPATH=$dm - dc= --for d in /usr/man/preformat /usr/man /usr/share/man/preformat /usr/share/man -+for d in /var/cache/man /usr/share/man/preformat /usr/man/preformat - do - if [ -d $d ]; then - if [ x$dc = x ]; then dc=$d; else dc=$dc:$d; fi - fi - done --DEFCATPATH=$dc -+DEFCATPATH=$dc:$DEFMANPATH - - # In case /usr is read-only, make /usr/man/whatis (etc) a symlink to - # something like /var/cache/man/whatis. -@@ -70,12 +70,12 @@ - # We try here to be careful (and avoid preconstructed symlinks) - # in case makewhatis is run as root, by creating a subdirectory of /tmp. - --TMPFILEDIR=/tmp/whatis.tmp.dir.$$ --rm -rf TMPFILEDIR --if ! mkdir -m 0700 $TMPFILEDIR; then -- echo Could not create $TMPFILEDIR -- exit 1; -+TMPFILEDIR=`mktemp -d /tmp/makewhatisXXXXXX` -+if [ $? -ne 0 ]; then -+ echo "$0: Can't create temp file, exiting..." -+ exit 1 - fi -+chmod 0700 $TMPFILEDIR - TMPFILE=$TMPFILEDIR/w - - # make sure TMPFILEDIR is deleted if program is killed or terminates -@@ -109,8 +109,10 @@ - continue;; - -s) setsections=1 - continue;; -- -u) findarg="-ctime 0" -- update=1 -+ -u) if [ -e /var/cache/man/whatis ]; then -+ findarg="-newer /var/cache/man/whatis" -+ update=1 -+ fi - continue;; - -v) verbose=1 - continue;; -@@ -149,14 +151,7 @@ - # first truncate all the whatis files that will be created new, - # then only update - we might visit the same directory twice - if [ x$update = x ]; then -- for pages in man cat -- do -- eval path="\$$pages"path -- for mandir in $path -- do -- cp /dev/null $mandir/whatis -- done -- done -+ cp /dev/null /var/cache/man/whatis - fi - - for pages in man cat -@@ -165,14 +160,10 @@ - eval path="\$$pages"path - for mandir in $path - do -- if [ x$verbose != x ]; then -- echo "about to enter $mandir" > /dev/stderr -- fi -- if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then -- if [ x$verbose != x ]; then -- echo skipping $mandir - we did it already > /dev/stderr -- fi -- else -+ [ -d "$mandir" ] || continue -+ if [ x$verbose != x ]; then -+ echo "about to enter $mandir" > /dev/stderr -+ fi - here=`pwd` - cd $mandir - for i in $sections -@@ -391,23 +382,14 @@ - - cd $here - -- # kludge for Slackware's /usr/man/preformat -- if [ $mandir = /usr/man/preformat ] -- then -- mandir1=/usr/man -- else -- mandir1=$mandir -- fi -- -- if [ -f ${mandir1}/whatis ] -+ if [ -f /var/cache/man/whatis ] - then -- cat ${mandir1}/whatis >> $TMPFILE -+ cat /var/cache/man/whatis >> $TMPFILE - fi -- sed '/^$/d' < $TMPFILE | sort | uniq > ${mandir1}/whatis -+ sed '/^$/d' < $TMPFILE | sort | uniq > /var/cache/man/whatis - -- chmod 644 ${mandir1}/whatis -+ chmod 644 /var/cache/man/whatis - rm $TMPFILE -- fi - done - done - ---- man-1.5k.orig/src/apropos.sh 2001-11-22 18:30:42.000000000 -0500 -+++ man-1.5k/src/apropos.sh 2002-12-19 09:16:09.000000000 -0500 -@@ -18,9 +18,9 @@ program=`basename $0` - - # When man pages in your favorite locale look to grep like binary files - # (and you use GNU grep) you may want to add the 'a' option to *grepopt1. --aproposgrepopt1='i' -+aproposgrepopt1='ia' - aproposgrepopt2='' --whatisgrepopt1='iw' -+whatisgrepopt1='iwa' - whatisgrepopt2='^' - grepopt1=$%apropos_or_whatis%grepopt1 - grepopt2=$%apropos_or_whatis%grepopt2 diff --git a/sys-apps/man/files/man-1.5m-search-order.patch b/sys-apps/man/files/man-1.5m-search-order.patch deleted file mode 100644 index 49af2be2beae..000000000000 --- a/sys-apps/man/files/man-1.5m-search-order.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -Narup man-1.5k.orig/src/man.conf.in man-1.5k/src/man.conf.in ---- man-1.5k.orig/src/man.conf.in 2002-07-17 15:08:40.000000000 -0400 -+++ man-1.5k/src/man.conf.in 2002-12-19 09:04:28.000000000 -0500 -@@ -36,10 +36,10 @@ - # - # Every automatically generated MANPATH includes these fields - # --MANPATH /usr/man - MANPATH /usr/share/man --MANPATH /usr/local/man - MANPATH /usr/X11R6/man -+MANPATH /usr/local/man -+MANPATH /usr/man - # - # Uncomment if you want to include one of these by default - # diff --git a/sys-apps/man/files/man-1.5m-security.patch b/sys-apps/man/files/man-1.5m-security.patch deleted file mode 100644 index f9918ed11c4b..000000000000 --- a/sys-apps/man/files/man-1.5m-security.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff -urP man-1.5l/src/gripes.c man-1.5l/src/gripes.c ---- man-1.5l/src/gripes.c Wed Jul 17 20:17:23 2002 -+++ man-1.5l/src/gripes.c Fri Jun 6 14:51:21 2003 -@@ -28,1 +28,2 @@ -+#include <string.h> - #include <nl_types.h> -@@ -68,1 +68,3 @@ - char *s; -+ unsigned int i = 0; -+ unsigned short fmt_n = 0; -@@ -78,1 +78,14 @@ -+ /* routine to filter format string abuse. will */ -+ /* only allow %d, %s, and %o through. no more */ -+ /* than two formats needed for any response. */ -+ for (i = 0; s[i] != 0x0; i++){ -+ if (s[i] == '%' && s[i+1]){ -+ if (strchr("dso", s[i+1])) /* %d,%s,%o. */ -+ fmt_n++; -+ else -+ fmt_n=3; /* anything else = <limit. */ -+ } -+ if (fmt_n > 2) /* failed, default reply. */ -+ s = msg[n]; -+ } - return s; diff --git a/sys-apps/man/files/man-1.5m-util_c-segfault.patch b/sys-apps/man/files/man-1.5m-util_c-segfault.patch deleted file mode 100644 index 0fa6c8472aca..000000000000 --- a/sys-apps/man/files/man-1.5m-util_c-segfault.patch +++ /dev/null @@ -1,67 +0,0 @@ - When calling man for instance with: - - $ man -k "foo bar" - - will result in the following crash: - - $ man -k "foo bar" - sh: line 1: unsafe: command not found - Error executing formatting or display command. - System command unsafe exited with status 127. - Segmentation fault - - The reason for this is that my_xsprintf() in util.c passes - NOT_SAFE as the result if the string is not shell safe. - When do_appros() (or whatever) then calls 'free(command)', - free() tries to free a constant, and segfault. - - The attached solution are not eligant, but works without - breaking the API. Basically we redefine NOT_SAFE as a - message that we want to display, prepended with 'echo'. - When the command is then executed, our message are displayed, - and not the the line containing: - - sh: line 1: unsafe: command not found - - Further more, we do not return NOT_SAFE, but rather a string - that we malloc, and then fill with the contents of NOT_SAFE, - which will solve us trying to free a constant. - - More info can be found at: - - http://bugs.gentoo.org/show_bug.cgi?id=9761 - - Alternatively it is possible to redefine what is "shell safe", - but that will me a much more comprehensive fix ... - - - Martin Schlemmer <azarah@gentoo.org> (26 Dec 2002). - ---- man-1.5k/src/util.c.orig 2002-12-26 07:41:03.000000000 +0200 -+++ man-1.5k/src/util.c 2002-12-26 07:51:48.000000000 +0200 -@@ -237,7 +237,7 @@ - * The %S parameters are checked for being shell safe. - * The %Q parameters are checked for being shell safe inside single quotes. - */ --#define NOT_SAFE "/unsafe/" -+#define NOT_SAFE "echo Cannot run command, as it is not shell safe!\necho Check that you do not quote search strings, etc." - - static int - is_shell_safe(const char *ss, int quoted) { -@@ -295,8 +295,14 @@ - case 'Q': - case 'S': /* check and turn into 's' */ - ss = va_arg(p, char *); -- if (!is_shell_safe(ss, (s[1] == 'Q'))) -- return NOT_SAFE; -+ if (!is_shell_safe(ss, (s[1] == 'Q'))) { -+ /* we cannot return NOT_SAFE, as it will cause -+ * free to segfault in trying to free a constant -+ */ -+ s = my_malloc(sizeof(NOT_SAFE) + 1); -+ s = strncpy(s, NOT_SAFE, sizeof(NOT_SAFE)); -+ return s; -+ } - len += strlen(ss); - s[1] = 's'; - break; diff --git a/sys-apps/man/files/man-1.5m-wrong-quotes-v2.patch b/sys-apps/man/files/man-1.5m-wrong-quotes-v2.patch deleted file mode 100644 index aa514c2ceca3..000000000000 --- a/sys-apps/man/files/man-1.5m-wrong-quotes-v2.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- man-1.5k/src/Makefile.in.orig 2002-12-26 06:43:39.000000000 +0200 -+++ man-1.5k/src/Makefile.in 2002-12-26 06:48:18.000000000 +0200 -@@ -16,7 +16,7 @@ - - pager = @pager@ - --GS = -DGREPSILENT=\'@grepsilent@\' -+GS = -DGREPSILENT=0x71 - DEFS = @DEFS@ $(GS) - CWARN = -Wall -Wstrict-prototypes -Wmissing-prototypes - CWARNNP = -Wall diff --git a/sys-apps/man/files/man-1.5o_p1-man2html-CFLAGS.patch b/sys-apps/man/files/man-1.5o_p1-man2html-CFLAGS.patch deleted file mode 100644 index 87554454e83b..000000000000 --- a/sys-apps/man/files/man-1.5o_p1-man2html-CFLAGS.patch +++ /dev/null @@ -1,7 +0,0 @@ ---- man-1.5o1/man2html/Makefile.in.orig 2004-12-13 15:02:05.204559672 -0500 -+++ man-1.5o1/man2html/Makefile.in 2004-12-13 15:02:12.591436696 -0500 -@@ -1,3 +1,3 @@ - CC = @CC@ --CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -O -+CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes - OBJECTS = man2html.o cgibase.o abbrev.o strdefs.o diff --git a/sys-apps/man/files/man-1.5o_p2-defmanpath-symlinks.patch b/sys-apps/man/files/man-1.5o_p2-defmanpath-symlinks.patch deleted file mode 100644 index 9261fb6aca4a..000000000000 --- a/sys-apps/man/files/man-1.5o_p2-defmanpath-symlinks.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- man-1.5o2/src/makewhatis.sh.orig 2005-01-07 21:19:37.812163552 -0500 -+++ man-1.5o2/src/makewhatis.sh 2005-01-07 21:20:43.023249960 -0500 -@@ -41,7 +41,7 @@ - # and should be first. - # It is a bug to add /var/cache/man to DEFCATPATH. - dm= --for d in /usr/man /usr/share/man -+for d in /usr/local/man /usr/share/man - do - if [ -d $d ]; then - if [ x$dm = x ]; then dm=$d; else dm=$dm:$d; fi -@@ -49,7 +49,7 @@ - done - DEFMANPATH=$dm - dc= --for d in /usr/man/preformat /usr/man /usr/share/man/preformat /usr/share/man -+for d in /usr/local/man /usr/share/man - do - if [ -d $d ]; then - if [ x$dc = x ]; then dc=$d; else dc=$dc:$d; fi diff --git a/sys-apps/man/man-1.5m-r2.ebuild b/sys-apps/man/man-1.5m-r2.ebuild deleted file mode 100644 index 591727ec02f8..000000000000 --- a/sys-apps/man/man-1.5m-r2.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.5m-r2.ebuild,v 1.6 2005/01/08 02:10:18 vapier Exp $ - -inherit eutils flag-o-matic toolchain-funcs - -NV="1.5m2" -DESCRIPTION="Standard commands to read man pages" -HOMEPAGE="http://freshmeat.net/projects/man/" -SRC_URI="mirror://kernel/linux/utils/man/man-${NV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" -IUSE="nls" - -DEPEND="virtual/libc - >=sys-apps/sed-4" -RDEPEND="sys-apps/cronbase - >=sys-apps/groff-1.18 - nls? ( sys-devel/gettext )" - -S="${WORKDIR}/${PN}-${NV}" - -src_unpack() { - unpack ${A} - cd ${S} - - sed -i \ - -e 's:/usr/lib/locale:$(prefix)/usr/lib/locale:g' \ - -e 's!/usr/bin:/usr/ucb:!/usr/bin:!' \ - -e 's/n l p o/n l p 0p 1p 3p o/' \ - configure || die "configure sed failed" - sed -i -e 's:cc -o:$(CC) -o:' gencat/Makefile \ - || die "gencat/Makefile sed failed" - sed -i -e "/^CFLAGS /s:-O$: ${CFLAGS}:" man2html/Makefile.in \ - || die "man2html/Makefile.in sed failed" - - # security fix - epatch ${FILESDIR}/${P}-security.patch - - # Fix search order in man.conf so that system installed manpages - # will be found first ... - epatch ${FILESDIR}/${P}-search-order.patch - - # For groff-1.18 or later we need to call nroff with '-c' - epatch ${FILESDIR}/${P}-groff-1.18.patch - - # Fix wierd failing in rare cases - epatch ${FILESDIR}/${P}-wrong-quotes-v2.patch - - # Fix a crash when calling man with: man -k "foo bar" (bug #9761). - # <azarah@gentoo.org> (26 Dec 2002). - epatch ${FILESDIR}/${P}-util_c-segfault.patch - - # Various fixes from Redhat - epatch ${FILESDIR}/${P}-redhat-patches.patch - - # Do not print the 'man: No such file or directory' error if - # 'man -d' was called and the NLS catalogue was not found, as - # it confuses people, and be more informative ... (bug #6360) - # <azarah@gentoo.org> (26 Dec 2002). - epatch ${FILESDIR}/${P}-locale-debug-info.patch - - # Line length overidden by nroff macros, thanks to - # <grant.mcdorman@sympatico.ca> for the patch, (bug #21018). - # -taviso@gentoo.org - epatch ${FILESDIR}/${P}-LL-linelength.patch - - # makewhatis traverses manpages twice, as default manpath - # contains two directories that are symlinked together - # (bug 23848) - # -taviso@gentoo.org - epatch ${FILESDIR}/${P}-defmanpath-symlinks.patch - - # Make sure the locale is searched in the right order #37778 - epatch ${FILESDIR}/${P}-locale-order.patch - - # Fix cross compiling ... a few build apps need to be compiled - # with the native gcc instead of target gcc - epatch ${FILESDIR}/${P}-cross-compile.patch - - # use non-lazy binds for man. And let portage handling stripping. - append-ldflags -Wl,-z,now - sed -i \ - -e "/^LDFLAGS = -s/s:=.*:=${LDFLAGS}:" \ - ${S}/src/Makefile.in \ - || die "failed to edit default LDLFAGS" -} - -src_compile() { - tc-export CC BUILD_CC - - local myconf= - use nls && myconf="+lang all" || myconf="+lang none" - ./configure \ - -confdir=/etc \ - +sgid +fhs \ - ${myconf} || die "configure failed" - - emake -j1 || die "emake failed" -} - -src_install() { - dodir /usr/{bin,sbin} - make PREFIX="${D}" install || die "make install failed" - dosym man /usr/bin/manpath - - insinto /etc - doins src/man.conf - - dodoc LSM README* TODO - - if use nls ; then - cd "${S}/msgs" - ./inst.sh ?? "${D}"/usr/share/locale/%L/%N - fi - - # Needed for makewhatis - keepdir /var/cache/man - exeinto /etc/cron.weekly - newexe "${FILESDIR}/makewhatis.cron" makewhatis - - fowners root:man /usr/bin/man - fperms 2555 /usr/bin/man - - diropts -m0775 -g man - for x in $(awk ' - /^MANSECT/ { - split($2, sects, ":") - for (x in sects) - print "cat" sects[x] - }' ${D}/etc/man.conf) - do - keepdir /var/cache/man/${x} - done -} - -pkg_postinst() { - einfo "Forcing sane permissions onto ${ROOT}/var/cache/man (Bug #40322)" - chown -R root:man "${ROOT}/var/cache/man" - chmod -R g+w "${ROOT}/var/cache/man" - [ -e "${ROOT}/var/cache/man/whatis" ] \ - && chown root:root "${ROOT}/var/cache/man/whatis" - - echo - - local files="`ls ${ROOT}/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null`" - if [ "${files/$'\n'}" != "${files}" ] ; then - ewarn "You have multiple makewhatis cron files installed." - ewarn "You might want to delete all but one of these:" - echo ${files} - fi -} diff --git a/sys-apps/man/man-1.5o_p2.ebuild b/sys-apps/man/man-1.5o_p2.ebuild deleted file mode 100644 index 75c082b4b4d5..000000000000 --- a/sys-apps/man/man-1.5o_p2.ebuild +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.5o_p2.ebuild,v 1.2 2005/01/08 02:23:44 vapier Exp $ - -inherit eutils flag-o-matic toolchain-funcs - -NV="${PV/_p}" -DESCRIPTION="Standard commands to read man pages" -HOMEPAGE="http://freshmeat.net/projects/man/" -SRC_URI="mirror://kernel/linux/utils/man/man-${NV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="nls" - -DEPEND="virtual/libc - >=sys-apps/sed-4" -RDEPEND="sys-apps/cronbase - >=sys-apps/groff-1.18 - nls? ( sys-devel/gettext )" - -S="${WORKDIR}/${PN}-${NV}" - -src_unpack() { - unpack ${A} - cd ${S} - - sed -i \ - -e 's:/usr/lib/locale:$(prefix)/usr/lib/locale:g' \ - -e 's!/usr/bin:/usr/ucb:!/usr/bin:!' \ - configure || die "configure sed failed" - - # Make sure man2html respects our CFLAGS - epatch ${FILESDIR}/man-1.5o_p1-man2html-CFLAGS.patch - - # security fix - epatch ${FILESDIR}/man-1.5m-security.patch - - # Fix search order in man.conf so that system installed manpages - # will be found first ... - epatch ${FILESDIR}/man-1.5m-search-order.patch - - # For groff-1.18 or later we need to call nroff with '-c' - epatch ${FILESDIR}/man-1.5m-groff-1.18.patch - - # Do not print the 'man: No such file or directory' error if - # 'man -d' was called and the NLS catalogue was not found, as - # it confuses people, and be more informative ... (bug #6360) - # <azarah@gentoo.org> (26 Dec 2002). - epatch ${FILESDIR}/man-1.5m-locale-debug-info.patch - - # Line length overidden by nroff macros, thanks to - # <grant.mcdorman@sympatico.ca> for the patch, (bug #21018). - # -taviso@gentoo.org - epatch ${FILESDIR}/man-1.5m-LL-linelength.patch - - # makewhatis traverses manpages twice, as default manpath - # contains two directories that are symlinked together - epatch ${FILESDIR}/man-1.5o_p2-defmanpath-symlinks.patch - - # Make sure the locale is searched in the right order #37778 - epatch ${FILESDIR}/man-1.5m-locale-order.patch - - # Fix cross compiling ... a few build apps need to be compiled - # with the native gcc instead of target gcc - epatch ${FILESDIR}/man-1.5m-cross-compile.patch - - # use non-lazy binds for man. And let portage handling stripping. - append-ldflags -Wl,-z,now - sed -i \ - -e "/^LDFLAGS = -s/s:=.*:=${LDFLAGS}:" \ - ${S}/src/Makefile.in \ - || die "failed to edit default LDLFAGS" -} - -src_compile() { - tc-export CC BUILD_CC - - local myconf= - use nls && myconf="+lang all" || myconf="+lang none" - ./configure \ - -confdir=/etc \ - +sgid +fhs \ - ${myconf} || die "configure failed" - - emake -j1 || die "emake failed" -} - -src_install() { - dodir /usr/{bin,sbin} - make PREFIX="${D}" install || die "make install failed" - dosym man /usr/bin/manpath - - insinto /etc - doins src/man.conf - - dodoc LSM README* TODO - - if use nls ; then - cd "${S}/msgs" - ./inst.sh ?? "${D}"/usr/share/locale/%L/%N - fi - - # Needed for makewhatis - keepdir /var/cache/man - exeinto /etc/cron.weekly - newexe "${FILESDIR}/makewhatis.cron" makewhatis - - fowners root:man /usr/bin/man - fperms 2555 /usr/bin/man - - diropts -m0775 -g man - local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-) - for x in ${mansects//:/ } ; do - keepdir /var/cache/man/cat${x} - done -} - -pkg_postinst() { - einfo "Forcing sane permissions onto ${ROOT}/var/cache/man (Bug #40322)" - chown -R root:man "${ROOT}/var/cache/man" - chmod -R g+w "${ROOT}/var/cache/man" - [ -e "${ROOT}/var/cache/man/whatis" ] \ - && chown root:root "${ROOT}/var/cache/man/whatis" - - echo - - local files="`ls ${ROOT}/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null`" - if [ "${files/$'\n'}" != "${files}" ] ; then - ewarn "You have multiple makewhatis cron files installed." - ewarn "You might want to delete all but one of these:" - echo ${files} - fi -} |