diff options
Diffstat (limited to 'app-text/pinfo/files')
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.10-dir-file.patch | 11 | ||||
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch | 110 | ||||
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch | 28 | ||||
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.10-tinfo.patch | 40 | ||||
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.10-version.patch | 11 | ||||
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch | 10 | ||||
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.9-as-needed.patch | 22 | ||||
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch | 21 |
8 files changed, 253 insertions, 0 deletions
diff --git a/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch b/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch new file mode 100644 index 000000000000..7a282f354baa --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch @@ -0,0 +1,11 @@ +--- a/src/filehandling_functions.c ++++ b/src/filehandling_functions.c +@@ -742,7 +742,7 @@ + int i, j; + char *tmpfilename; + +- if (strncmp(filename, "dir", 3) == 0) ++ if (strncmp(filename, "dir", 3) == 0 && !isalnum(filename[3])) + { + xfree(buf); + return opendirfile(number); diff --git a/app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch b/app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch new file mode 100644 index 000000000000..6679e51acb20 --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch @@ -0,0 +1,110 @@ +--- a/po/cs.po ++++ b/po/cs.po +@@ -9,6 +9,7 @@ + "PO-Revision-Date: 2005-10-11 16:59+0200\n" + "Last-Translator: Katarina Machalkova <bubli@bubli.org>\n" + "Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n" ++"Language: cs\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=ISO-8859-2\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/de.po ++++ b/po/de.po +@@ -10,6 +10,7 @@ + "PO-Revision-Date: 1999-04-21 01:50+0200\n" + "Last-Translator: René van Bevern <rvb@pro-linux.de>\n" + "Language-Team: German <de@li.org>\n" ++"Language: de\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=ISO-8859-1\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/eu.po ++++ b/po/eu.po +@@ -12,6 +12,7 @@ + "PO-Revision-Date: 2005-09-28 23:14+0200\n" + "Last-Translator: Piarres Beobide <pi@beobide.net>\n" + "Language-Team: librezale.org <librezale@librezale.org>\n" ++"Language: eu\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/ja.po ++++ b/po/ja.po +@@ -10,6 +10,7 @@ + "PO-Revision-Date: 2001-11-21 17:42+0900\n" + "Last-Translator: Masayuki Hatta <mhatta@gnu.org>\n" + "Language-Team: Japanese <ja@li.org>\n" ++"Language: ja\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=euc-jp\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/nl.po ++++ b/po/nl.po +@@ -11,6 +11,7 @@ + "PO-Revision-Date: 2005-09-01 21:21+0200\n" + "Last-Translator: Bas Zoetekouw <bas@debian.org>\n" + "Language-Team: Dutch <nl@li.org>\n" ++"Language: nl\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=ISO-8859-15\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/pl.po ++++ b/po/pl.po +@@ -10,6 +10,7 @@ + "PO-Revision-Date: 2005-09-29 21:59+0200\n" + "Last-Translator: Krzysztof Krzy¿aniak (eloy) <eloy@debian.org>\n" + "Language-Team:\n" ++"Language: pl\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=ISO-8859-2\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/pt_BR.po ++++ b/po/pt_BR.po +@@ -13,6 +13,7 @@ + "Last-Translator: Felipe Augusto van de Wiel (faw) <felipe@cathedrallabs." + "org>\n" + "Language-Team: l10n portuguese <debian-l10n-portuguese@lists.debian.org>\n" ++"Language: pt_BR\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=utf-8\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/ro.po ++++ b/po/ro.po +@@ -11,6 +11,7 @@ + "PO-Revision-Date: 2005-09-30 03:42+0300\n" + "Last-Translator: Eddy Petrisor <eddy.petrisor@gmail.com>\n" + "Language-Team: Romanian <debian-l10n-romanian@lists.debian.org>\n" ++"Language: ro\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/ru.po ++++ b/po/ru.po +@@ -11,6 +11,7 @@ + "PO-Revision-Date: 2005-10-01 10:47+0400\n" + "Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n" + "Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n" ++"Language: ru\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/sv.po ++++ b/po/sv.po +@@ -11,6 +11,7 @@ + "PO-Revision-Date: 2005-10-06 12:00+0200\n" + "Last-Translator: Daniel Nylander <po@danielnylander.se>\n" + "Language-Team: Swedish <sv@li.org>\n" ++"Language: sv\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=iso-8859-1\n" + "Content-Transfer-Encoding: 8bit\n" +--- a/po/vi.po ++++ b/po/vi.po +@@ -11,6 +11,7 @@ + "PO-Revision-Date: 2005-12-21 15:11+1030\n" + "Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n" + "Language-Team: Vietnamese <gnomevi-list@lists.sourceforge.net>\n" ++"Language: vi\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" diff --git a/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch b/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch new file mode 100644 index 000000000000..45be53cd1bf6 --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch @@ -0,0 +1,28 @@ +--- a/src/filehandling_functions.c ++++ b/src/filehandling_functions.c +@@ -96,11 +96,14 @@ matchfile(char **buf, char *name) + { + /* use strcat rather than strdup, because xmalloc handles all + * malloc errors */ +- char *thisfile = xmalloc(strlen(dp->d_name)+1); ++ int len = strlen(dp->d_name)+1; ++ char *thisfile = xmalloc(len * 2); ++ char *thisfile_info = thisfile + len; + strcat(thisfile, dp->d_name); + + /* strip suffixes (so "gcc.info.gz" -> "gcc") */ + strip_compression_suffix(thisfile); ++ strcat(thisfile_info, thisfile); + strip_info_suffix(thisfile); + + /* compare this file with the file we're looking for */ +@@ -109,8 +112,7 @@ matchfile(char **buf, char *name) + /* we found a match! */ + matched++; + /* put it in the buffer */ +- strncat(Buf, thisfile, 1023-strlen(Buf)); +- strncat(Buf, ".info", 1023-strlen(Buf)); ++ strncat(Buf, thisfile_info, 1023-strlen(Buf)); + + /* clean up, and exit the loop */ + xfree(thisfile); diff --git a/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch b/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch new file mode 100644 index 000000000000..bbb6ecfe421d --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch @@ -0,0 +1,40 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -118,7 +118,24 @@ + + + # curses ++PKG_CHECK_MODULES(ncursesw,ncursesw,[ ++ curses_includes="$ncursesw_CFLAGS" ++ curses_libs="$ncursesw_LIBS" ++ curses_h=ncurses.h ++ stop_searching=true ++ found_curses_h=true ++ USE_CURSES=true],[ ++ PKG_CHECK_MODULES(ncurses,ncurses,[ ++ curses_includes="$ncurses_CFLAGS" ++ curses_libs="$ncurses_LIBS" ++ curses_h=ncurses.h ++ stop_searching=true ++ found_curses_h=true ++ USE_CURSES=true], ++ [])]) ++ + AC_CHECK_CURSES ++ + if ! test "x$USE_CURSES" = "xtrue"; then + AC_MSG_ERROR([Curses not found. You need curses to compile pinfo]) + fi +--- a/macros/curses.m4 ++++ b/macros/curses.m4 +@@ -175,8 +175,8 @@ + AC_DEFUN([AC_SEARCH_CURSES_H], [ + AC_MSG_CHECKING([location of curses.h file]) + +- stop_searching=false +- found_curses_h=false ++# stop_searching=false ++# found_curses_h=false + + dnl if a particular location was specified + if test "x$curses_location" != "xfalse" diff --git a/app-text/pinfo/files/pinfo-0.6.10-version.patch b/app-text/pinfo/files/pinfo-0.6.10-version.patch new file mode 100644 index 000000000000..8038fe0879e8 --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.10-version.patch @@ -0,0 +1,11 @@ +--- a/doc/pinfo.texi 2006-03-16 16:40:41.000000000 +0100 ++++ b/doc/pinfo.texi 2010-06-18 16:20:24.000000000 +0200 +@@ -5,7 +5,7 @@ + @c %**end of header + + @set EDITION 0.2.1 +-@set VERSION 0.6.4 ++@set VERSION 0.6.10 + @set DATE 1 Dec 2001 + @set DATEMAN 21 Mar 1999 + diff --git a/app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch b/app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch new file mode 100644 index 000000000000..dc902c0cae0a --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch @@ -0,0 +1,10 @@ +--- a/src/manual.c 2006-03-16 15:14:30.000000000 +0100 ++++ b/src/manual.c 2010-06-03 19:47:11.000000000 +0200 +@@ -261,6 +261,7 @@ + xfree(tmpfilename1); + } + tmpfilename1 = make_tempfile(); ++ putenv("GROFF_NO_SGR=true"); + + #ifdef getmaxyx + init_curses(); diff --git a/app-text/pinfo/files/pinfo-0.6.9-as-needed.patch b/app-text/pinfo/files/pinfo-0.6.9-as-needed.patch new file mode 100644 index 000000000000..85a80e6f2602 --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.9-as-needed.patch @@ -0,0 +1,22 @@ +--- a/macros/curses.m4 ++++ b/macros/curses.m4 +@@ -257,8 +257,8 @@ + dnl save CFLAGS and LDFLAGS and set new ones + CFLAGS_OLD=$CFLAGS + CFLAGS="$CFLAGS $curses_includes" +- LDFLAGS_OLD=$LDFLAGS +- LDFLAGS="$LDFLAGS $curses_libs" ++ LIBS_OLD=$LIBS ++ LIBS="$LIBS $curses_libs" + + dnl do the compile test + AC_MSG_CHECKING([if curses is usable]) +@@ -288,7 +288,7 @@ + + dnl restore variables + CFLAGS=$CFLAGS_OLD +- LDFLAGS=$LDFLAGS_OLD ++ LIBS=$LIBS_OLD + + ]) + diff --git a/app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch b/app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch new file mode 100644 index 000000000000..6ae0766fb803 --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch @@ -0,0 +1,21 @@ +--- a/src/filehandling_functions.c ++++ b/src/filehandling_functions.c +@@ -41,14 +41,16 @@ + * you dump the file through `gunzip -d -c', etc. * + ******************************************************************************/ + +-#define SuffixesNumber 4 ++#define SuffixesNumber 6 + + Suffixes suffixes[SuffixesNumber] = + { + {"", "cat"}, + {".gz", "gzip -d -q -c"}, + {".Z", "gzip -d -q -c"}, +- {".bz2", "bzip2 -d -c"} ++ {".bz2", "bzip2 -d -c"}, ++ {".lzma", "lzma -d -c"}, ++ {".xz", "xz -d -c"} + }; + + /*****************************************************************************/ |