Project

General

Profile

Feature #5097 » ruby193.diff

patches used to build 1.9.3 on OpenBSD, take 2 - jeremyevans0 (Jeremy Evans), 07/28/2011 09:50 AM

View differences:

bootstraptest/test_thread.rb Wed Jul 27 16:38:28 2011
end
}
}
unless /openbsd/ =~ RUBY_PLATFORM
assert_equal %q{100}, %q{
100.times{
Thread.new{loop{Thread.pass}}
}
}
end
assert_equal %q{ok}, %q{
Thread.new{
:ok
common.mk Wed Jul 27 14:12:54 2011
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO1 = $(V:1=@)
ECHO = $(ECHO1:0=@echo)
RUBYLIB = -
configure.in Wed Jul 27 13:31:05 2011
[c], [],
[root], [],
[c_r], [MAINLIBS="-pthread $MAINLIBS"],
[LIBS="-l$pthread_lib $LIBS"])
[AS_CASE(["$target_os"],
[openbsd*], [LIBS="-pthread $LIBS"],
[LIBS="-l$pthread_lib $LIBS"])])
else
AC_MSG_WARN("Don't know how to find pthread library on your system -- thread support disabled")
fi
enc/Makefile.in Wed Jul 27 14:18:59 2011
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO1 = $(V:1=@)
ECHO = $(ECHO1:0=@echo)
encsrcdir = @srcdir@
ext/extmk.rb Wed Jul 27 14:25:21 2011
mf.puts "V = 0"
mf.puts "Q1 = $(V:1=)"
mf.puts "Q = $(Q1:0=@)"
mf.puts "ECHO1 = $(V:1=@:)"
mf.puts "ECHO1 = $(V:1=@)"
mf.puts "ECHO = $(ECHO1:0=@echo)"
mf.puts "MFLAGS = -$(MAKEFLAGS)" if $nmake
mf.puts
ext/socket/lib/socket.rb Wed Jul 27 16:32:37 2011
next if !a.ipv4?
ip_list << Addrinfo.new(a.to_sockaddr, :INET, :DGRAM, 0);
}
elsif ai.ipv6? && ai.ip_address == "::" && !ipv6_recvpktinfo
elsif ai.ipv6? && ai.ip_address == "::"
local_addrs.each {|a|
next if !a.ipv6?
ip_list << Addrinfo.new(a.to_sockaddr, :INET6, :DGRAM, 0);
......
end
end
pktinfo_sockets = {}
sockets.each {|s|
ai = s.local_address
if ipv6_recvpktinfo && ai.ipv6? && ai.ip_address == "::"
s.setsockopt(:IPV6, ipv6_recvpktinfo, 1)
pktinfo_sockets[s] = true
end
}
lib/mkmf.rb Wed Jul 27 14:25:40 2011
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO1 = $(V:1=@)
ECHO = $(ECHO1:0=@echo)
#### Start of system configuration section. ####
lib/test/unit.rb Wed Jul 27 16:04:54 2011
end
end
end
@workers.each do |worker|
begin
timeout(1) do
worker.puts "quit"
if @workers
@workers.each do |worker|
begin
timeout(1) do
worker.puts "quit"
end
rescue Errno::EPIPE
rescue Timeout::Error
end
rescue Errno::EPIPE
rescue Timeout::Error
worker.close
end
worker.close
end
begin
timeout(0.2*@workers.size) do
Process.waitall
if @workers
timeout(0.2*@workers.size) do
Process.waitall
end
end
rescue Timeout::Error
@workers.each do |worker|
signal.c Wed Jul 27 16:37:16 2011
newSS.ss_sp = th->altstack = malloc(ALT_STACK_SIZE);
if (newSS.ss_sp == NULL)
/* should handle error */
rb_bug("rb_register_sigaltstack. malloc error\n");
return;
newSS.ss_size = ALT_STACK_SIZE;
newSS.ss_flags = 0;
test/rake/helper.rb Wed Jul 27 15:48:16 2011
rakefile <<-VERBOSE
task :standalone_verbose_true do
verbose true
sh "ruby -e '0'"
sh "#{RUBY} -e '0'"
end
task :standalone_verbose_false do
verbose false
sh "ruby -e '0'"
sh "#{RUBY} -e '0'"
end
task :inline_verbose_default do
sh "ruby -e '0'"
sh "#{RUBY} -e '0'"
end
task :inline_verbose_false do
sh "ruby -e '0'", :verbose => false
sh "#{RUBY} -e '0'", :verbose => false
end
task :inline_verbose_true do
sh "ruby -e '0'", :verbose => true
sh "#{RUBY} -e '0'", :verbose => true
end
task :block_verbose_true do
verbose(true) do
sh "ruby -e '0'"
sh "#{RUBY} -e '0'"
end
end
task :block_verbose_false do
verbose(false) do
sh "ruby -e '0'"
sh "#{RUBY} -e '0'"
end
end
VERBOSE
test/rake/test_rake_functional.rb Wed Jul 27 15:49:18 2011
rake "inline_verbose_default"
assert_match(/ruby -e/, @err)
assert_match(/#{RUBY} -e/, @err)
end
def test_inline_verbose_true_should_show_command
......
rake "inline_verbose_true"
assert_match(/ruby -e/, @err)
assert_match(/#{RUBY} -e/, @err)
end
def test_inline_verbose_false_should_not_show_command
......
rake "inline_verbose_false"
refute_match(/ruby -e/, @err)
refute_match(/#{RUBY} -e/, @err)
end
def test_block_verbose_false_should_not_show_command
......
rake "block_verbose_false"
refute_match(/ruby -e/, @err)
refute_match(/#{RUBY} -e/, @err)
end
def test_block_verbose_true_should_show_command
......
rake "block_verbose_true"
assert_match(/ruby -e/, @err)
assert_match(/#{RUBY} -e/, @err)
end
def test_standalone_verbose_true_should_show_command
......
rake "standalone_verbose_true"
assert_match(/ruby -e/, @err)
assert_match(/#{RUBY} -e/, @err)
end
def test_standalone_verbose_false_should_not_show_command
......
rake "standalone_verbose_false"
refute_match(/ruby -e/, @err)
refute_match(/#{RUBY} -e/, @err)
end
def test_dry_run
test/ruby/test_process.rb Wed Jul 27 17:17:00 2011
write_file 's', <<-"End"
result = 1
begin
Process.setrlimit(Process::RLIMIT_NOFILE, 0)
Process.setrlimit(Process::RLIMIT_NOFILE, 1)
rescue Errno::EINVAL
result = 0
end
(4-4/7)