pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/gnet Update to 2.0.8:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2447792dfadf
branches:  trunk
changeset: 541202:2447792dfadf
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 16 14:43:38 2008 +0000

description:
Update to 2.0.8:

2.0.8
-----
* New API:
  gnet_conn_set_main_context
  gnet_conn_http_set_main_context
  gnet_inetaddr_new_async_full
  gnet_inetaddr_new_list_async_full
  gnet_inetaddr_get_name_async_full
  gnet_tcp_socket_connect_async_full
  gnet_tcp_socket_new_async_full
  gnet_tcp_socket_new_async_direct_full
  gnet_unix_socket_new_abstract
  gnet_unix_socket_server_new_abstract
  gnet_uri_parse_inplace
* GConnHttp API is no longer marked as experimental
* Fix major memory leak in GConnHttp
* gnet_init() can now safely be called
  more than once now
* Fix crash when gnet_conn_http_delete()
  is called from within the user callback.
* GConnHttp: do not emit data events for
  pages that are being redirected to a
  new location.
* GConnHttp: add gnet_conn_http_set_escaped_uri()
  (Samuel Cormier-Iijima)
* Eliminate direct pthread usage on unix
  and use GLib GThreads instead (also
  fixes problems with gdb and valgrind)
  (Andreas Rottmann)
* Dropped support for GLib-1.2
* Fix build on old systems that have
  a __ss_family member in struct
  sockaddr_storage instead of
  ss_family (Jeremy Denise)
* GConnHttp: Documentation fixes
* Fix compilation with --enable-debug
  on some 64-bit architectures like
  amd64 (Daniel Gryniewicz)
* GConnHttp: fix several timeout issues
  (Steve Morris, Tim Muller).
* GConnHttp: fix parsing of POST method
  response when there are optional headers
  after the 100-Continue response (#459895).
* Relicense source code in examples/
  directory from GPL to LGPL.
* Add 'extern "C"' guards to pack.h to
  make things work with c++ compilers
  (thanks to Adriano Winter Bess).
* New API: gnet_conn_write_direct() to
  write buffers asynchroneously without
  copying them (Jeff Garzik)
* Fix for race condition and subsequent
  crash in asynchroneous DNS lookup
  (Steve Morris, Tim Müller)
* Pass correct size parameters to bind()
  and connect() when creating unix sockets
  (Zeeshan Ali, #403197)
* New API: gnet_unix_socket_new_abstract()
  and gnet_unix_socket_server_new_abstract()
  add support for abstract unix sockets on
  systems where this is supported
  (Zeeshan Ali, #404583)
* Remove unused and pointless fork() fallback
  for asynchronous DNS lookups in cases where
  GLib has been compiled without threading
  support.  It's 2007 - I think it's in order
  to require threading to be present; even my
  wrist watch can do that.  Removs lots of
  unmaintained code and ugly #ifdefs.
(Released Feb 3, 2008)

diffstat:

 net/gnet/Makefile         |   8 +++-----
 net/gnet/PLIST            |   3 ++-
 net/gnet/distinfo         |   8 ++++----
 net/gnet/patches/patch-ad |  22 ----------------------
 net/gnet/patches/patch-ae |  33 ---------------------------------
 net/gnet/patches/patch-co |  13 -------------
 6 files changed, 9 insertions(+), 78 deletions(-)

diffs (138 lines):

diff -r cb829e2ffaed -r 2447792dfadf net/gnet/Makefile
--- a/net/gnet/Makefile Wed Apr 16 14:37:50 2008 +0000
+++ b/net/gnet/Makefile Wed Apr 16 14:43:38 2008 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.32 2006/03/04 21:30:19 jlam Exp $
+# $NetBSD: Makefile,v 1.33 2008/04/16 14:43:38 wiz Exp $
 #
 
-DISTNAME=              gnet-2.0.7
-PKGREVISION=           2
+DISTNAME=              gnet-2.0.8
 CATEGORIES=            net
-MASTER_SITES=          http://www.gnetlibrary.org/src/
+MASTER_SITES=          ${MASTER_SITE_GNOME:=sources/gnet/2.0/}
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              http://www.gnetlibrary.org/
@@ -14,7 +13,6 @@
 USE_LIBTOOL=           YES
 PKGCONFIG_OVERRIDE=    gnet-2.0.pc.in
 GNU_CONFIGURE=         YES
-CONFIGURE_ARGS+=       --enable-glib2
 CONFIGURE_ARGS+=       --with-html-dir=${PREFIX}/share/doc
 TEST_TARGET=           check
 
diff -r cb829e2ffaed -r 2447792dfadf net/gnet/PLIST
--- a/net/gnet/PLIST    Wed Apr 16 14:37:50 2008 +0000
+++ b/net/gnet/PLIST    Wed Apr 16 14:43:38 2008 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2005/05/25 11:41:32 wiz Exp $
+@comment $NetBSD: PLIST,v 1.13 2008/04/16 14:43:38 wiz Exp $
 include/gnet-2.0/base64.h
 include/gnet-2.0/conn-http.h
 include/gnet-2.0/conn.h
@@ -44,6 +44,7 @@
 share/doc/gnet/gnet-unix.html
 share/doc/gnet/gnet-uri.html
 share/doc/gnet/gnet.devhelp
+share/doc/gnet/gnet.devhelp2
 share/doc/gnet/home.png
 share/doc/gnet/index.html
 share/doc/gnet/index.sgml
diff -r cb829e2ffaed -r 2447792dfadf net/gnet/distinfo
--- a/net/gnet/distinfo Wed Apr 16 14:37:50 2008 +0000
+++ b/net/gnet/distinfo Wed Apr 16 14:43:38 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.16 2006/10/10 20:01:31 rillig Exp $
+$NetBSD: distinfo,v 1.17 2008/04/16 14:43:38 wiz Exp $
 
-SHA1 (gnet-2.0.7.tar.gz) = 01c41bd492c6fd33d31800d0c5146a09315f7f6d
-RMD160 (gnet-2.0.7.tar.gz) = 4df0bbc29ccdd84cb32d5199dade6351163c5548
-Size (gnet-2.0.7.tar.gz) = 608961 bytes
+SHA1 (gnet-2.0.8.tar.gz) = 762b606874fed243d2befe730212a398eef02872
+RMD160 (gnet-2.0.8.tar.gz) = b2ab816f4101e5825867b4fd1a7f6b7cb91c31d3
+Size (gnet-2.0.8.tar.gz) = 725267 bytes
 SHA1 (patch-ad) = 4c7e3a07df6f1018fe9446db333348eaf587225e
 SHA1 (patch-ae) = cf642dc0f9ea7a6c87ef0a9fb6be0f110d42232d
 SHA1 (patch-co) = 286194dfea94f17e44b2fdb454076b076cc235ad
diff -r cb829e2ffaed -r 2447792dfadf net/gnet/patches/patch-ad
--- a/net/gnet/patches/patch-ad Wed Apr 16 14:37:50 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-ad,v 1.2 2003/04/15 12:19:19 wiz Exp $
-
---- examples/echoserver-unix.c.orig    Mon Feb  3 20:01:56 2003
-+++ examples/echoserver-unix.c
-@@ -228,7 +228,7 @@ async_client_iofunc(GIOChannel *iochanne
-   /* Check for data to be read (or if the socket was closed) */
-   if (c & G_IO_IN) {
-     GIOError e;
--    guint bytes_read;
-+    gsize bytes_read;
- 
-     /* Read the data into our buffer */
-     e = g_io_channel_read(iochannel,
-@@ -259,7 +259,7 @@ async_client_iofunc(GIOChannel *iochanne
-   }
-   if (c & G_IO_OUT) {
-     GIOError e;
--    guint bytes_written;
-+    gsize bytes_written;
-     /* Write the data out */
-     e = g_io_channel_write(iochannel, cs->buffer, cs->n,
-                          &bytes_written);
diff -r cb829e2ffaed -r 2447792dfadf net/gnet/patches/patch-ae
--- a/net/gnet/patches/patch-ae Wed Apr 16 14:37:50 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2003/04/15 12:19:19 wiz Exp $
-
---- examples/hfetch.c.orig     Mon Feb  3 20:01:56 2003
-+++ examples/hfetch.c
-@@ -114,6 +114,7 @@ hfetch(gchar* server, gint port, gchar* 
-   gchar buffer[1024];
-   GIOError error;
-   guint n;
-+  gsize n2;
- 
- 
-   /* Create the address */
-@@ -142,17 +143,17 @@ hfetch(gchar* server, gint port, gchar* 
-   /* Read the output */
-   while (1)
-     {
--      error = g_io_channel_read(iochannel, buffer, sizeof(buffer), &n);
-+      error = g_io_channel_read(iochannel, buffer, sizeof(buffer), &n2);
-       if (error != G_IO_ERROR_NONE)
-       {
-         g_warning("Read error: %d\n", error);
-         break;
-       }
- 
--      if (n == 0)
-+      if (n2 == 0)
-       break;
- 
--      fwrite(buffer, n, 1, stdout);
-+      fwrite(buffer, n2, 1, stdout);
-     }
-   
-   gnet_tcp_socket_delete(socket);
diff -r cb829e2ffaed -r 2447792dfadf net/gnet/patches/patch-co
--- a/net/gnet/patches/patch-co Wed Apr 16 14:37:50 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-co,v 1.1 2006/10/10 20:01:31 rillig Exp $
-
---- configure.orig     2006-10-10 21:32:25.000000000 +0200
-+++ configure  2006-10-10 22:00:48.000000000 +0200
-@@ -21644,7 +21644,7 @@ fi
-   LIBS="$gnet_save_LIBS $dash_pthread"
- 
-   # Otherwise, check for -lpthread and -lc_r
--  if test "x$dash_pthread" == "x"; then
-+  if test "x$dash_pthread" = "x"; then
-     echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
- echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
- if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then



Home | Main Index | Thread Index | Old Index