summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2013-06-09 18:12:14 +0000
committerbsiegert <bsiegert@pkgsrc.org>2013-06-09 18:12:14 +0000
commit8f37e5c3a4469b5673eaafba27aeed4a8025a4bb (patch)
tree01da29a4e721fd5ea1aa2334be378dcd804e6c81 /shells
parent4947ff38bf46177bba53d75b2b33e6fa56dfd549 (diff)
downloadpkgsrc-8f37e5c3a4469b5673eaafba27aeed4a8025a4bb.tar.gz
Add support for RLIMIT_NTHR (number of threads) that appears in NetBSD
6.99.x. This uses "ulimit -T" as in Linux, not "-r" as in the other shells on NetBSD. Bump pkgrevision.
Diffstat (limited to 'shells')
-rw-r--r--shells/bash/Makefile4
-rw-r--r--shells/bash/distinfo3
-rw-r--r--shells/bash/patches/patch-builtins_ulimit.def17
3 files changed, 21 insertions, 3 deletions
diff --git a/shells/bash/Makefile b/shells/bash/Makefile
index 35711e955d8..80ca41ae0c9 100644
--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.57 2013/05/10 00:42:41 riastradh Exp $
+# $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= 2
+PKGREVISION= 3
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
ftp://ftp.cwru.edu/pub/bash/
diff --git a/shells/bash/distinfo b/shells/bash/distinfo
index 2c799e7d390..c4df7975ace 100644
--- a/shells/bash/distinfo
+++ b/shells/bash/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2013/02/12 23:31:40 tcort Exp $
+$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
@@ -8,5 +8,6 @@ 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
diff --git a/shells/bash/patches/patch-builtins_ulimit.def b/shells/bash/patches/patch-builtins_ulimit.def
new file mode 100644
index 00000000000..6b383eb1b12
--- /dev/null
+++ b/shells/bash/patches/patch-builtins_ulimit.def
@@ -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