diff options
author | George Sherwood | 2007-06-30 12:08:28 +0500 |
---|---|---|
committer | George Sherwood | 2007-06-30 12:08:28 +0500 |
commit | 86a675c06ead613dad8b9b2e07c8e41326d9fe43 (patch) | |
tree | 5811992383e489ce85d2180b7a9a738ecceec9b5 | |
parent | d46f0258b844dd3b24acea0cfda8673a59077095 (diff) |
texinfo: Updated to version 4.9. Removed PRE_BUILD and patch.
Patch incorporated upstream.
-rw-r--r-- | latex/texinfo/CAN-2005-3011.patch | 169 | ||||
-rwxr-xr-x | latex/texinfo/DETAILS | 9 | ||||
-rw-r--r-- | latex/texinfo/HISTORY | 6 | ||||
-rwxr-xr-x | latex/texinfo/PRE_BUILD | 2 |
4 files changed, 12 insertions, 174 deletions
diff --git a/latex/texinfo/CAN-2005-3011.patch b/latex/texinfo/CAN-2005-3011.patch deleted file mode 100644 index ba973078d5..0000000000 --- a/latex/texinfo/CAN-2005-3011.patch +++ /dev/null @@ -1,169 +0,0 @@ ---- util/texindex.c 2004-04-11 19:56:47.000000000 +0200 -+++ /home/arwed/Downloads/texindex.c 2006-02-06 09:37:06.000000000 +0100 -@@ -1,8 +1,8 @@ - /* texindex -- sort TeX index dribble output into an actual index. -- $Id: texindex.c,v 1.11 2004/04/11 17:56:47 karl Exp $ -+ $Id: texindex.c,v 1.15 2005/10/05 23:21:41 karl Exp $ - - Copyright (C) 1987, 1991, 1992, 1996, 1997, 1998, 1999, 2000, 2001, -- 2002, 2003, 2004 Free Software Foundation, Inc. -+ 2002, 2003, 2004, 2005 Free Software Foundation, Inc. - - 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 -@@ -16,7 +16,7 @@ - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307. */ -+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301. */ - - #include "system.h" - #include <getopt.h> -@@ -99,6 +99,9 @@ - /* Directory to use for temporary files. On Unix, it ends with a slash. */ - char *tempdir; - -+/* Start of filename to use for temporary files. */ -+char *tempbase; -+ - /* Number of last temporary file. */ - int tempcount; - -@@ -144,7 +147,7 @@ - void fatal (const char *format, const char *arg); - void error (const char *format, const char *arg); - void *xmalloc (), *xrealloc (); --char *concat (char *s1, char *s2); -+static char *concat3 (const char *, const char *, const char *); - void flush_tempfiles (int to_count); - - #define MAX_IN_CORE_SORT 500000 -@@ -190,6 +193,11 @@ - - decode_command (argc, argv); - -+ /* XXX mkstemp not appropriate, as we need to have somewhat predictable -+ * names. But race condition was fixed, see maketempname. -+ */ -+ tempbase = mktemp (concat3 ("txiXXXXXX", "", "")); -+ - /* Process input files completely, one by one. */ - - for (i = 0; i < num_infiles; i++) -@@ -220,7 +228,7 @@ - - outfile = outfiles[i]; - if (!outfile) -- outfile = concat (infiles[i], "s"); -+ outfile = concat3 (infiles[i], "s", ""); - - need_initials = 0; - first_initial = '\0'; -@@ -318,7 +326,7 @@ - if (tempdir == NULL) - tempdir = DEFAULT_TMPDIR; - else -- tempdir = concat (tempdir, "/"); -+ tempdir = concat3 (tempdir, "/", ""); - - keep_tempfiles = 0; - -@@ -339,10 +347,13 @@ - { - printf ("texindex (GNU %s) %s\n", PACKAGE, VERSION); - puts (""); -- puts ("Copyright (C) 2004 Free Software Foundation, Inc."); -- printf (_("There is NO warranty. You may redistribute this software\n\ -+ printf (_("\ -+Copyright (C) %s Free Software Foundation, Inc.\n\ -+There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\ -+PARTICULAR PURPOSE. You may redistribute copies of GNU %s\n\ - under the terms of the GNU General Public License.\n\ --For more information about these matters, see the files named COPYING.\n")); -+For more information about these matters, see the file named COPYING.\n"), -+ "2005", PACKAGE); - xexit (0); - } - else if ((strcmp (arg, "--keep") == 0) || -@@ -384,26 +395,25 @@ - usage (1); - } - --/* Return a name for temporary file COUNT. */ -+/* Return a name for temporary file COUNT, or NULL if failure. */ - - static char * - maketempname (int count) - { -- static char *tempbase = NULL; - char tempsuffix[10]; -+ char *name; -+ int fd; - -- if (!tempbase) -+ sprintf (tempsuffix, ".%d", count); -+ name = concat3 (tempdir, tempbase, tempsuffix); -+ fd = open (name, O_CREAT|O_EXCL|O_WRONLY, 0600); -+ if (fd == -1) -+ return NULL; -+ else - { -- int fd; -- tempbase = concat (tempdir, "txidxXXXXXX"); -- -- fd = mkstemp (tempbase); -- if (fd == -1) -- pfatal_with_name (tempbase); -+ close(fd); -+ return(name); - } -- -- sprintf (tempsuffix, ".%d", count); -- return concat (tempbase, tempsuffix); - } - - -@@ -931,6 +941,8 @@ - for (i = 0; i < ntemps; i++) - { - char *newtemp = maketempname (++tempcount); -+ if (!newtemp) -+ pfatal_with_name("temp file"); - sort_in_core (tempfiles[i], MAX_IN_CORE_SORT, newtemp); - if (!keep_tempfiles) - unlink (tempfiles[i]); -@@ -1401,6 +1413,8 @@ - if (i + 1 == ntemps) - nf = nfiles - i * MAX_DIRECT_MERGE; - tempfiles[i] = maketempname (++tempcount); -+ if (!tempfiles[i]) -+ pfatal_with_name("temp file"); - value |= merge_direct (&infiles[i * MAX_DIRECT_MERGE], nf, tempfiles[i]); - } - -@@ -1612,17 +1626,18 @@ - } - - --/* Return a newly-allocated string concatenating S1 and S2. */ -+/* Return a newly-allocated string concatenating S1, S2, and S3. */ - --char * --concat (char *s1, char *s2) -+static char * -+concat3 (const char *s1, const char *s2, const char *s3) - { -- int len1 = strlen (s1), len2 = strlen (s2); -- char *result = (char *) xmalloc (len1 + len2 + 1); -+ int len1 = strlen (s1), len2 = strlen (s2), len3 = strlen (s3); -+ char *result = (char *) xmalloc (len1 + len2 + len3 + 1); - - strcpy (result, s1); - strcpy (result + len1, s2); -- *(result + len1 + len2) = 0; -+ strcpy (result + len1 + len2, s3); -+ *(result + len1 + len2 + len3) = 0; - - return result; - } diff --git a/latex/texinfo/DETAILS b/latex/texinfo/DETAILS index afc67ec541..bc90415c11 100755 --- a/latex/texinfo/DETAILS +++ b/latex/texinfo/DETAILS @@ -1,10 +1,13 @@ SPELL=texinfo - VERSION=4.8a + VERSION=4.9 SOURCE=$SPELL-$VERSION.tar.gz -SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-4.8 + SOURCE2=$SOURCE.sig +SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION SOURCE_URL[0]=$GNU_URL/$SPELL/$SOURCE + SOURCE2_URL[0]=${SOURCE_URL[0]}.sig SOURCE_URL[2]=ftp://ftp.gnu.org/pub/gnu/$SPELL/$SOURCE - SOURCE_HASH=sha512:c2ed2a2c585cd88b9dfc6435553ac298a2047a282403f511b639ae5e4b6e04b00da3f9d46de9cc690d9cb41fedae5d49e6482a04c5c5e37c7172e298b73352af + SOURCE_GPG=gnu.gpg:$SOURCE2:UPSTREAM_KEY + SOURCE2_IGNORE=signature WEB_SITE=http://www.gnu.org/software/texinfo ENTERED=20010922 LICENSE[0]=GPL diff --git a/latex/texinfo/HISTORY b/latex/texinfo/HISTORY index 4f128cae0b..14c31e3488 100644 --- a/latex/texinfo/HISTORY +++ b/latex/texinfo/HISTORY @@ -1,3 +1,9 @@ +2007-06-30 George Sherwood <george@beernabeer.com> + * DETAILS: updated spell to 4.9 + converted to upstream signature checking + * PRE_BUILD: Removed. + * CAN-2005-3011.patch: Incorporated Upstream + 2006-09-30 George Sherwood <george@beernabeer.com> * DETAILS: Updated to 4.8a. Removed UPDATED. diff --git a/latex/texinfo/PRE_BUILD b/latex/texinfo/PRE_BUILD deleted file mode 100755 index c3177680b1..0000000000 --- a/latex/texinfo/PRE_BUILD +++ /dev/null @@ -1,2 +0,0 @@ -default_pre_build && -patch -d ${SOURCE_DIRECTORY} -p0 < ${SCRIPT_DIRECTORY}/CAN-2005-3011.patch |