summaryrefslogtreecommitdiff
path: root/lang/ruby19-base
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2011-02-07 11:15:28 +0000
committertaca <taca@pkgsrc.org>2011-02-07 11:15:28 +0000
commit8d79d06c6be7075ad9d8cf3dda87c625fc54d553 (patch)
tree5a7622bb730aa1def62b2ec5392416825e04e035 /lang/ruby19-base
parent89d9fe642e82ecc074ce7a19d4efaab4e96e07af (diff)
downloadpkgsrc-8d79d06c6be7075ad9d8cf3dda87c625fc54d553.tar.gz
Add a patch from FreeBSD's port and it fixes runtime problem
on DragonFly, too. The patch was provided by Rumko via private mail. Bump PKGREVISION.
Diffstat (limited to 'lang/ruby19-base')
-rw-r--r--lang/ruby19-base/Makefile3
-rw-r--r--lang/ruby19-base/distinfo4
-rw-r--r--lang/ruby19-base/patches/patch-as15
3 files changed, 17 insertions, 5 deletions
diff --git a/lang/ruby19-base/Makefile b/lang/ruby19-base/Makefile
index 67348219832..ff482383225 100644
--- a/lang/ruby19-base/Makefile
+++ b/lang/ruby19-base/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.5 2010/12/26 12:33:16 taca Exp $
+# $NetBSD: Makefile,v 1.6 2011/02/07 11:15:28 taca Exp $
#
DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_SUFFIX}
+PKGREVISION= 1
CATEGORIES= lang ruby
MASTER_SITES= ${MASTER_SITE_RUBY}
#PKGREVISION=
diff --git a/lang/ruby19-base/distinfo b/lang/ruby19-base/distinfo
index 025a4257efe..46861385c1e 100644
--- a/lang/ruby19-base/distinfo
+++ b/lang/ruby19-base/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2010/12/26 12:33:16 taca Exp $
+$NetBSD: distinfo,v 1.3 2011/02/07 11:15:28 taca Exp $
SHA1 (ruby-1.9.2-p136.tar.bz2) = 3f9023d00be44104d2fef485843f123bb6de6c37
RMD160 (ruby-1.9.2-p136.tar.bz2) = 91fec5fc667035b5d281a55c268b79c71b4c1277
@@ -21,6 +21,6 @@ SHA1 (patch-ao) = 32ba4bd0eccd849f7294bc60a66d181966e472b9
SHA1 (patch-ap) = 1fdb7563c1ee43466f47a2a98bbdc6a242a84f0f
SHA1 (patch-aq) = 740e5231beaa1e42f464f2ec7b52c3ed69bb5f39
SHA1 (patch-ar) = 8a4b8ae18f9bdafc1bfbbd9ec62d18caf890571e
-SHA1 (patch-as) = 468683d6ac7a7330a2b2bcb19bc55cbf800781c6
+SHA1 (patch-as) = 2005d2b5ca10d79188e8615383b881d5c9dfb616
SHA1 (patch-at) = 532eebfda565d78b9d7ab572b7d8539933e431a3
SHA1 (patch-au) = 45073c6d3461ee181e89228beb088d161af3d735
diff --git a/lang/ruby19-base/patches/patch-as b/lang/ruby19-base/patches/patch-as
index 5e023ec0f18..91b0ff03980 100644
--- a/lang/ruby19-base/patches/patch-as
+++ b/lang/ruby19-base/patches/patch-as
@@ -1,6 +1,8 @@
-$NetBSD: patch-as,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+$NetBSD: patch-as,v 1.2 2011/02/07 11:15:28 taca Exp $
-Handle 64bit size of time_t.
+* Handle 64bit size of time_t.
+* On FreeBSD and DragonFly PTHREAD_STACK_MIN is too small. Taken from
+ FreeBSD ports
--- thread_pthread.c.orig 2010-07-22 13:13:57.000000000 +0000
+++ thread_pthread.c
@@ -37,3 +39,12 @@ Handle 64bit size of time_t.
r = pthread_cond_timedwait(&th->native_thread_data.sleep_cond,
&th->interrupt_lock, &ts);
if (r && r != ETIMEDOUT) rb_bug_errno("pthread_cond_timedwait", r);
+@@ -822,7 +828,7 @@
+ int err;
+
+ pthread_attr_init(&attr);
+-#ifdef PTHREAD_STACK_MIN
++#if defined(PTHREAD_STACK_MIN) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ pthread_attr_setstacksize(&attr,
+ PTHREAD_STACK_MIN + (THREAD_DEBUG ? BUFSIZ : 0));
+ #endif