aboutsummaryrefslogtreecommitdiff
path: root/lang/ruby19/files
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2008-04-06 08:58:21 +0000
committerStanislav Sedov <stas@FreeBSD.org>2008-04-06 08:58:21 +0000
commitfae8e0f615b1dfcff35249a7a11ebfba7391bc56 (patch)
treecbba292aa57c0d2e7bb423ca0366362b198eec85 /lang/ruby19/files
parent090dbb7b77d15ec9d072089f51c17e73d6e22f59 (diff)
downloadports-fae8e0f615b1dfcff35249a7a11ebfba7391bc56.tar.gz
ports-fae8e0f615b1dfcff35249a7a11ebfba7391bc56.zip
Notes
Diffstat (limited to 'lang/ruby19/files')
-rw-r--r--lang/ruby19/files/patch-configure11
-rw-r--r--lang/ruby19/files/patch-io.c20
-rw-r--r--lang/ruby19/files/patch-lib_mkmf.rb11
-rw-r--r--lang/ruby19/files/patch-mkconfig.rb11
4 files changed, 53 insertions, 0 deletions
diff --git a/lang/ruby19/files/patch-configure b/lang/ruby19/files/patch-configure
new file mode 100644
index 000000000000..f7d79075f0d5
--- /dev/null
+++ b/lang/ruby19/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Thu Jan 17 15:14:30 2008
++++ configure Thu Jan 17 15:15:00 2008
+@@ -18065,7 +18065,7 @@
+
+
+ if test x"$enable_pthread" = xyes; then
+- for pthread_lib in thr pthread pthreads c c_r; do
++ for pthread_lib in pthread thr pthreads c c_r; do
+ as_ac_Lib=`echo "ac_cv_lib_$pthread_lib''_pthread_kill" | $as_tr_sh`
+ { echo "$as_me:$LINENO: checking for pthread_kill in -l$pthread_lib" >&5
+ echo $ECHO_N "checking for pthread_kill in -l$pthread_lib... $ECHO_C" >&6; }
diff --git a/lang/ruby19/files/patch-io.c b/lang/ruby19/files/patch-io.c
new file mode 100644
index 000000000000..8765d8119090
--- /dev/null
+++ b/lang/ruby19/files/patch-io.c
@@ -0,0 +1,20 @@
+--- io.c.orig 2007-12-28 02:17:32.000000000 +0300
++++ io.c 2007-12-28 02:17:58.000000000 +0300
+@@ -5324,7 +5324,7 @@
+
+ #if !defined(MSDOS) && !defined(__human68k__)
+ static int
+-io_cntl(int fd, int cmd, long narg, int io_p)
++io_cntl(int fd, unsigned long cmd, long narg, int io_p)
+ {
+ int retval;
+
+@@ -5352,7 +5352,7 @@
+ rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
+ {
+ #if !defined(MSDOS) && !defined(__human68k__)
+- int cmd = NUM2ULONG(req);
++ unsigned long cmd = NUM2ULONG(req);
+ rb_io_t *fptr;
+ long len = 0;
+ long narg = 0;
diff --git a/lang/ruby19/files/patch-lib_mkmf.rb b/lang/ruby19/files/patch-lib_mkmf.rb
new file mode 100644
index 000000000000..1b9d18fb9aa4
--- /dev/null
+++ b/lang/ruby19/files/patch-lib_mkmf.rb
@@ -0,0 +1,11 @@
+--- lib/mkmf.rb.orig 2008-01-03 21:11:38.000000000 +0300
++++ lib/mkmf.rb 2008-01-03 21:11:55.000000000 +0300
+@@ -148,7 +148,7 @@
+ path = File.expand_path($0)
+ $extmk = path[0, topdir.size+1] == topdir+"/" && %r"\A(ext|enc|tool)\z" =~ File.dirname(path[topdir.size+1..-1])
+ if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
+- $topdir = $hdrdir
++ $topdir = $hdrdir + "/" + "#{CONFIG['arch']}/ruby/"
+ $top_srcdir = $hdrdir
+ $arch_hdrdir = $hdrdir + "/$(arch)"
+ elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir) + "/include") + "/ruby.h") and
diff --git a/lang/ruby19/files/patch-mkconfig.rb b/lang/ruby19/files/patch-mkconfig.rb
new file mode 100644
index 000000000000..fade6d89e2ab
--- /dev/null
+++ b/lang/ruby19/files/patch-mkconfig.rb
@@ -0,0 +1,11 @@
+--- mkconfig.rb.orig 2007-12-28 02:40:14.000000000 +0300
++++ mkconfig.rb 2007-12-28 02:40:25.000000000 +0300
+@@ -138,7 +138,7 @@
+ print(*v_fast)
+ print(*v_others)
+ print <<EOS
+- CONFIG["ruby_version"] = "$(MAJOR).$(MINOR).$(TEENY)"
++ CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
+ CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
+ CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
+ CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"