pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/gnumeric14 -add patches to adapt to an API change...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc850ef0fa50
branches:  trunk
changeset: 498971:cc850ef0fa50
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Sep 06 17:58:56 2005 +0000

description:
-add patches to adapt to an API change in libgsf-1.12 (should fix build
 error noticed by Bernd Ernesti); require libgsf-1.12
-add patch for pcre security issues, from Adrian Portelli
bump PKGREVISION

diffstat:

 math/gnumeric14/Makefile         |    5 +-
 math/gnumeric14/distinfo         |   21 ++++++-
 math/gnumeric14/patches/patch-af |  127 +++++++++++++++++++++++++++++++++++++++
 math/gnumeric14/patches/patch-ba |   14 ++++
 math/gnumeric14/patches/patch-bb |   26 +++++++
 math/gnumeric14/patches/patch-bc |   15 ++++
 math/gnumeric14/patches/patch-bd |   15 ++++
 math/gnumeric14/patches/patch-be |   15 ++++
 math/gnumeric14/patches/patch-bf |   15 ++++
 math/gnumeric14/patches/patch-bg |   15 ++++
 math/gnumeric14/patches/patch-bh |   15 ++++
 math/gnumeric14/patches/patch-bi |   15 ++++
 math/gnumeric14/patches/patch-bj |   15 ++++
 math/gnumeric14/patches/patch-bk |   15 ++++
 math/gnumeric14/patches/patch-bl |   15 ++++
 math/gnumeric14/patches/patch-bm |   15 ++++
 math/gnumeric14/patches/patch-bn |   15 ++++
 math/gnumeric14/patches/patch-bo |   15 ++++
 math/gnumeric14/patches/patch-bp |   15 ++++
 math/gnumeric14/patches/patch-bq |   15 ++++
 math/gnumeric14/patches/patch-br |   15 ++++
 21 files changed, 430 insertions(+), 3 deletions(-)

diffs (truncated from 537 to 300 lines):

diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/Makefile
--- a/math/gnumeric14/Makefile  Tue Sep 06 17:35:17 2005 +0000
+++ b/math/gnumeric14/Makefile  Tue Sep 06 17:58:56 2005 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2005/08/10 20:56:19 jlam Exp $
+# $NetBSD: Makefile,v 1.13 2005/09/06 17:58:56 drochner Exp $
 #
 
 DISTNAME=              gnumeric-1.4.3
+PKGREVISION=           1
 CATEGORIES=            math gnome
 MASTER_SITES=          ${MASTER_SITE_GNOME:=sources/gnumeric/1.4/}
 EXTRACT_SUFX=          .tar.bz2
@@ -27,7 +28,7 @@
 .include "../../lang/python/application.mk"
 .include "../../databases/libgda/buildlink3.mk"
 .include "../../databases/libgnomedb/buildlink3.mk"
-BUILDLINK_DEPENDS.libgsf+=     libgsf>=1.11.1
+BUILDLINK_DEPENDS.libgsf+=     libgsf>=1.12.2
 .include "../../devel/libgsf/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../devel/atk/buildlink3.mk"
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/distinfo
--- a/math/gnumeric14/distinfo  Tue Sep 06 17:35:17 2005 +0000
+++ b/math/gnumeric14/distinfo  Tue Sep 06 17:58:56 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2005/04/19 17:10:40 drochner Exp $
+$NetBSD: distinfo,v 1.5 2005/09/06 17:58:56 drochner Exp $
 
 SHA1 (gnumeric-1.4.3.tar.bz2) = 6c5787c1ef2929e022af2a7dca18bad92bc9041e
 RMD160 (gnumeric-1.4.3.tar.bz2) = 7ebbad9b5244c575ce575575d05ceae648de6afb
@@ -6,3 +6,22 @@
 SHA1 (patch-ab) = e5152e2e0f0dfd0f4912c1e9e34f4224fe092c6b
 SHA1 (patch-ad) = 8341c293d3b90143c802c7ec547bb42b875454d7
 SHA1 (patch-ae) = 06e61c42cadbc3d32ae4895dcd52e351ed9f9db4
+SHA1 (patch-af) = b1e6fc4387e882052889d387aff41f77e5544ab9
+SHA1 (patch-ba) = daca8b4b85ff0eddda6ad7f172655cd9c27b6e61
+SHA1 (patch-bb) = 71cf0abb793e364699eccf88d3ad35599720dbcb
+SHA1 (patch-bc) = 52a221e0c51b9df2d0103c391961af7fe38555ca
+SHA1 (patch-bd) = 48eb89888837860cb4f9582c55561231f7427609
+SHA1 (patch-be) = 87a6d7ea8b5ef4c32824160b1e82e24b14c05e92
+SHA1 (patch-bf) = 27ac904b1b9f30ce671775797c4f4b4ee0ebf9ac
+SHA1 (patch-bg) = 5b534e397a0822923d3668f7622656460b8bbc29
+SHA1 (patch-bh) = d4d59071099c1cb843e1ad2c14104e81bea9169c
+SHA1 (patch-bi) = 16838eaa7bce1a53c896717331af069ed3e16bea
+SHA1 (patch-bj) = 811dc58523d0033925752c6718db9f4159e091c7
+SHA1 (patch-bk) = 6923a4752e1adfe13a3377cbd92ccbe281640c30
+SHA1 (patch-bl) = a67e1b2cadfdf9978430ad01b9aa7c3445d97310
+SHA1 (patch-bm) = e8c52975338294d24ae34db4f0b887e3c05df1a1
+SHA1 (patch-bn) = f42ae57baff1f84f5d881c5b8c90a8b55b29fb73
+SHA1 (patch-bo) = 37ddbd6d4a805edae4d5170bb570f4a67467b4fe
+SHA1 (patch-bp) = df7599fa50229d3106fb42b42548ba4bcc191dae
+SHA1 (patch-bq) = 74cad7a3bf0f11cf806aa6e261bf24068125533d
+SHA1 (patch-br) = b9b8fa5ea42282b64bfd6c122a2e61708c336083
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric14/patches/patch-af  Tue Sep 06 17:58:56 2005 +0000
@@ -0,0 +1,127 @@
+$NetBSD: patch-af,v 1.1 2005/09/06 17:58:56 drochner Exp $
+
+--- src/cut-n-paste-code/goffice/cut-n-paste/pcre/pcre.c.orig  2005-09-05 13:51:28.000000000 +0100
++++ src/cut-n-paste-code/goffice/cut-n-paste/pcre/pcre.c
+@@ -1062,7 +1062,18 @@ read_repeat_counts(const uschar *p, int 
+ int min = 0;
+ int max = -1;
+ 
++/* Read the minimum value and do a paranoid check: a negative value indicates
++an integer overflow. */
++
+ while ((digitab[*p] & ctype_digit) != 0) min = min * 10 + *p++ - '0';
++if (min < 0 || min > 65535)
++  {
++  *errorptr = ERR5;
++  return p;
++  }
++
++/* Read the maximum value if there is one, and again do a paranoid on its size.
++Also, max must not be less than min. */
+ 
+ if (*p == '}') max = min; else
+   {
+@@ -1070,6 +1081,11 @@ if (*p == '}') max = min; else
+     {
+     max = 0;
+     while((digitab[*p] & ctype_digit) != 0) max = max * 10 + *p++ - '0';
++    if (max < 0 || max > 65535)
++      {
++      *errorptr = ERR5;
++      return p;
++      }
+     if (max < min)
+       {
+       *errorptr = ERR4;
+@@ -1078,16 +1094,11 @@ if (*p == '}') max = min; else
+     }
+   }
+ 
+-/* Do paranoid checks, then fill in the required variables, and pass back the
+-pointer to the terminating '}'. */
++/* Fill in the required variables, and pass back the pointer to the terminating
++'}'. */
+ 
+-if (min > 65535 || max > 65535)
+-  *errorptr = ERR5;
+-else
+-  {
+-  *minp = min;
+-  *maxp = max;
+-  }
++*minp = min;
++*maxp = max;
+ return p;
+ }
+ 
+@@ -4128,6 +4139,7 @@ BOOL utf8;
+ BOOL class_utf8;
+ #endif
+ BOOL inescq = FALSE;
++BOOL capturing;
+ unsigned int brastackptr = 0;
+ size_t size;
+ uschar *code;
+@@ -4543,6 +4555,7 @@ while ((c = *(++ptr)) != 0)
+     case '(':
+     branch_newextra = 0;
+     bracket_length = 1 + LINK_SIZE;
++    capturing = FALSE;
+ 
+     /* Handle special forms of bracket, which all start (? */
+ 
+@@ -4630,6 +4643,9 @@ while ((c = *(++ptr)) != 0)
+ 
+         case 'P':
+         ptr += 3;
++
++        /* Handle the definition of a named subpattern */
++
+         if (*ptr == '<')
+           {
+           const uschar *p;    /* Don't amalgamate; some compilers */
+@@ -4642,9 +4658,12 @@ while ((c = *(++ptr)) != 0)
+             }
+           name_count++;
+           if (ptr - p > max_name_size) max_name_size = (ptr - p);
++          capturing = TRUE;   /* Named parentheses are always capturing */
+           break;
+           }
+ 
++        /* Handle back references and recursive calls to named subpatterns */
++
+         if (*ptr == '=' || *ptr == '>')
+           {
+           while ((compile_block.ctypes[*(++ptr)] & ctype_word) != 0);
+@@ -4819,18 +4838,23 @@ while ((c = *(++ptr)) != 0)
+           continue;
+           }
+ 
+-        /* If options were terminated by ':' control comes here. Fall through
+-        to handle the group below. */
++        /* If options were terminated by ':' control comes here. This is a
++        non-capturing group with an options change. There is nothing more that
++        needs to be done because "capturing" is already set FALSE by default;
++        we can just fall through. */
+         }
+       }
+ 
+-    /* Extracting brackets must be counted so we can process escapes in a
+-    Perlish way. If the number exceeds EXTRACT_BASIC_MAX we are going to
+-    need an additional 3 bytes of store per extracting bracket. However, if
+-    PCRE_NO_AUTO)CAPTURE is set, unadorned brackets become non-capturing, so we
+-    must leave the count alone (it will aways be zero). */
++    /* Ordinary parentheses, not followed by '?', are capturing unless
++    PCRE_NO_AUTO_CAPTURE is set. */
++
++    else capturing = (options & PCRE_NO_AUTO_CAPTURE) == 0;
++
++    /* Capturing brackets must be counted so we can process escapes in a
++    Perlish way. If the number exceeds EXTRACT_BASIC_MAX we are going to need
++    an additional 3 bytes of memory per capturing bracket. */
+ 
+-    else if ((options & PCRE_NO_AUTO_CAPTURE) == 0)
++    if (capturing)
+       {
+       bracount++;
+       if (bracount > EXTRACT_BASIC_MAX) bracket_length += 3;
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/patches/patch-ba
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric14/patches/patch-ba  Tue Sep 06 17:58:56 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ba,v 1.1 2005/09/06 17:58:56 drochner Exp $
+
+--- src/command-context-stderr.c.orig  2005-09-06 09:49:10.000000000 +0200
++++ src/command-context-stderr.c
+@@ -106,7 +106,7 @@ ccs_gnm_cmd_context_init (GnmCmdContextC
+       cc_class->error.error_info      = ccs_error_info;
+ }
+ 
+-GSF_CLASS_FULL (CmdContextStderr, cmd_context_stderr,
+-              NULL, ccs_init,
++GSF_CLASS_FULL (CmdContextStderr, cmd_context_stderr, NULL, NULL,
++              NULL, NULL, ccs_init,
+               G_TYPE_OBJECT, 0,
+               GSF_INTERFACE (ccs_gnm_cmd_context_init, GNM_CMD_CONTEXT_TYPE))
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/patches/patch-bb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric14/patches/patch-bb  Tue Sep 06 17:58:56 2005 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-bb,v 1.1 2005/09/06 17:58:56 drochner Exp $
+
+--- src/gnm-so-filled.c.orig   2005-09-06 09:56:08.000000000 +0200
++++ src/gnm-so-filled.c
+@@ -112,8 +112,8 @@ so_filled_foo_view_init (SheetObjectView
+ }
+ typedef FooCanvasGroup                FilledFooView;
+ typedef FooCanvasGroupClass   FilledFooViewClass;
+-static GSF_CLASS_FULL (FilledFooView, so_filled_foo_view,
+-      NULL, NULL,
++static GSF_CLASS_FULL (FilledFooView, so_filled_foo_view, NULL, NULL,
++      NULL, NULL, NULL,
+       FOO_TYPE_CANVAS_GROUP, 0,
+       GSF_INTERFACE (so_filled_foo_view_init, SHEET_OBJECT_VIEW_TYPE))
+ #endif /* WITH_GTK */
+@@ -631,8 +631,8 @@ so_polygon_foo_view_init (SheetObjectVie
+ }
+ typedef FooCanvasPolygon      PolygonFooView;
+ typedef FooCanvasPolygonClass PolygonFooViewClass;
+-static GSF_CLASS_FULL (PolygonFooView, so_polygon_foo_view,
+-      NULL, NULL,
++static GSF_CLASS_FULL (PolygonFooView, so_polygon_foo_view, NULL, NULL,
++      NULL, NULL, NULL,
+       FOO_TYPE_CANVAS_POLYGON, 0,
+       GSF_INTERFACE (so_polygon_foo_view_init, SHEET_OBJECT_VIEW_TYPE))
+ #endif /* WITH_GTK */
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/patches/patch-bc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric14/patches/patch-bc  Tue Sep 06 17:58:56 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-bc,v 1.1 2005/09/06 17:58:56 drochner Exp $
+
+--- src/gnm-so-line.c.orig     2005-09-06 09:57:50.000000000 +0200
++++ src/gnm-so-line.c
+@@ -110,8 +110,8 @@ so_line_foo_view_init (SheetObjectViewIf
+ }
+ typedef FooCanvasLine         LineFooView;
+ typedef FooCanvasLineClass    LineFooViewClass;
+-static GSF_CLASS_FULL (LineFooView, so_line_foo_view,
+-      NULL, NULL,
++static GSF_CLASS_FULL (LineFooView, so_line_foo_view, NULL, NULL,
++      NULL, NULL, NULL,
+       FOO_TYPE_CANVAS_LINE, 0,
+       GSF_INTERFACE (so_line_foo_view_init, SHEET_OBJECT_VIEW_TYPE))
+ #endif /* WITH_GTK */
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/patches/patch-bd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric14/patches/patch-bd  Tue Sep 06 17:58:56 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-bd,v 1.1 2005/09/06 17:58:56 drochner Exp $
+
+--- src/io-context-gtk.c.orig  2005-09-06 11:17:07.000000000 +0200
++++ src/io-context-gtk.c
+@@ -366,8 +366,8 @@ icg_init (IOContextGtk *icg)
+       g_timer_start (icg->timer);
+ }
+ 
+-GSF_CLASS_FULL (IOContextGtk, io_context_gtk,
+-              icg_class_init, icg_init,
++GSF_CLASS_FULL (IOContextGtk, io_context_gtk, NULL, NULL,
++              icg_class_init, NULL, icg_init,
+               TYPE_IO_CONTEXT, 0,
+               GSF_INTERFACE (icg_gnm_cmd_context_init, GNM_CMD_CONTEXT_TYPE))
+ 
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/patches/patch-be
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric14/patches/patch-be  Tue Sep 06 17:58:56 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-be,v 1.1 2005/09/06 17:58:56 drochner Exp $
+
+--- src/io-context.c.orig      2005-09-06 09:50:26.000000000 +0200
++++ src/io-context.c
+@@ -116,8 +116,8 @@ io_context_class_init (GObjectClass *kla
+       klass->finalize = ioc_finalize;
+ }
+ 
+-GSF_CLASS_FULL (IOContext, io_context,
+-              io_context_class_init, io_context_init,
++GSF_CLASS_FULL (IOContext, io_context, NULL, NULL,
++              io_context_class_init, NULL, io_context_init,
+               G_TYPE_OBJECT, 0,
+               GSF_INTERFACE (io_context_gnm_cmd_context_init, GNM_CMD_CONTEXT_TYPE))
+ 
diff -r 12795c1015ed -r cc850ef0fa50 math/gnumeric14/patches/patch-bf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric14/patches/patch-bf  Tue Sep 06 17:58:56 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-bf,v 1.1 2005/09/06 17:58:56 drochner Exp $
+
+--- src/sheet-filter.c.orig    2005-09-06 09:53:07.000000000 +0200
++++ src/sheet-filter.c
+@@ -562,8 +562,8 @@ filter_foo_view_init (SheetObjectViewIfa
+ }



Home | Main Index | Thread Index | Old Index