aboutsummaryrefslogtreecommitdiff
path: root/lang/rubinius/files
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2014-02-23 19:21:43 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2014-02-23 19:21:43 +0000
commitdd2b4522bc73b6080bd7a7ea4a5406bd513422c0 (patch)
tree4a27d8f263e6b1d3df2d9882136a09bb0723ff1c /lang/rubinius/files
parent1e97526cecc1c510e863eec065a729ed72fc95d6 (diff)
downloadports-dd2b4522bc73b6080bd7a7ea4a5406bd513422c0.tar.gz
ports-dd2b4522bc73b6080bd7a7ea4a5406bd513422c0.zip
Notes
Diffstat (limited to 'lang/rubinius/files')
-rw-r--r--lang/rubinius/files/patch-rakelib_install.rake20
-rw-r--r--lang/rubinius/files/patch-vm_builtin_io.cpp14
2 files changed, 14 insertions, 20 deletions
diff --git a/lang/rubinius/files/patch-rakelib_install.rake b/lang/rubinius/files/patch-rakelib_install.rake
deleted file mode 100644
index ceb3500d2494..000000000000
--- a/lang/rubinius/files/patch-rakelib_install.rake
+++ /dev/null
@@ -1,20 +0,0 @@
---- rakelib/install.rake.orig 2011-03-03 17:39:38.000000000 -0800
-+++ rakelib/install.rake 2011-03-03 17:39:44.000000000 -0800
-@@ -138,17 +138,6 @@
- exe = "#{BUILD_CONFIG[:bindir]}/#{BUILD_CONFIG[:program_name]}"
- install "vm/vm", install_dir(exe), :mode => 0755, :verbose => true
-
-- # Create symlinks for common commands
-- begin
-- ["ruby", "rake", "gem", "irb", "rdoc", "ri"].each do |command|
-- name = install_dir("#{BUILD_CONFIG[:bindir]}/#{command}")
-- File.delete name if File.exists? name
-- File.symlink BUILD_CONFIG[:program_name], name
-- end
-- rescue NotImplementedError
-- # ignore
-- end
--
- STDOUT.puts <<-EOM
- --------
-
diff --git a/lang/rubinius/files/patch-vm_builtin_io.cpp b/lang/rubinius/files/patch-vm_builtin_io.cpp
new file mode 100644
index 000000000000..6757253c7895
--- /dev/null
+++ b/lang/rubinius/files/patch-vm_builtin_io.cpp
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- vm/builtin/io.cpp.orig
++++ vm/builtin/io.cpp
+@@ -165,7 +165,7 @@
+
+ // 1024 is selec't limit. If we try to set a value higher, it corrupts
+ // memory. YAY FD_SET!
+- if(descriptor >= FD_SETSIZE) return -2;
++ if(descriptor >= (int_fd_t)FD_SETSIZE) return -2;
+ highest = descriptor > highest ? descriptor : highest;
+
+ if(descriptor >= 0) FD_SET((int_fd_t)descriptor, set);