summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-07-28 08:39:34 +0000
committerwiz <wiz@pkgsrc.org>2007-07-28 08:39:34 +0000
commit09cd8ff017f9e517fe3be78a2dea26f5f7c24b8e (patch)
treef98e3b31efe83710eb6f376fd0b9634a4d8eb275 /net
parentae5ec3ac7fdf1ec08481c5706ef1531e370acab0 (diff)
downloadpkgsrc-09cd8ff017f9e517fe3be78a2dea26f5f7c24b8e.tar.gz
Update to 2.14.8:
ORBit2-2.14.8 * bug fixes + Fix GIOP timeouts and add unit tests (Jules Colding) + Code cleanups (Kjartan) + Fix pointer arithmetics (Roland Illig) + Fix crash with uninitialized exception (Vincent Untz) + ORBLocalOnly mode in Solaris fixes (Brian Cameron)
Diffstat (limited to 'net')
-rw-r--r--net/ORBit2/Makefile5
-rw-r--r--net/ORBit2/distinfo10
-rw-r--r--net/ORBit2/patches/patch-ab175
-rw-r--r--net/ORBit2/patches/patch-ac34
4 files changed, 6 insertions, 218 deletions
diff --git a/net/ORBit2/Makefile b/net/ORBit2/Makefile
index 97eade3b215..3197e5048ec 100644
--- a/net/ORBit2/Makefile
+++ b/net/ORBit2/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.56 2007/07/09 16:56:15 drochner Exp $
+# $NetBSD: Makefile,v 1.57 2007/07/28 08:39:34 wiz Exp $
#
-DISTNAME= ORBit2-2.14.7
-PKGREVISION= 1
+DISTNAME= ORBit2-2.14.8
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/ORBit2/2.14/}
EXTRACT_SUFX= .tar.bz2
diff --git a/net/ORBit2/distinfo b/net/ORBit2/distinfo
index 4870600010f..8c529ee9250 100644
--- a/net/ORBit2/distinfo
+++ b/net/ORBit2/distinfo
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.33 2007/03/18 21:00:55 wiz Exp $
+$NetBSD: distinfo,v 1.34 2007/07/28 08:39:34 wiz Exp $
-SHA1 (ORBit2-2.14.7.tar.bz2) = d5b2e63d02d4dcf0ab7b0ee48021b365c273102e
-RMD160 (ORBit2-2.14.7.tar.bz2) = 4ac003754c037ec8bb151bb344db31c0888a852c
-Size (ORBit2-2.14.7.tar.bz2) = 729469 bytes
+SHA1 (ORBit2-2.14.8.tar.bz2) = 9f9c99a356045debcdb2286a65d25790de184415
+RMD160 (ORBit2-2.14.8.tar.bz2) = 512259accfcc939873046d04ae2d482f145e71ec
+Size (ORBit2-2.14.8.tar.bz2) = 742448 bytes
SHA1 (patch-aa) = 6e87e28e3634908f35c219f81a47d0353cfaf551
-SHA1 (patch-ab) = d422957ba3e228eab0f558c8b977fc3e6403c533
-SHA1 (patch-ac) = cbd62d1f1ed38ce1863efc9b3de0c99825b77634
diff --git a/net/ORBit2/patches/patch-ab b/net/ORBit2/patches/patch-ab
deleted file mode 100644
index b6153262ee9..00000000000
--- a/net/ORBit2/patches/patch-ab
+++ /dev/null
@@ -1,175 +0,0 @@
-$NetBSD: patch-ab,v 1.4 2007/02/20 15:08:59 rillig Exp $
-
-http://bugzilla.gnome.org/show_bug.cgi?id=410002
-
-Though shalt not use void pointers in arithmetics.
-
-NB: Cleaning up the rest of the code is left to the upstream authors as
-an exercise.
-
---- src/orb/orb-core/corba-any.c.orig Mon Jan 1 18:01:32 2007
-+++ src/orb/orb-core/corba-any.c Tue Feb 20 07:51:28 2007
-@@ -3,6 +3,13 @@
- #include "orb-core-private.h"
- #include <string.h>
-
-+#define PTR_PLUS(ptr, offset) \
-+ ((gpointer) (((guchar *)(ptr)) + (offset)))
-+
-+/** Adds the size of TYPE to the gpointer PTR. */
-+#define ADDSIZE(ptr, type) \
-+ ((gpointer) (((guchar *)(ptr)) + sizeof (type)))
-+
- #define SKIP_ALIAS(tc) \
- while ((tc)->kind == CORBA_tk_alias) { (tc) = (tc)->subtypes [0]; }
-
-@@ -162,12 +171,12 @@
- int offset;
- for (i = offset = 0; i < tc->sub_parts; i++) {
- offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align);
-- *val = val0 + offset;
-+ *val = PTR_PLUS (val0, offset);
- ORBit_marshal_value (buf, val, tc->subtypes[i]);
- offset += ORBit_gather_alloc_info (tc->subtypes[i]);
- }
- offset = ALIGN_VALUE (offset, tc->c_align);
-- *val = val0 + offset;
-+ *val = PTR_PLUS (val0, offset);
- break;
- }
- case CORBA_tk_union: {
-@@ -183,14 +192,14 @@
- for (i = 0; i < tc->sub_parts; i++)
- sz = MAX (sz, ORBit_gather_alloc_info (tc->subtypes[i]));
-
-- *val = val0 + ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
-- tc->c_align);
-+ *val = PTR_PLUS (val0, ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
-+ tc->c_align));
- body = *val;
- ORBit_marshal_value (buf, &body, subtc);
- /* FIXME:
- * WATCHOUT: end of subtc may not be end of union
- */
-- *val = *val + ALIGN_VALUE (sz, tc->c_align);
-+ *val = PTR_PLUS (*val, ALIGN_VALUE (sz, tc->c_align));
- break;
- }
- case CORBA_tk_wstring: {
-@@ -536,13 +545,13 @@
- gpointer val0 = *val;
- for (i = offset = 0; i < tc->sub_parts; i++) {
- offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align);
-- *val = val0 + offset;
-+ *val = PTR_PLUS (val0, offset);
- if (ORBit_demarshal_value (tc->subtypes[i], val, buf, orb))
- return TRUE;
- offset += ORBit_gather_alloc_info (tc->subtypes[i]);
- }
- offset = ALIGN_VALUE (offset, tc->c_align);
-- *val = val0 + offset;
-+ *val = PTR_PLUS (val0, offset);
- break;
- }
- case CORBA_tk_union: {
-@@ -560,14 +569,14 @@
- for (i = 0; i < tc->sub_parts; i++)
- sz = MAX (sz, ORBit_gather_alloc_info (tc->subtypes[i]));
-
-- *val = val0 + ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
-- tc->c_align);
-+ *val = PTR_PLUS (val0, ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
-+ tc->c_align));
- body = *val;
- if (ORBit_demarshal_value (subtc, &body, buf, orb))
- return TRUE;
-
- /* WATCHOUT: end subtc body may not be end of union */
-- *val = *val + ALIGN_VALUE (sz, tc->c_align);
-+ *val = PTR_PLUS (*val, ALIGN_VALUE (sz, tc->c_align));
- break;
- }
- case CORBA_tk_string:
-@@ -860,14 +869,14 @@
-
- for (i = offset = 0; i < tc->sub_parts; i++) {
- offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align);
-- *val = val0 + offset;
-- *newval = ((guchar *)newval0 + offset);
-+ *val = PTR_PLUS (val0, offset);
-+ *newval = PTR_PLUS (newval0, offset);
- ORBit_copy_value_core (val, newval, tc->subtypes[i]);
- offset += ORBit_gather_alloc_info (tc->subtypes[i]);
- }
- offset = ALIGN_VALUE (offset, tc->c_align);
-- *val = val0 + offset;
-- *newval = newval0 + offset;
-+ *val = PTR_PLUS (val0, offset);
-+ *newval = PTR_PLUS (newval0, offset);
- break;
- }
- case CORBA_tk_union: {
-@@ -876,6 +885,7 @@
- CORBA_TypeCode utc;
- gint union_align = tc->c_align;
- size_t union_size = ORBit_gather_alloc_info (tc);
-+ size_t aligned_size;
-
- pval1 = *val;
- pval2 = *newval;
-@@ -884,9 +894,10 @@
-
- ORBit_copy_value_core (&pval1, &pval2, tc->discriminator);
-
-- pval1 = val0 + ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
-+ aligned_size = ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
- union_align);
-- pval2 = newval0 + (pval1 - val0);
-+ pval1 = PTR_PLUS (val0, aligned_size);
-+ pval2 = PTR_PLUS (newval0, aligned_size);
-
- ORBit_copy_value_core (&pval1, &pval2, utc);
-
-@@ -1044,8 +1055,8 @@
-
- for (i = offset = 0; i < tc->sub_parts; i++) {
- offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align);
-- *a = a0 + offset;
-- *b = b0 + offset;
-+ *a = PTR_PLUS (a0, offset);
-+ *b = PTR_PLUS (b0, offset);
- if (!ORBit_value_equivalent (a, b, tc->subtypes [i], ev))
- return FALSE;
- offset += ORBit_gather_alloc_info (tc->subtypes[i]);
-@@ -1052,8 +1063,8 @@
- }
-
- offset = ALIGN_VALUE (offset, tc->c_align);
-- *a = a0 + offset;
-- *b = b0 + offset;
-+ *a = PTR_PLUS (a0, offset);
-+ *b = PTR_PLUS (b0, offset);
- return TRUE;
- }
-
-@@ -1084,6 +1095,7 @@
- gint union_align = tc->c_align;
- size_t union_size = ORBit_gather_alloc_info (tc);
- gpointer a_orig, b_orig;
-+ size_t aligned_size;
-
- a_orig = *a;
- b_orig = *b;
-@@ -1097,9 +1109,10 @@
- if (!ORBit_value_equivalent (a, b, tc->discriminator, ev))
- return FALSE;
-
-- *a = a_orig + ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
-+ aligned_size = ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator),
- union_align);
-- *b = b_orig + (*a - a_orig);
-+ *a = PTR_PLUS (a_orig, aligned_size);
-+ *b = PTR_PLUS (b_orig, aligned_size);
- if (!ORBit_value_equivalent (a, b, utc_a, ev))
- return FALSE;
-
diff --git a/net/ORBit2/patches/patch-ac b/net/ORBit2/patches/patch-ac
deleted file mode 100644
index 55a4284baba..00000000000
--- a/net/ORBit2/patches/patch-ac
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2007/02/20 15:08:59 rillig Exp $
-
-http://bugzilla.gnome.org/show_bug.cgi?id=410002
-
---- src/orb/dynamic/dynany.c.orig Mon Jan 1 18:01:32 2007
-+++ src/orb/dynamic/dynany.c Tue Feb 20 08:12:45 2007
-@@ -104,6 +104,9 @@
- case CORBA_tk_TypeCode: \
- case CORBA_tk_Principal
-
-+#define PTR_PLUS(ptr, offset) \
-+ ((gpointer) (((guchar *)(ptr)) + (offset)))
-+
- /* FIXME: ported very quickly from stable */
- struct DynamicAny_DynAny_type {
- struct ORBit_RootObject_struct parent;
-@@ -1422,7 +1425,7 @@
- (CORBA_Object) subtc, ev);
- to = any->_value = ORBit_alloc_by_tc (subtc);
- offset = ALIGN_VALUE (offset, subtc->c_align);
-- tmpsrc = src + offset;
-+ tmpsrc = PTR_PLUS (src, offset);
- ORBit_copy_value_core (&tmpsrc, &to, subtc);
- offset += ORBit_gather_alloc_info (subtc);
- }
-@@ -1486,7 +1489,7 @@
- gpointer tmpdest;
-
- offset = ALIGN_VALUE (offset, subtc->c_align);
-- tmpdest = dest + offset;
-+ tmpdest = PTR_PLUS (dest, offset);
- ORBit_copy_value_core (&src, &tmpdest, subtc);
- offset += ORBit_gather_alloc_info (subtc);
- }