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
+18
View File
@@ -0,0 +1,18 @@
$NetBSD: patch-ac,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for SunOS
--- ls/ls.c.orig 2005-05-29 15:55:42.000000000 +0300
+++ ls/ls.c
@@ -81,12 +81,6 @@ static char ifmt_c[] = "-pc-d-b--nl-SD--
#define ifmt(mode) ifmt_c[((mode) >> 12) & 0xF]
-#ifndef USE_TERMCAP
-#ifdef sun
-#include <curses.h>
-#include <term.h>
-#endif
-#endif
#define nil 0
#include <sys/types.h>
#include <sys/stat.h>
+20
View File
@@ -0,0 +1,20 @@
$NetBSD: patch-af,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for Interix
--- libcommon/getdir.c.orig Sun Jan 22 21:06:14 2006
+++ libcommon/getdir.c
@@ -59,7 +59,14 @@ extern int getdents(int, struct dirent *
#ifdef __hpux
#define _KERNEL
#endif /* __hpux */
+
+#ifdef __INTERIX
+#include <dirent.h>
+#define d_reclen d_namlen
+#else
#include <sys/dirent.h>
+#endif
+
#ifdef __hpux
#ifndef _INO64_T
typedef unsigned long long uint64_t;
+18
View File
@@ -0,0 +1,18 @@
$NetBSD: patch-an,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Improvement for build system
--- build/crossln.sh.orig 2005-03-10 18:33:13.000000000 +0200
+++ build/crossln.sh
@@ -10,6 +10,12 @@ usage() {
}
doit() {
+ if echo "$1" | grep '^[^/]' > /dev/null; then
+ src="`dirname $2`/$1"
+ else
+ src="$1"
+ fi
+ test -f "$src" -o -h "$src" || return 0
rm -f -- "$2" || exit
exec @LNS@ -- "$1" "$2" || exit
}
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ao,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Improvement for build system
--- Makefile.mk.orig 2007-01-27 18:43:39.000000000 +0200
+++ Makefile.mk
@@ -94,4 +94,6 @@ links:
else \
sh build/crossln $(ROOT)$(MANDIR)/man1/oawk.1 $(ROOT)$(MANDIR)/man1/awk.1 $(ROOT); \
fi
- $(SHELL) build/maninst -c -m 644 intro.1 $(ROOT)$(MANDIR)/man1/intro.1
+ if test -z "${NO_INSTALL_INTRO}"; then \
+ $(SHELL) build/maninst -c -m 644 intro.1 $(ROOT)$(MANDIR)/man1/intro.1; \
+ fi
+31
View File
@@ -0,0 +1,31 @@
$NetBSD: patch-ap,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for Interix 3.5
--- libcommon/memalign.c.orig Sun Jan 22 21:06:14 2006
+++ libcommon/memalign.c
@@ -21,9 +21,6 @@
*/
/* Sccsid @(#)memalign.c 1.7 (gritter) 1/22/06 */
-#if defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || \
- defined (__NetBSD__) || defined (__OpenBSD__) || \
- defined (__DragonFly__) || defined (__APPLE__)
/*
* FreeBSD malloc(3) promises to page-align the return of malloc() calls
* if size is at least a page. This serves for a poor man's memalign()
@@ -34,6 +31,7 @@
#include "memalign.h"
+#if defined (HAVE_NO_MEMALIGN)
void *
memalign(size_t alignment, size_t size)
{
@@ -47,5 +45,5 @@ memalign(size_t alignment, size_t size)
size = pagesize;
return malloc(size);
}
-#endif /* __FreeBSD__ || __dietlibc__ || _AIX || __NetBSD__ || __OpenBSD__ ||
- __DragonFly__ || __APPLE__ */
+#endif /* HAVE_NO_MEMALIGN */
+
+20
View File
@@ -0,0 +1,20 @@
$NetBSD: patch-aq,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for Interix 3.5
--- libcommon/memalign.h.orig Sun Jan 22 21:06:14 2006
+++ libcommon/memalign.h
@@ -26,10 +26,10 @@
#if defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || \
defined (__NetBSD__) || defined (__OpenBSD__) || \
- defined (__DragonFly__) || defined (__APPLE__)
+ defined (__DragonFly__) || defined (__APPLE__) || defined (__INTERIX)
#include <stdlib.h>
-
+#define HAVE_NO_MEMALIGN 1
extern void *memalign(size_t, size_t);
-#endif /* __FreeBSD__ || __dietlibc__ || _AIX || __NetBSD__ || __OpenBSD__ ||
- __DragonFly__ || __APPLE__ */
+#endif
+
#endif /* !LIBCOMMON_MEMALIGN_H */
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-at,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for systems having no btowc(3) (Interix-3.5)
--- libuxre/btowc.c.orig Mon Dec 18 15:22:23 2006
+++ libuxre/btowc.c
@@ -0,0 +1,11 @@
+#include "btowc.h"
+
+#if defined (HAVE_NO_BTOWC)
+wint_t btowc (int c)
+{
+ if (c == EOF || c > 0xFF)
+ return WEOF;
+
+ return (wint_t)c;
+}
+#endif
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-au,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for Interix-3.5
--- libuxre/btowc.h.orig Mon Dec 18 15:22:23 2006
+++ libuxre/btowc.h
@@ -0,0 +1,11 @@
+#ifndef _BTOWC_H
+#define _BTOWC_H
+
+#if defined(__INTERIX)
+#define HAVE_NO_BTOWC 1
+#include <wchar.h>
+wint_t btowc (int c);
+#endif
+
+#endif
+
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-av,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for systems having no btowc(3)
--- libuxre/bracket.c.orig Sat Oct 18 22:16:46 2003
+++ libuxre/bracket.c
@@ -31,6 +31,8 @@
#include <string.h>
#include "re.h"
+#include "btowc.h"
+
/*
* Build and match the [...] part of REs.
*
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-aw,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $
Fix for systems having btowc(3)
--- libuxre/regnfa.c.orig Sun Feb 6 16:16:14 2005
+++ libuxre/regnfa.c
@@ -35,6 +35,8 @@
typedef unsigned char Uchar;
typedef unsigned short Ushort;
+#include "btowc.h"
+
/*
* Nondeterministic Finite Automata.
*/
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-ax,v 1.1 2011/11/12 19:14:07 cheusov Exp $
Fix for clang
--- nawk/main.c.orig 2004-12-19 02:23:10.000000000 +0000
+++ nawk/main.c
@@ -66,8 +66,11 @@ int mb_cur_max; /* MB_CUR_MAX, for accel
extern const char badopen[];
-int main(int argc, unsigned char *argv[], unsigned char *envp[])
+int main(int argc, char **argv_, char **envp_)
{
+ unsigned char **argv = (unsigned char **)argv_;
+ unsigned char **envp = (unsigned char **)envp_;
+
unsigned char *fs = NULL;
char label[MAXLABEL+1]; /* Space for the catalogue label */
@@ -0,0 +1,27 @@
$NetBSD: patch-libcommon_Makefile.mk,v 1.2 2011/11/26 16:29:38 cheusov Exp $
# Fixes for build failure
--- libcommon/Makefile.mk.orig 2006-01-22 18:33:32.000000000 +0000
+++ libcommon/Makefile.mk
@@ -2,9 +2,10 @@ all: libcommon.a
OBJ = asciitype.o ib_alloc.o ib_close.o ib_free.o ib_getlin.o ib_getw.o \
ib_open.o ib_popen.o ib_read.o ib_seek.o oblok.o sfile.o strtol.o \
- getdir.o regexpr.o gmatch.o utmpx.o memalign.o pathconf.o \
+ getdir.o regexpr.o gmatch.o memalign.o pathconf.o \
sigset.o signal.o sigrelse.o sighold.o sigignore.o sigpause.o \
getopt.o pfmt.o vpfmt.o setlabel.o setuxlabel.o pfmt_label.o sysv3.o
+${OBJ} : headers
libcommon.a: headers $(OBJ)
$(AR) -rv $@ $(OBJ)
$(RANLIB) $@
@@ -21,8 +22,7 @@ headers: CHECK
fi; \
}; \
one alloca; \
- one malloc; \
- one utmpx
+ one malloc
install:
@@ -0,0 +1,20 @@
$NetBSD: patch-nawk_Makefile.mk,v 1.2 2012/01/29 12:32:48 cheusov Exp $
# Fix for make -jN
--- nawk/Makefile.mk.orig 2005-02-09 15:58:39.000000000 +0000
+++ nawk/Makefile.mk
@@ -11,11 +11,11 @@ awk_sus: awk.g.o $(OBJ) version_sus.o
awk_su3: awk.g.2001.o $(OBJ) version_su3.o
$(LD) $(LDFLAGS) awk.g.2001.o $(OBJ) version_su3.o $(LUXRE) -lm $(LCOMMON) $(LWCHAR) $(LIBS) -o awk_su3
-awk.g.c: awk.g.y
+y.tab.h awk.g.c: awk.g.y
$(YACC) -d awk.g.y
mv -f y.tab.c awk.g.c
- (echo '1i'; echo '#include <inttypes.h>'; echo '.'; echo 'w';) | \
- ed -s y.tab.h
+ awk 'NR==1 {print "#include <inttypes.h>"} {print}' y.tab.h > y.tab.h_
+ mv y.tab.h_ y.tab.h
awk.g.2001.c: awk.g.2001.y awk.g.c
$(YACC) awk.g.2001.y
@@ -0,0 +1,31 @@
$NetBSD: patch-oawk_Makefile.mk,v 1.1 2011/11/23 22:50:25 cheusov Exp $
# Fix for make -jN
--- oawk/Makefile.mk.orig 2004-10-02 18:23:20.000000000 +0000
+++ oawk/Makefile.mk
@@ -75,14 +75,14 @@ install: all
$(STRIP) $(ROOT)$(DEFBIN)/oawk
$(MANINST) -c -m 644 oawk.1 $(ROOT)$(MANDIR)/man1/oawk.1
-awk.g.o: awk.def
-awk.g.o: awk.def
-awk.lx.o: awk.def
-b.o: awk.def
-lib.o: awk.def
-main.o: awk.def
-parse.o: awk.def
-proc.o: awk.def
-proctab.o: awk.def
-run.o: awk.def
-tran.o: awk.def
+awk.g.o: awk.def awk.h
+awk.g.o: awk.def awk.h
+awk.lx.o: awk.def awk.h
+b.o: awk.def awk.h
+lib.o: awk.def awk.h
+main.o: awk.def awk.h
+parse.o: awk.def awk.h
+proc.o: awk.def awk.h
+proctab.o: awk.def awk.h
+run.o: awk.def awk.h
+tran.o: awk.def awk.h