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

10
shells/bash/DESCR Normal file
View File

@@ -0,0 +1,10 @@
Bash is an sh-compatible shell that incorporates useful features from
the Korn shell (ksh) and C shell (csh). It is intended to conform to
the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.
It offers functional improvements over sh for both programming and
interactive use; these include command line editing, unlimited size
command history, job control, shell functions and aliases, indexed
arrays of unlimited size, and integer arithmetic in any base from two
to sixty-four. In addition, most sh scripts can be run by Bash without
modification.

109
shells/bash/Makefile Normal file
View File

@@ -0,0 +1,109 @@
# $NetBSD: Makefile,v 1.58 2013/06/09 18:12:14 bsiegert Exp $
BASH_VERSION= 4.2
DISTNAME= bash-${BASH_VERSION}
#PKGNAME= bash-${BASH_VERSION}.${BASH_PATCHLEVEL}
PKGREVISION= 3
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
ftp://ftp.cwru.edu/pub/bash/
#PATCH_SITES= ${MASTER_SITES:=bash-4.0-patches/}
#PATCHFILES+= bash40-001 bash40-002 bash40-003 bash40-004 bash40-005
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/bash/bash.html
COMMENT= The GNU Bourne Again Shell
LICENSE= gnu-gpl-v3
CONFLICTS= static-bash-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= makeinfo bison
USE_PKGLOCALEDIR= yes
TEXINFO_REQD= 4.1
GNU_CONFIGURE= yes
MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
CONFIGURE_ARGS= LOCAL_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q}
CPPFLAGS+= -DDEFAULT_PATH_VALUE="\"/usr/bin:/bin:${LOCALBASE}/bin:/usr/local/bin\""
MAKE_JOBS_SAFE= no
TEST_TARGET= test
INFO_FILES= YES # PLIST
PKG_SHELL= bin/bash
INSTALLATION_DIRS= ${PKGMANDIR}/man1
# All features enabled by default.
CONFIGURE_ARGS+= --enable-readline
CONFIGURE_ARGS+= --enable-progcomp
CONFIGURE_ARGS+= --enable-process-substitution
CONFIGURE_ARGS+= --enable-history
CONFIGURE_ARGS+= --enable-help-builtin
CONFIGURE_ARGS+= --enable-extended-glob
CONFIGURE_ARGS+= --enable-dparen-arithmetic
CONFIGURE_ARGS+= --enable-directory-stack
CONFIGURE_ARGS+= --enable-debugger
CONFIGURE_ARGS+= --enable-cond-regexp
CONFIGURE_ARGS+= --enable-alias
CONFIGURE_ARGS+= --enable-brace-expansion
CONFIGURE_ARGS+= --enable-array-variables
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.bash
PKG_SUPPORTED_OPTIONS= static
.include "../../mk/bsd.options.mk"
##
## Static link
##
.if !empty(PKG_OPTIONS:Mstatic)
CONFIGURE_ARGS+= --enable-static-link
BUILDLINK_DEPMETHOD.gettext= build
BUILDLINK_DEPMETHOD.readline= build
.endif
# Minix lacks setpgid() which is needed for job control.
# bash malloc() is also broken on Minix
.if ${OPSYS} == "Minix"
CONFIGURE_ARGS+= --disable-job-control
CONFIGURE_ARGS+= --with-bash-malloc=no
.else
CONFIGURE_ARGS+= --enable-job-control
.endif
# Use "readline" package on Darwin to avoid link erros.
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --with-installed-readline
USE_GNU_READLINE= yes
BUILDLINK_API_DEPENDS.readline+= readline>=6.0
.include "../../devel/readline/buildlink3.mk"
.endif
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) && ${OPSYS} == "NetBSD"
CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
CONFIGURE_ENV+= ac_cv_c_long_long=yes
CONFIGURE_ENV+= ac_cv_c_long_double=yes
CONFIGURE_ENV+= bash_cv_type_rlimit=yes
CONFIGURE_ENV+= bash_cv_getcwd_malloc=yes
CONFIGURE_ENV+= bash_cv_func_sigsetjmp=yes
CONFIGURE_ENV+= bash_cv_printf_a_format=yes
CONFIGURE_ENV+= bash_cv_job_control_missing=present
CONFIGURE_ENV+= bash_cv_sys_named_pipes=present
CONFIGURE_ENV+= bash_cv_unusable_rtsigs=no
CONFIGURE_ENV+= bash_cv_func_ctype_nonascii=yes
CONFIGURE_ENV+= bash_cv_wexitstatus_offset=8
.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/termcap.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

35
shells/bash/PLIST Normal file
View File

@@ -0,0 +1,35 @@
@comment $NetBSD: PLIST,v 1.6 2011/03/12 15:55:22 wiz Exp $
bin/bash
bin/bashbug
info/bash.info
man/man1/bash.1
man/man1/bashbug.1
share/locale/af/LC_MESSAGES/bash.mo
share/locale/bg/LC_MESSAGES/bash.mo
share/locale/ca/LC_MESSAGES/bash.mo
share/locale/cs/LC_MESSAGES/bash.mo
share/locale/de/LC_MESSAGES/bash.mo
share/locale/en@boldquot/LC_MESSAGES/bash.mo
share/locale/en@quot/LC_MESSAGES/bash.mo
share/locale/eo/LC_MESSAGES/bash.mo
share/locale/es/LC_MESSAGES/bash.mo
share/locale/et/LC_MESSAGES/bash.mo
share/locale/fi/LC_MESSAGES/bash.mo
share/locale/fr/LC_MESSAGES/bash.mo
share/locale/ga/LC_MESSAGES/bash.mo
share/locale/hu/LC_MESSAGES/bash.mo
share/locale/id/LC_MESSAGES/bash.mo
share/locale/ja/LC_MESSAGES/bash.mo
share/locale/lt/LC_MESSAGES/bash.mo
share/locale/nl/LC_MESSAGES/bash.mo
share/locale/pl/LC_MESSAGES/bash.mo
share/locale/pt_BR/LC_MESSAGES/bash.mo
share/locale/ro/LC_MESSAGES/bash.mo
share/locale/ru/LC_MESSAGES/bash.mo
share/locale/sk/LC_MESSAGES/bash.mo
share/locale/sv/LC_MESSAGES/bash.mo
share/locale/tr/LC_MESSAGES/bash.mo
share/locale/uk/LC_MESSAGES/bash.mo
share/locale/vi/LC_MESSAGES/bash.mo
share/locale/zh_CN/LC_MESSAGES/bash.mo
share/locale/zh_TW/LC_MESSAGES/bash.mo

13
shells/bash/distinfo Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: distinfo,v 1.27 2013/06/09 18:12:14 bsiegert Exp $
SHA1 (bash-4.2.tar.gz) = 487840ab7134eb7901fbb2e49b0ee3d22de15cb8
RMD160 (bash-4.2.tar.gz) = df7ae51783f039a1234d3b720ffcf4bfa5d09673
Size (bash-4.2.tar.gz) = 7009201 bytes
SHA1 (patch-af) = dfd1d1be3d822cfc3ae0fd21bb2bbd3e35b11f0d
SHA1 (patch-ag) = 4da0a43f6b890482affff46b18eef4be67770e48
SHA1 (patch-ai) = 26825922898567841bed0bf62a8dee3bcc50cd75
SHA1 (patch-aj) = 8b3c52c2aee9cf53ee5a9ce64ead243d0970305e
SHA1 (patch-ak) = 6dfb7195f45f81064f687a4c9febb9dcae721aa7
SHA1 (patch-builtins_ulimit.def) = d4cb59bedc6a6199f9a99a3530c99374e428baeb
SHA1 (patch-execute_cmd.c) = ce9fe5820188aa218bac74316d45cbdabadb1785
SHA1 (patch-lib_sh_eaccess.c) = 484577f09efe67f604c3fb85afdb5a58b64f5b6c

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

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

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'

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@

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

View File

@@ -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

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);

View File

@@ -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));