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
+54
View File
@@ -0,0 +1,54 @@
$NetBSD: patch-af,v 1.6 2011/03/12 15:26:45 wiz Exp $
--- builtins/printf.def.orig 2010-11-23 15:02:55.000000000 +0000
+++ builtins/printf.def
@@ -90,6 +90,11 @@ $END
# undef PRIdMAX
#endif
+#if defined (_AIX) && !defined (_AIX51)
+ /* AIX defines do not work. Undefine them. */
+# undef PRIdMAX
+# undef PRIuMAX
+#endif
#if !defined (PRIdMAX)
# if HAVE_LONG_LONG
# define PRIdMAX "lld"
@@ -97,6 +102,13 @@ $END
# define PRIdMAX "ld"
# endif
#endif
+#if !defined (PRIuMAX) && defined (_AIX)
+# if HAVE_LONG_LONG
+# define PRIuMAX "llu"
+# else
+# define PRIuMAX "lu"
+# endif
+#endif
#if !defined (errno)
extern int errno;
@@ -571,7 +583,11 @@ printf_builtin (list)
p = pp = getintmax ();
if (p != pp)
{
+#if defined (_AIX) && !defined (_AIX51)
+ f = mklong (start, PRIdMAX, sizeof (intmax_t) - 2);
+#else
f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
+#endif
PF (f, pp);
}
else
@@ -598,7 +614,11 @@ printf_builtin (list)
p = pp = getuintmax ();
if (p != pp)
{
+#if defined (_AIX) && !defined (_AIX51)
+ f = mklong (start, PRIuMAX, sizeof (uintmax_t) - 2);
+#else
f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
+#endif
PF (f, pp);
}
else
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ag,v 1.2 2005/12/31 00:02:28 wiz Exp $
--- builtins/psize.c.orig 2005-07-07 14:21:32.000000000 +0200
+++ builtins/psize.c
@@ -41,10 +41,6 @@
#include "../general.h"
#include "../sig.h"
-#ifndef errno
-extern int errno;
-#endif
-
int nw;
sighandler
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ai,v 1.1 2011/02/20 14:22:15 wiz Exp $
Add MirBSD.
--- support/shobj-conf.orig Wed Oct 28 13:19:57 2009
+++ support/shobj-conf
@@ -197,7 +197,7 @@ darwin*|macosx*)
SHLIB_LIBS='-lncurses' # see if -lcurses works on MacOS X 10.1
;;
-openbsd*|netbsd*)
+openbsd*|netbsd*|mirbsd*)
SHOBJ_CFLAGS=-fPIC
SHOBJ_LD='${CC}'
SHOBJ_LDFLAGS='-shared'
+25
View File
@@ -0,0 +1,25 @@
$NetBSD: patch-aj,v 1.1 2011/02/20 14:22:15 wiz Exp $
This patch fixes the build on MirBSD and OpenBSD, where LIBINTL and
LIBICONV are incorrectly set.
--- Makefile.in.orig Wed Dec 30 18:05:16 2009
+++ Makefile.in
@@ -341,7 +341,7 @@ INTL_LIBDIR = $(dot)/$(LIBSUBDIR)/intl
INTL_ABSSRC = ${topdir}/$(INTL_LIB)
INTL_BUILDDIR = ${LIBBUILD}/intl
-INTL_LIB = @LIBINTL@
+INTL_LIB = @LTLIBINTL@
INTL_LIBRARY = $(INTL_LIBDIR)/libintl.a
INTL_DEP = @INTL_DEP@
INTL_INC = @INTL_INC@
@@ -349,7 +349,7 @@ INTL_INC = @INTL_INC@
LIBINTL_H = @LIBINTL_H@
# libiconv
-LIBICONV = @LIBICONV@
+LIBICONV = @LTLIBICONV@
# tests
LIBINTL = @LIBINTL@
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ak,v 1.1 2011/02/20 14:22:16 wiz Exp $
Add MirBSD.
--- configure.orig Tue Dec 29 13:34:27 2009
+++ configure
@@ -2192,6 +2192,7 @@ sparc-linux*) opt_bash_malloc=no ;; # sp
#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
+*-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
*-aix*) opt_bash_malloc=no ;; # AIX machines
*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
@@ -0,0 +1,17 @@
$NetBSD: patch-builtins_ulimit.def,v 1.1 2013/06/09 18:12:14 bsiegert Exp $
Add support for the "number of threads" ulimit that appeared
in NetBSD 6.99.x.
--- builtins/ulimit.def.orig 2013-06-09 17:33:51.000000000 +0000
+++ builtins/ulimit.def
@@ -140,6 +140,10 @@ extern int errno;
# define RLIMIT_FILESIZE 256
#endif
+#ifdef RLIMIT_NTHR
+# define RLIMIT_PTHREAD RLIMIT_NTHR
+#endif
+
#define RLIMIT_PIPESIZE 257
#ifdef RLIMIT_NOFILE
+31
View File
@@ -0,0 +1,31 @@
$NetBSD: patch-execute_cmd.c,v 1.1 2013/02/12 23:31:41 tcort Exp $
Allow bash to compile with JOB_CONTROL disabled.
http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-018
--- execute_cmd.c.orig Wed Feb 9 22:32:25 2011
+++ execute_cmd.c Tue Feb 12 11:48:00 2013
@@ -2196,6 +2196,7 @@
if (ignore_return && cmd)
cmd->flags |= CMD_IGNORE_RETURN;
+#if defined (JOB_CONTROL)
lastpipe_flag = 0;
begin_unwind_frame ("lastpipe-exec");
lstdin = -1;
@@ -2219,11 +2220,14 @@
}
if (prev >= 0)
add_unwind_protect (close, prev);
+#endif
exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
+#if defined (JOB_CONTROL)
if (lstdin > 0)
restore_stdin (lstdin);
+#endif
if (prev >= 0)
close (prev);
@@ -0,0 +1,37 @@
$NetBSD: patch-lib_sh_eaccess.c,v 1.1 2012/07/18 15:43:12 spz Exp $
from ftp://ftp.gnu.org/pub/gnu/bash/bash-4.2-patches/bash42-033
Bash-Release: 4.2
Patch-ID: bash42-033
Bug-Reported-by: David Leverton <levertond@googlemail.com>
Bug-Reference-ID: <4FCCE737.1060603@googlemail.com>
Bug-Reference-URL:
Bug-Description:
Bash uses a static buffer when expanding the /dev/fd prefix for the test
and conditional commands, among other uses, when it should use a dynamic
buffer to avoid buffer overflow.
--- lib/sh/eaccess.c.orig 2011-01-09 01:50:10.000000000 +0000
+++ lib/sh/eaccess.c
@@ -82,6 +82,8 @@ sh_stat (path, finfo)
const char *path;
struct stat *finfo;
{
+ static char *pbuf = 0;
+
if (*path == '\0')
{
errno = ENOENT;
@@ -106,7 +108,7 @@ sh_stat (path, finfo)
trailing slash. Make sure /dev/fd/xx really uses DEV_FD_PREFIX/xx.
On most systems, with the notable exception of linux, this is
effectively a no-op. */
- char pbuf[32];
+ pbuf = xrealloc (pbuf, sizeof (DEV_FD_PREFIX) + strlen (path + 8));
strcpy (pbuf, DEV_FD_PREFIX);
strcat (pbuf, path + 8);
return (stat (pbuf, finfo));