pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/xtrans Fix xtrans-1.1 on NetBSD (testing rocks).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d09f715b62f1
branches:  trunk
changeset: 541773:d09f715b62f1
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Apr 25 18:15:55 2008 +0000

description:
Fix xtrans-1.1 on NetBSD (testing rocks).

diffstat:

 x11/xtrans/Makefile         |   3 ++-
 x11/xtrans/distinfo         |   4 ++--
 x11/xtrans/patches/patch-aa |  16 +++++++++++++---
 3 files changed, 17 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r a09fc8c6dbee -r d09f715b62f1 x11/xtrans/Makefile
--- a/x11/xtrans/Makefile       Fri Apr 25 18:02:24 2008 +0000
+++ b/x11/xtrans/Makefile       Fri Apr 25 18:15:55 2008 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2008/04/25 07:28:36 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2008/04/25 18:15:55 joerg Exp $
 #
 
 DISTNAME=              xtrans-1.1
+PKGREVISION=           1
 CATEGORIES=            x11 net
 MASTER_SITES=          http://xorg.freedesktop.org/releases/individual/lib/
 EXTRACT_SUFX=          .tar.bz2
diff -r a09fc8c6dbee -r d09f715b62f1 x11/xtrans/distinfo
--- a/x11/xtrans/distinfo       Fri Apr 25 18:02:24 2008 +0000
+++ b/x11/xtrans/distinfo       Fri Apr 25 18:15:55 2008 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.8 2008/04/25 07:28:36 wiz Exp $
+$NetBSD: distinfo,v 1.9 2008/04/25 18:15:55 joerg Exp $
 
 SHA1 (xtrans-1.1.tar.bz2) = a6cba8cd1c63c8fb4a284e89376cb398cf1a2582
 RMD160 (xtrans-1.1.tar.bz2) = 67a90c612d2a7c65f8dc9f916bff7b341d6ccd42
 Size (xtrans-1.1.tar.bz2) = 106059 bytes
-SHA1 (patch-aa) = cd9de436c904fcc9af3e908e4e697ecec458407e
+SHA1 (patch-aa) = 6b3e08165eae0da362c4732e7422c58157c4029a
 SHA1 (patch-ab) = d2a7af633ab880ec71975b70f521c0e32cd07a5e
diff -r a09fc8c6dbee -r d09f715b62f1 x11/xtrans/patches/patch-aa
--- a/x11/xtrans/patches/patch-aa       Fri Apr 25 18:02:24 2008 +0000
+++ b/x11/xtrans/patches/patch-aa       Fri Apr 25 18:15:55 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.3 2008/01/15 08:56:52 tnn Exp $
+$NetBSD: patch-aa,v 1.4 2008/04/25 18:15:55 joerg Exp $
 
---- Xtranssock.c.orig  2006-09-13 23:06:06.000000000 +0200
+--- Xtranssock.c.orig  2008-03-06 02:48:42.000000000 +0100
 +++ Xtranssock.c
-@@ -53,6 +53,7 @@ from the copyright holders.
+@@ -48,6 +48,7 @@ from the copyright holders.
   * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   */
  
@@ -31,3 +31,13 @@
  static int haveIPv6 = 1;
  #endif
  
+@@ -541,6 +537,9 @@ TRANS(SocketReopen) (int i, int type, in
+ 
+     portlen = strlen(port) + 1; // include space for trailing null
+ #ifdef BSD44SOCKETS
++#  ifndef SOCK_MAXADDRLEN
++#  define SOCK_MAXADDRLEN 255
++#  endif
+     if (portlen < 0 || portlen > (SOCK_MAXADDRLEN + 2)) {
+       PRMSG (1, "SocketReopen: invalid portlen %d\n", portlen, 0, 0);
+       return NULL;



Home | Main Index | Thread Index | Old Index