Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

19
lang/mpd/DESCR Normal file
View File

@@ -0,0 +1,19 @@
This the MPD language for Multithreaded, Parallel, and Distributed
Programming. Installation instructions are in the file doc/install.html.
Language documentation can be found at the MPD home on the web,
http://www.cs.arizona.edu/mpd
MPD was inspired by the book:
Foundations of Multithreaded, Parallel, and Distributed Programming
Gregory R. Andrews
Addison-Wesley, 2000 (ISBN 0-201-35752-6)
The MPD implementation is based on version 2.3.2 of the SR programming
language. The syntax has changed, but the internals are essentially
the same except for a massive renaming. Accordingly MPD is limited by
the features of SR and does not correspond exactly to the MPD book.
Much of the SR implementation documentation is still valid. It can be
found at:
http://www.cs.arizona.edu/sr/doc.html

48
lang/mpd/Makefile Normal file
View File

@@ -0,0 +1,48 @@
# $NetBSD: Makefile,v 1.17 2012/10/02 20:11:46 asau Exp $
#
DISTNAME= mpd.1.0.1
PKGNAME= mpd-1.0.1
PKGREVISION= 7
CATEGORIES= lang parallel
MASTER_SITES= http://www.cs.arizona.edu/mpd/download/
DIST_SUBDIR= mpd-language
EXTRACT_SUFX= .tgz
MAINTAINER= is@NetBSD.org
HOMEPAGE= http://www.cs.arizona.edu/mpd/
COMMENT= The MPD language compiler and run time system
MAKE_JOBS_SAFE= no
CONFLICTS+= musicpd-[0-9]*
ONLY_FOR_PLATFORM= NetBSD-[2-9]*-*
NOT_FOR_PLATFORM= *-*-x86_64 # as per lang/sr
TEST_TARGET= verify
DP= ${DESTDIR}${PREFIX}
SUBST_CLASSES+= mpd
SUBST_STAGE.mpd= pre-configure
SUBST_MESSAGE.mpd= Filling out path templates.
SUBST_FILES.mpd= Configuration
SUBST_SED.mpd= -e 's,_LOCALBASE_,${LOCALBASE},g'
SUBST_SED.mpd+= -e 's,_WRKSRC_,${WRKSRC},g'
SUBST_SED.mpd+= -e 's,_XINC_,${X11BASE}/include,g'
SUBST_SED.mpd+= -e 's,_XLIB_,${X11BASE}/lib,g'
INSTALLATION_DIRS= bin lib/mpd ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 \
${PKGMANDIR}/man5 share/doc/mpd
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/csw/cstest ${DP}/bin/mpd-cstest
${INSTALL_DATA} ${WRKSRC}/README ${DP}/share/doc/mpd
${INSTALL_DATA} ${WRKSRC}/doc/cairn.jpg ${DP}/share/doc/mpd
${INSTALL_DATA} ${WRKSRC}/doc/install.html ${DP}/share/doc/mpd
${INSTALL_DATA} ${WRKSRC}/doc/release.html ${DP}/share/doc/mpd
.include "../..//x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

34
lang/mpd/PLIST Normal file
View File

@@ -0,0 +1,34 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:03:36 joerg Exp $
bin/mpd
bin/mpd-cstest
bin/mpdl
bin/mpdm
bin/mpdprof
lib/mpd/MPDWin.impl
lib/mpd/MPDWin.o
lib/mpd/MPDWin.spec
lib/mpd/MPDanimator.impl
lib/mpd/MPDanimator.o
lib/mpd/MPDanimator.spec
lib/mpd/MPDgetopt.impl
lib/mpd/MPDgetopt.o
lib/mpd/MPDgetopt.spec
lib/mpd/mpd.h
lib/mpd/mpdlib.a
lib/mpd/mpdmap
lib/mpd/mpdmulti.h
lib/mpd/mpdwin.o
lib/mpd/mpdx
man/man1/mpd.1
man/man1/mpdl.1
man/man1/mpdm.1
man/man1/mpdprof.1
man/man3/mpdanimator.3
man/man3/mpdgetopt.3
man/man3/mpdwin.3
man/man5/mpdmap.5
man/man5/mpdtrace.5
share/doc/mpd/README
share/doc/mpd/cairn.jpg
share/doc/mpd/install.html
share/doc/mpd/release.html

29
lang/mpd/distinfo Normal file
View File

@@ -0,0 +1,29 @@
$NetBSD: distinfo,v 1.7 2010/03/03 13:31:53 is Exp $
SHA1 (mpd-language/mpd.1.0.1.tgz) = 797b505935ccc741fdca6010bc0bd53601a6f262
RMD160 (mpd-language/mpd.1.0.1.tgz) = 2862ae9220ec0a546ed4193aeee4dc8dc94610a2
Size (mpd-language/mpd.1.0.1.tgz) = 581498 bytes
SHA1 (patch-aa) = f3c3911afa2596e72d8e3056f93e5277cd41dabc
SHA1 (patch-ab) = 2a086280fefb4acddd19cb3cbafd58f8de5b309e
SHA1 (patch-ar) = 7b9c76e47a5f5900a2bfd6b9bb4b585dc10da562
SHA1 (patch-as) = 510df56b50ee7c0ab1c64a24e6c9f97317541d3c
SHA1 (patch-at) = 6f7be8ba344a1606663f7dfeefa73edd62380721
SHA1 (patch-au) = f694bd75154de25247e9609dc954c9319ab32089
SHA1 (patch-av) = b10aa333ecf77e29933256117a9c4d27792993bd
SHA1 (patch-aw) = d0efc58da58fb601257d4c108f4acc50ae05cbf9
SHA1 (patch-ax) = daa27e66622a693cf860e3fbf7569a9363a81354
SHA1 (patch-ay) = 1621ca66dfbece6bc82fc709fd2c507abb64abae
SHA1 (patch-az) = 1560c8ea0b760e2fb97385e565d87a49a879c6a2
SHA1 (patch-ba) = 21de20ed7f9e064a988cf091253ae7a5ad962487
SHA1 (patch-bb) = 6214584bde5a05386d0f31690b30a9c0a8c299af
SHA1 (patch-bc) = be4f8c47486c5b6933494f4e92fd8c340425a167
SHA1 (patch-bd) = 62556e84f29c32310d27cb105cc6de5b4fd5e817
SHA1 (patch-be) = 85689a95f9311e3e70c0b4a532d57dae6b931b35
SHA1 (patch-bf) = 20e66a54a51702ce229ef53e250c467d01e2d3b2
SHA1 (patch-bg) = 231723cbc6b6baef132aefd450524942fb0108f2
SHA1 (patch-bh) = c880064e871297a411e2292f78d82222bb46dac4
SHA1 (patch-bi) = 31fc9eb664dd3e73c7fe12ae6e95fd85b67286fc
SHA1 (patch-bj) = c5123801140fbfdcbfdabbcd39fe70d2e71355fc
SHA1 (patch-bk) = ffbcc49346ea57a3fd0eed51d7bb00f80e25f3a5
SHA1 (patch-bl) = 4739bac6eafea8946394b403081ab3e6612ab39d
SHA1 (patch-bm) = 7e089cf0c69d758f3bcc12b93217554bd26da08c

52
lang/mpd/patches/patch-aa Normal file
View File

@@ -0,0 +1,52 @@
$NetBSD: patch-aa,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- Configuration.orig 2004-01-20 23:13:18.000000000 +0100
+++ Configuration
@@ -26,12 +26,12 @@ VERSION = "MPD version 1.0.1, January 20
# MAN5: directory in which to install the mpdmap/mpdtrace(5) man pages
# (extension will be `tr 1 5` of MANEXT)
-MPDSRC = /usr/local/src/mpd
-MPDCMD = /usr/local/bin
-MPDLIB = /usr/local/lib/mpd
-MAN1 = /usr/local/man/man1
-MAN3 = /usr/local/man/man3
-MAN5 = /usr/local/man/man5
+MPDSRC = _WRKSRC_
+MPDCMD = _LOCALBASE_/bin
+MPDLIB = _LOCALBASE_/lib/mpd
+MAN1 = _LOCALBASE_/man/man1
+MAN3 = _LOCALBASE_/man/man3
+MAN5 = _LOCALBASE_/man/man5
MANEXT = 1
@@ -54,8 +54,8 @@ MANEXT = 1
# for Sun Solaris with Sun's C compiler use: CCPATH = /opt/SUNWspro/bin/cc
# for Linux, NetBSD, FreeBSD, or SGI Irix use: CCPATH = /usr/bin/cc
-CCPATH = /bin/cc
-RSHPATH = /usr/bin/rsh
+CCPATH = /usr/bin/cc
+RSHPATH = /usr/bin/ssh
@@ -74,7 +74,7 @@ RSHPATH = /usr/bin/rsh
# LIBC = , LIBR = , LIBM = -lm
LIBC =
-LIBR = -L/usr/X11R6/lib
+LIBR = -R_XLIB_ -L_XLIB_
LIBM = -lm
@@ -91,7 +91,7 @@ LIBM = -lm
# for NetBSD, set XINCL = /usr/X386/include
# for Linux, set XINCL = /usr/X11R6/include
-XINCL = /usr/X11R6/include
+XINCL = _XINC_
XTANGO =

17
lang/mpd/patches/patch-ab Normal file
View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ab,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- arch.h.orig 1999-08-09 16:34:12.000000000 +0000
+++ arch.h
@@ -7,6 +7,12 @@
* BIGCC arguments passed to CC to enlarge tree space (if needed)
*/
+
+/* here so that cpu-specific code below doesn't overwrite our choices */
+#if !defined(ARCH) && defined(__NetBSD__)
+#define ARCH "NetBSD 2.0 and later"
+#endif
+
#ifndef ARCH
#ifdef apollo

View File

@@ -0,0 +1,9 @@
$NetBSD: patch-ar,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- vsuite/quick/easy/Make.std.orig 1999-07-28 22:43:18.000000000 +0200
+++ vsuite/quick/easy/Make.std
@@ -1,3 +1,3 @@
echo gries.mpd
-rm -rf ./MPDinter
+rm -rf ./MPDinter
rm -f core a.out

32
lang/mpd/patches/patch-as Normal file
View File

@@ -0,0 +1,32 @@
$NetBSD: patch-as,v 1.2 2010/03/03 13:31:53 is Exp $
--- Makefile.orig 2001-02-06 19:30:37.000000000 +0100
+++ Makefile
@@ -4,7 +4,7 @@
CC = cc
-CFLAGS = -g
+CFLAGS = -O3 -Wall
MAKE = make
SHELL = /bin/sh
@@ -34,7 +34,7 @@ all: config
## Install everything.
-install: paths.sh ; sh install.sh
+install: paths.sh ; sh install.sh ${DESTDIR}
@@ -212,6 +212,9 @@ vscripts: ; @cd vsuite; find * -name Sc
+verify:
+ mpdv/mpdv
+
# run some distributed tests with mpdv
mpdvdist:

36
lang/mpd/patches/patch-at Normal file
View File

@@ -0,0 +1,36 @@
$NetBSD: patch-at,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- csw/Makefile.orig 1999-07-30 05:01:50.000000000 +0000
+++ csw/Makefile
@@ -1,6 +1,6 @@
## Makefile for the MPD context switch routines.
-CFLAGS = -g
+CFLAGS = -O3
SHELL = /bin/sh
SRC = alpha.s ap3000.s bobcat.s encore.s i386.s m68k.s m88k.s mips.s \
@@ -27,19 +27,15 @@ cstest: cstest.o asm.o
# csloop is a timing program, built only on request
csloop: csloop.o asm.o
- . ../paths.sh; $(CC) -O -o csloop csloop.o asm.o $$LIBR $$LIBC
+ . ../paths.sh; $(CC) -g -o csloop csloop.o asm.o $$LIBR $$LIBC
csloop.o: csloop.c
$(CC) -O -c csloop.c
-# asm.o holds the actual context switch code
-
-asm.o: asm.c ../arch.h $(SRC)
- $(CC) $(CFLAGS) -E asm.c | \
- sed -e '/^ *$$/d' -e '/^#/'d -e 's/ :/:/' >asm.s
- as -o asm.o asm.s
-
+asm.o: netbsd.c
+ $(CC) $(CFLAGS) -c netbsd.c
+ $(LD) -r -o asm.o netbsd.o /usr/lib/libpthread.a
# miscellaneous utility targets

117
lang/mpd/patches/patch-au Normal file
View File

@@ -0,0 +1,117 @@
$NetBSD: patch-au,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- csw/netbsd.c.orig 2005-03-02 13:00:06.000000000 +0000
+++ csw/netbsd.c
@@ -0,0 +1,112 @@
+/*
+ * netbsd.c -- context switch code for NetBSD 2.
+ *
+ * Some Makefile changes are needed to use this code.
+ */
+
+#include <ucontext.h>
+
+void mpd_stk_underflow(void);
+void mpd_stk_corrupted(void);
+
+static void startup(void (*)(void), unsigned long, unsigned long, unsigned long, unsigned long);
+
+#ifdef __i386__
+void pthread__i386_init(void);
+
+#define _setcontext_u(uc) (*_md_setcontext_u)(uc)
+#define _swapcontext_u(oc,nc) (*_md_swapcontext_u)(oc,nc)
+
+static void mpd_setcontext_u(ucontext_t *);
+static void mpd_swapcontext_u(ucontext_t *, ucontext_t *);
+
+void (*_md_getcontext_u) (ucontext_t *);
+void (*_md_setcontext_u) (ucontext_t *) = mpd_setcontext_u;
+void (*_md_swapcontext_u)(ucontext_t *, ucontext_t *) = mpd_swapcontext_u;
+
+static void
+mpd_setcontext_u(ucontext_t *uc) {
+ pthread__i386_init();
+ _setcontext_u(uc);
+}
+
+static void
+mpd_swapcontext_u(ucontext_t *oldc, ucontext_t *newc) {
+ pthread__i386_init();
+ _swapcontext_u(oldc, newc);
+}
+#endif
+
+
+/*
+ * mpd_build_context (func, buf, bufsize, arg1, arg2, arg3, arg4)
+ *
+ * Build a context that will call func(arg1,arg2,arg3,arg4) when activated
+ * and will catch an underflow error if func returns. We use an intermediary
+ * in order to catch that return.
+ */
+void
+mpd_build_context (func, buf, bufsize, arg1, arg2, arg3, arg4)
+void (*func)();
+char *buf;
+int bufsize;
+unsigned long arg1, arg2, arg3, arg4;
+{
+ ucontext_t *uc = (ucontext_t *) buf; /* put header at front of buf */
+
+ if (0 != getcontext(uc)) { /* initialize context */
+ mpd_stk_corrupted();
+ }
+
+ uc->uc_stack.ss_sp = buf + sizeof (ucontext_t);
+ uc->uc_stack.ss_size = bufsize - sizeof (ucontext_t);
+
+ makecontext (uc, startup, 5, func, arg1, arg2, arg3, arg4);
+ uc->uc_stack.ss_flags = 0;
+}
+
+/*
+ * startup (func, a,b,c,d) -- intermediary for startup and underflow detection.
+ */
+static void
+startup (func, arg1, arg2, arg3, arg4)
+void (*func)();
+unsigned long arg1, arg2, arg3, arg4;
+{
+ (*func) (arg1, arg2, arg3, arg4);
+ mpd_stk_underflow();
+}
+
+
+
+/*
+ * mpd_chg_context (newctx, oldctx) -- change contexts.
+ */
+void
+mpd_chg_context (new, old)
+char *new, *old;
+{
+ ucontext_t *oldu, *newu;
+ newu = (ucontext_t *)new;
+
+ if (old) {
+ oldu = (ucontext_t *)old;
+ _swapcontext_u(oldu, newu);
+ } else {
+ _setcontext_u(newu);
+ }
+}
+
+
+
+/*
+ * mpd_check_stk (stk) -- check for stack overflow.
+ *
+ * We have no idea of how to do that, so we do nothing.
+ */
+void
+mpd_check_stk(stk)
+char *stk;
+{
+ /* nothing */
+}

12
lang/mpd/patches/patch-av Normal file
View File

@@ -0,0 +1,12 @@
$NetBSD: patch-av,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- rts/net.c.orig 2005-03-01 16:25:59.000000000 +0000
+++ rts/net.c
@@ -2,6 +2,7 @@
#include "rts.h"
#include <fcntl.h>
+#include <unistd.h>
static void start_mpdx ();

12
lang/mpd/patches/patch-aw Normal file
View File

@@ -0,0 +1,12 @@
$NetBSD: patch-aw,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- rts/mpdx.c.orig 2005-03-01 16:26:10.000000000 +0000
+++ rts/mpdx.c
@@ -19,6 +19,7 @@
#include "rts.h"
#include <fcntl.h>
#include <signal.h>
+#include <unistd.h>
#include <sys/param.h>
#ifdef __PARAGON__

10
lang/mpd/patches/patch-ax Normal file
View File

@@ -0,0 +1,10 @@
$NetBSD: patch-ax,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- mpdm/filter.c.orig 2005-03-01 16:26:14.000000000 +0000
+++ mpdm/filter.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <unistd.h>
#include "../gen.h"
#include "../util.h"

15
lang/mpd/patches/patch-ay Normal file
View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ay,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- util.c.orig 2000-10-31 23:53:40.000000000 +0100
+++ util.c
@@ -4,7 +4,10 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h> /* needed by HP-UX */
+#include <sys/wait.h> /* needed by NetBSD */
#include <fcntl.h> /* needed by HP-UX */
+#include <string.h> /* needed by NetBSD */
+#include <unistd.h> /* needed by NetBSD */
#include "gen.h"
#include "util.h"
#include "paths.h"

13
lang/mpd/patches/patch-az Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: patch-az,v 1.1 2005/10/17 19:45:18 is Exp $
--- csw/cstest.c.orig 1999-07-28 20:42:21.000000000 +0000
+++ csw/cstest.c
@@ -315,7 +315,7 @@ int m, n;
label = "";
printf ("%s ---------------------------------------\n", label);
while (p <= q) {
- printf ("\t%08X (%2d) %08X ", (int) p, p - addr, i = * (int *) p);
+ printf ("\t%p (%2d) %08X ", p, p - addr, i = * (int *) p);
c = toascii (*p++); putchar (isprint (c) ? c : '.');
c = toascii (*p++); putchar (isprint (c) ? c : '.');
c = toascii (*p++); putchar (isprint (c) ? c : '.');

32
lang/mpd/patches/patch-ba Normal file
View File

@@ -0,0 +1,32 @@
$NetBSD: patch-ba,v 1.1 2005/10/17 19:45:18 is Exp $
--- rts/misc.c.orig 2005-03-02 13:56:52.000000000 +0000
+++ rts/misc.c
@@ -1,6 +1,7 @@
/* misc.c -- miscellaneous routines supporting the generated code */
#include <stdarg.h>
+#include <stdint.h>
#include "rts.h"
@@ -24,7 +25,7 @@ mpd_cat (String *slist, ...)
n = 0; /* total the string lengths */
va_start (ap, slist);
for (s = slist; s != NULL; s = va_arg (ap, String *))
- if ((int) s & 1)
+ if ((intptr_t) s & 1)
n++; /* char argument */
else
n += s->length; /* String argument */
@@ -37,8 +38,8 @@ mpd_cat (String *slist, ...)
p = DATA (t);
va_start (ap, slist);
for (s = slist; s != NULL; s = va_arg (ap, String *))
- if ((int) s & 1) { /* for each input string: */
- *p++ = (int) s >> 2; /* copy in char argument */
+ if ((intptr_t) s & 1) { /* for each input string: */
+ *p++ = (intptr_t) s >> 2; /* copy in char argument */
} else {
memcpy (p, DATA (s), s->length); /* copy into new string */
p += s->length; /* advance pointer*/

13
lang/mpd/patches/patch-bb Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bb,v 1.1 2005/10/17 19:45:18 is Exp $
--- rts/socket.c.orig 2005-03-02 14:17:00.000000000 +0000
+++ rts/socket.c
@@ -278,7 +278,7 @@ Pach ph;
int n, result, my_currfd;
static struct sockaddr sockbuff;
- static size_t buffsize;
+ static socklen_t buffsize;
static fd_set readyset; /* fd's with input available. Fortunately,
* the only place this is assigned to is
* already protected. */

13
lang/mpd/patches/patch-bc Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bc,v 1.1 2005/10/17 19:45:18 is Exp $
--- rts/scan.c.orig 2003-11-21 21:00:01.000000000 +0100
+++ rts/scan.c
@@ -7,7 +7,7 @@
static int scanToken (), scanInteger (), scanReal (), scanPointer ();
static int scanTokenFromSet ();
-#define BACKCH(c,f,S,s) (S ? ((s>DATA (S)) ? (s)-- : 0) : (char*)ungetc (c, f))
+#define BACKCH(c,f,S,s) (S ? ((s>DATA (S)) ? (s)--,0 : 0) : ungetc (c, f))
#define NEXTCH(l,f,S,s) (S ? ((*s=='\0') ? EOF : * (Char*)(s)++) : INCH (l, f))
#define SCAN_LEN 50

13
lang/mpd/patches/patch-bd Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bd,v 1.1 2005/10/17 20:18:34 is Exp $
--- vsuite/quick/ptrstr/No_input.std.orig 2005-03-11 09:46:24.000000000 +0100
+++ vsuite/quick/ptrstr/No_input.std
@@ -0,0 +1,8 @@
+Testing pointer-string-pointer conversions:
+Null pointer: ==null== ; string: ==null== ; int: 0 ; pt(==null==): ==null==
+pointer identity: true
+string identity: true
+pointerX identity: true
+Expect invalid conversion:
+RTS abort: file pointer.mpd, line 31:
+ illegal conversion: pointer("invalid")

38
lang/mpd/patches/patch-be Normal file
View File

@@ -0,0 +1,38 @@
$NetBSD: patch-be,v 1.1 2005/10/17 20:18:34 is Exp $
--- vsuite/quick/ptrstr/pointer.mpd.orig 2005-10-17 22:06:31.000000000 +0200
+++ vsuite/quick/ptrstr/pointer.mpd
@@ -0,0 +1,33 @@
+resource pointer()
+ type pt = ptr int
+ pt foo
+ pt bar
+ pt baz
+ pt nul
+ string[20] foos
+ string[20] bars
+
+ write("Testing pointer-string-pointer conversions:")
+
+ nul = null
+ write("Null pointer:", nul, "; string:", string(nul),
+ "; int:", int(nul), "; pt(==null==):", pt("==null=="))
+
+ baz = new(int)
+
+ foo = new(int)
+ foos= string(foo)
+
+ bar = pt(foos)
+ bars= string(bar)
+
+ baz = pt(foos||"X")
+
+ write("pointer identity:", foo == bar)
+ write("string identity:", foos == bars)
+ write("pointerX identity:", foo == baz)
+
+ write("Expect invalid conversion:")
+ baz = pt("invalid")
+
+end

View File

@@ -0,0 +1,9 @@
$NetBSD: patch-bf,v 1.1 2005/10/17 20:18:34 is Exp $
--- vsuite/quick/ptrstr/Script.orig 2005-03-11 09:46:25.000000000 +0100
+++ vsuite/quick/ptrstr/Script
@@ -0,0 +1,4 @@
+# ignatios Fri Mar 11 10:07:24 CET 2005
+0 mpd pointer.mpd
+1 run
+0 rm -rf Interfaces core *.out

39
lang/mpd/patches/patch-bg Normal file
View File

@@ -0,0 +1,39 @@
$NetBSD: patch-bg,v 1.1 2005/10/17 20:18:34 is Exp $
--- rts/conv.c.orig 1999-07-28 22:42:24.000000000 +0200
+++ rts/conv.c
@@ -219,11 +219,30 @@ mpd_ptrval (locn, s)
char *locn;
String *s;
{
+ unsigned long ul;
+ char c[2], d[2];
+ int t;
+
mpd_check_stk (CUR_STACK);
- if (s->length == 8 && strncmp (DATA (s), "==null==", 8) == 0)
- return 0;
- else
- return (Ptr) mpd_intval (locn, s);
+
+ if (s->length == 8 && strncmp (DATA (s), "==null==", 8) == 0) {
+ return (Ptr)0;
+ }
+ /* implicit else */
+
+ c[0] = '\0';
+ DATA (s) [s->length] = '\0';
+
+ t = sscanf (DATA (s), "%lx%1s%1s", &ul, c, d);
+
+ if ( t != 1 &&
+ (t != 2 || (c[0] != 'x' && c[0] != 'X'))) {
+
+ mpd_runerr (locn, E_PCNV, s);
+ }
+
+ return (Ptr) ul;
+
}

View File

@@ -0,0 +1,9 @@
$NetBSD: patch-bh,v 1.1 2005/10/17 20:18:34 is Exp $
--- runerr.h.orig 2005-03-11 09:28:59.000000000 +0100
+++ runerr.h
@@ -40,3 +40,4 @@ RUNERR(E_CCNV,41,"illegal conversion: ch
RUNERR(E_BCNV,42,"illegal conversion: bool(\"%S\")")
RUNERR(E_ICNV,43,"illegal conversion: int(\"%S\")")
RUNERR(E_RCNV,44,"illegal conversion: real(\"%S\")")
+RUNERR(E_PCNV,45,"illegal conversion: pointer(\"%S\")")

14
lang/mpd/patches/patch-bi Normal file
View File

@@ -0,0 +1,14 @@
$NetBSD: patch-bi,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- library/Makefile.orig 2000-10-31 23:53:41.000000000 +0100
+++ library/Makefile
@@ -1,7 +1,7 @@
## Makefile for the MPD X-Windows interface, MPDWin.
-CFLAGS = -g
-MPDFLAGS = -g
+CFLAGS = -O3
+MPDFLAGS = -O
SHELL = /bin/sh

13
lang/mpd/patches/patch-bj Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: patch-bj,v 1.1 2005/10/17 20:30:27 is Exp $
--- mpd/gexpr.c.orig 1999-10-26 03:06:20.000000000 +0200
+++ mpd/gexpr.c
@@ -942,7 +942,7 @@ Nodeptr e;
r = RNODE (e);
if (l->e_sig->g_type == T_STRING) {
if (option_O)
- cprintf ("(DATA(%e)+%e-1)", l, r);
+ cprintf ("((Char*)DATA(%e)+%e-1)", l, r);
else {
cprintf ("(");
once (l, ',');

11
lang/mpd/patches/patch-bk Normal file
View File

@@ -0,0 +1,11 @@
$NetBSD: patch-bk,v 1.1.1.1 2005/10/17 16:16:48 is Exp $
--- util.h.orig 2000-10-31 23:53:40.000000000 +0100
+++ util.h
@@ -17,5 +17,5 @@ extern FILE *pathopen(); /* file open wi
extern FILE *mustopen(); /* file open with guaranteed success */
extern int trcexec; /* trace exec calls? */
-extern spawn(); /* fork and exec */
+extern int spawn(); /* fork and exec */
extern void doexec(); /* exec in place */

22
lang/mpd/patches/patch-bl Normal file
View File

@@ -0,0 +1,22 @@
$NetBSD: patch-bl,v 1.1 2006/05/18 12:57:15 is Exp $
--- vsuite/timings/report.sh.orig 2000-10-31 23:54:09.000000000 +0100
+++ vsuite/timings/report.sh
@@ -13,7 +13,7 @@ cat build.out || exit 1
echo
echo "Results are given in microseconds"
echo
-echo " times mean median test"
+echo " times mean median test"
cat List | while read DIR SCALE DESCR
do
@@ -28,7 +28,7 @@ do
END { mid = int ((NR + 1) / 2);
median = t[mid] * 1000 / n[mid];
mean = nmsec * 1000 / ntimes;
- printf ("%10d %7.2f %7.2f %s\n", \
+ printf ("%10d %8.3f %8.3f %s\n", \
ntimes, mean, median, "'"$DESCR"'");
}
'

17
lang/mpd/patches/patch-bm Normal file
View File

@@ -0,0 +1,17 @@
$NetBSD: patch-bm,v 1.1 2010/03/03 13:31:54 is Exp $
--- install.sh.orig 2000-10-31 23:53:40.000000000 +0100
+++ install.sh
@@ -3,6 +3,12 @@
# Install MPD.
. ./paths.sh
+
+for var in MPDCMD MPDLIB MAN1 MAN3 MAN5; do
+ eval val=\$${var}
+ eval ${var}=$1${val}
+done
+
if [ -z "$MPDCMD" -o -z "$MPDLIB" ]; then
echo 'cannot install -- MPDCMD or MPDLIB is null' 1>&2
exit 1