pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/udpcast Fix pthread and errno usage. Include sys/u...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6af13ae9c6dc
branches: trunk
changeset: 517757:6af13ae9c6dc
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Aug 22 15:52:15 2006 +0000
description:
Fix pthread and errno usage. Include sys/uio.h on DragonFly.
diffstat:
net/udpcast/Makefile | 3 ++-
net/udpcast/distinfo | 8 +++++++-
net/udpcast/patches/patch-ac | 14 ++++++++++++++
net/udpcast/patches/patch-ad | 14 ++++++++++++++
net/udpcast/patches/patch-ae | 13 +++++++++++++
net/udpcast/patches/patch-af | 13 +++++++++++++
net/udpcast/patches/patch-ag | 14 ++++++++++++++
net/udpcast/patches/patch-ah | 14 ++++++++++++++
8 files changed, 91 insertions(+), 2 deletions(-)
diffs (139 lines):
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/Makefile
--- a/net/udpcast/Makefile Tue Aug 22 15:33:40 2006 +0000
+++ b/net/udpcast/Makefile Tue Aug 22 15:52:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/08/09 10:04:12 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2006/08/22 15:52:15 joerg Exp $
#
DISTNAME= udpcast-20060619
@@ -17,4 +17,5 @@
${INSTALL_MAN} ${WRKSRC}/udp-receiver.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/udp-sender.1 ${PREFIX}/${PKGMANDIR}/man1
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/distinfo
--- a/net/udpcast/distinfo Tue Aug 22 15:33:40 2006 +0000
+++ b/net/udpcast/distinfo Tue Aug 22 15:52:15 2006 +0000
@@ -1,7 +1,13 @@
-$NetBSD: distinfo,v 1.2 2006/08/09 14:00:08 drochner Exp $
+$NetBSD: distinfo,v 1.3 2006/08/22 15:52:15 joerg Exp $
SHA1 (udpcast-20060619.tar.gz) = ae95820c746fc6d6dc2c4c97d24d52105983e15c
RMD160 (udpcast-20060619.tar.gz) = 1f8ffefc5f5a412f1b8bb371895987734f6159b1
Size (udpcast-20060619.tar.gz) = 76311 bytes
SHA1 (patch-aa) = 71af13c0bede7748e8b9d32f920488d263d3348f
SHA1 (patch-ab) = ef6b9b9ccc99028cc5ff939bc708d8812e032a62
+SHA1 (patch-ac) = 13e8289e336de78413ed6c9fdce6508222577365
+SHA1 (patch-ad) = ab0ab1e9f5cd98d0e1ffd15f7846ea889608fed8
+SHA1 (patch-ae) = 4937aec1283ca42652f9614e317fa63dcc500019
+SHA1 (patch-af) = 1b1ee2e0e256c4656a29ca4dd20d0ad9d718a617
+SHA1 (patch-ag) = 1e8c13bf20908a90f8ad88f4a5651483538c9f36
+SHA1 (patch-ah) = 0329f8e290b75f1da791465ab1ffd198a0f2ab32
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/udpcast/patches/patch-ac Tue Aug 22 15:52:15 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1 2006/08/22 15:52:15 joerg Exp $
+
+--- receivedata.c.orig 2006-08-22 17:39:33.000000000 +0000
++++ receivedata.c
+@@ -4,6 +4,9 @@
+ #include <stdlib.h>
+ #include <sys/time.h>
+ #include <errno.h>
++#if defined(__DragonFly__)
++#include <sys/uio.h>
++#endif
+
+ #include "threads.h"
+ #include "log.h"
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/udpcast/patches/patch-ad Tue Aug 22 15:52:15 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1 2006/08/22 15:52:15 joerg Exp $
+
+--- udpr-negotiate.c.orig 2006-08-22 17:40:14.000000000 +0000
++++ udpr-negotiate.c
+@@ -107,9 +107,6 @@ int startReceiver(int doWarn,
+ }
+ outFile = open(disk_config->fileName, oflags | O_BINARY, 0644);
+ if(outFile < 0) {
+-#ifdef NO_BB
+- extern int errno;
+-#endif
+ udpc_fatal(1, "open outfile %s: %s\n",
+ disk_config->fileName, strerror(errno));
+ }
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/udpcast/patches/patch-ae Tue Aug 22 15:52:15 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- libbb_udpcast.h.orig 2006-08-22 17:40:46.000000000 +0000
++++ libbb_udpcast.h
+@@ -14,7 +14,7 @@
+ #define TRUE 1
+ #define FALSE 0
+
+-#include <malloc.h>
++#include <stdlib.h>
+ #define xmalloc malloc
+
+ #endif /* BB_VER */
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/patches/patch-af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/udpcast/patches/patch-af Tue Aug 22 15:52:15 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- Makefile.orig 2006-08-22 17:41:12.000000000 +0000
++++ Makefile
+@@ -3,7 +3,7 @@ DESTDIR =
+ #CFLAGS = -O4 -Wall -DNDEBUG -DLOSSTEST
+ CFLAGS =-Wall -Wshadow -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DUSE_ASSEMBLER -O6
+ LDFLAGS =-s -Wl,-warn-common
+-LIBS=-lpthread
++LIBS=${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+ BUSYBOX=../udp-busybox/busybox
+ BBTARGET=$(BUSYBOX)/udpcast
+ EXESUFFIX=
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/udpcast/patches/patch-ag Tue Aug 22 15:52:15 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ag,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- sender-diskio.c.orig 2006-08-22 17:45:14.000000000 +0000
++++ sender-diskio.c
+@@ -26,9 +26,6 @@ int openFile(struct disk_config *config)
+ if(config->fileName != NULL) {
+ int in = open(config->fileName, O_RDONLY | O_BINARY, 0);
+ if (in < 0) {
+-#ifdef NO_BB
+- extern int errno;
+-#endif
+ udpc_fatal(1, "Could not open file %s: %s\n", config->fileName,
+ strerror(errno));
+ }
diff -r 83f9a882603d -r 6af13ae9c6dc net/udpcast/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/udpcast/patches/patch-ah Tue Aug 22 15:52:15 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- senddata.c.orig 2006-08-22 17:46:18.000000000 +0000
++++ senddata.c
+@@ -3,6 +3,9 @@
+ #include <sys/time.h>
+ #include <unistd.h>
+ #include <errno.h>
++#if defined(__DragonFly__)
++#include <sys/uio.h>
++#endif
+
+ #include "threads.h"
+ #include "fec.h"
Home |
Main Index |
Thread Index |
Old Index