pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/paris-traceroute Fix build on SunOS (needs -lsocke...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/201cf7f64dfb
branches:  trunk
changeset: 639797:201cf7f64dfb
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Sep 25 16:08:24 2014 +0000

description:
Fix build on SunOS (needs -lsocket -lnsl and strings.h for bzero()).

diffstat:

 net/paris-traceroute/Makefile                  |   4 +++-
 net/paris-traceroute/distinfo                  |   3 ++-
 net/paris-traceroute/patches/patch-src_Util.cc |  16 ++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 7ec8ebdbb386 -r 201cf7f64dfb net/paris-traceroute/Makefile
--- a/net/paris-traceroute/Makefile     Thu Sep 25 15:59:13 2014 +0000
+++ b/net/paris-traceroute/Makefile     Thu Sep 25 16:08:24 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/04/22 17:27:27 imil Exp $
+# $NetBSD: Makefile,v 1.2 2014/09/25 16:08:24 jperkin Exp $
 #
 
 DISTNAME=      paris-traceroute-0.92-dev
@@ -16,6 +16,8 @@
 USE_LIBTOOL=           yes
 USE_LANGUAGES=         c c++
 
+LDFLAGS.SunOS+=        -lsocket -lnsl
+
 INSTALLATION_DIRS=     sbin ${PKGMANDIR}/man8
 
 do-install:
diff -r 7ec8ebdbb386 -r 201cf7f64dfb net/paris-traceroute/distinfo
--- a/net/paris-traceroute/distinfo     Thu Sep 25 15:59:13 2014 +0000
+++ b/net/paris-traceroute/distinfo     Thu Sep 25 16:08:24 2014 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2013/04/22 17:27:27 imil Exp $
+$NetBSD: distinfo,v 1.2 2014/09/25 16:08:24 jperkin Exp $
 
 SHA1 (paris-traceroute-0.92-dev.tar.gz) = 83096a5bbc58329633407db040ece2af21954f6b
 RMD160 (paris-traceroute-0.92-dev.tar.gz) = 05fb22f0d8138950eb73ab69adf3c2d2cb50ff03
 Size (paris-traceroute-0.92-dev.tar.gz) = 1063191 bytes
+SHA1 (patch-src_Util.cc) = a46a3318bf8fd5325bf62f1040370f525824e034
diff -r 7ec8ebdbb386 -r 201cf7f64dfb net/paris-traceroute/patches/patch-src_Util.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/paris-traceroute/patches/patch-src_Util.cc    Thu Sep 25 16:08:24 2014 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_Util.cc,v 1.1 2014/09/25 16:08:24 jperkin Exp $
+
+SunOS needs strings.h for bzero().
+
+--- src/Util.cc.orig   2007-06-06 09:21:19.000000000 +0000
++++ src/Util.cc
+@@ -5,6 +5,9 @@
+ 
+ #include <stdio.h>
+ #include <string.h>
++#ifdef __sun
++#include <strings.h>
++#endif
+ #include <unistd.h>
+ //#include <asm/types.h>
+ #include <sys/ioctl.h>



Home | Main Index | Thread Index | Old Index