pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/mtr Remove a bogus cast which breaks the build wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9dabaf6d1666
branches:  trunk
changeset: 569138:9dabaf6d1666
user:      tron <tron%pkgsrc.org@localhost>
date:      Sat Jan 09 19:44:05 2010 +0000

description:
Remove a bogus cast which breaks the build with Sun Studio C.
While here set the license to "gnu-gpl-v2".

diffstat:

 net/mtr/Makefile         |   3 ++-
 net/mtr/distinfo         |   3 ++-
 net/mtr/patches/patch-ac |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r e6c6245f5762 -r 9dabaf6d1666 net/mtr/Makefile
--- a/net/mtr/Makefile  Sat Jan 09 19:10:57 2010 +0000
+++ b/net/mtr/Makefile  Sat Jan 09 19:44:05 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2009/09/12 22:07:56 tron Exp $
+# $NetBSD: Makefile,v 1.57 2010/01/09 19:44:05 tron Exp $
 
 DISTNAME=      mtr-0.75
 CATEGORIES=    net
@@ -8,6 +8,7 @@
 MAINTAINER=    sommerfeld%NetBSD.org@localhost
 HOMEPAGE=      http://www.bitwizard.nl/mtr/
 COMMENT=       Traceroute and ping in a single graphical network diagnostic tool
+LICENSE=       gnu-gpl-v2
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 PKG_DESTDIR_SUPPORT=   user-destdir
diff -r e6c6245f5762 -r 9dabaf6d1666 net/mtr/distinfo
--- a/net/mtr/distinfo  Sat Jan 09 19:10:57 2010 +0000
+++ b/net/mtr/distinfo  Sat Jan 09 19:44:05 2010 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.26 2008/11/05 19:58:25 wiz Exp $
+$NetBSD: distinfo,v 1.27 2010/01/09 19:44:05 tron Exp $
 
 SHA1 (mtr-0.75.tar.gz) = d9d3f849e32dda8aa5a7a297c25053e5d8504b27
 RMD160 (mtr-0.75.tar.gz) = d7df41c0c9b457eeff4034c9bc2f01456b8f6c68
 Size (mtr-0.75.tar.gz) = 179376 bytes
 SHA1 (patch-aa) = 844cfa989ee103f3dbc3c1c96a7d631496a251a9
 SHA1 (patch-ab) = 09ad79840272c6e3dc1cad74a3349a0ab6bfee40
+SHA1 (patch-ac) = 50fcafe1a0de3f285036882c79fdf61e03fbc045
diff -r e6c6245f5762 -r 9dabaf6d1666 net/mtr/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mtr/patches/patch-ac  Sat Jan 09 19:44:05 2010 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.5 2010/01/09 19:44:05 tron Exp $
+
+Remove bogus cast which breaks the build with Sun Studio C.
+
+--- net.c.orig 2008-09-19 10:37:57.000000000 +0100
++++ net.c      2010-01-09 19:34:47.000000000 +0000
+@@ -1205,7 +1205,7 @@
+   switch ( saddr->sa_family ) {
+   case AF_INET:
+     sa4 = (struct sockaddr_in *) saddr;
+-    strncpy( strptr, inet_ntoa( (struct in_addr) sa4->sin_addr ), len - 1 );
++    strncpy( strptr, inet_ntoa( sa4->sin_addr ), len - 1 );
+     strptr[ len - 1 ] = '\0';
+     return;
+ #ifdef ENABLE_IPV6



Home | Main Index | Thread Index | Old Index