From: Hugh Sasse Date: 2007-03-07T00:46:03+09:00 Subject: Re: Ruby 1.8.6 preview3 has been released On Tue, 6 Mar 2007, Nobuyoshi Nakada wrote: > Hi, > > At Tue, 6 Mar 2007 03:45:00 +0900, > Hugh Sasse wrote in [ruby-core:10509]: > > > lib/rdoc/ri/ri_paths.rb apparently requires rubygems, so try > > > > > > make check TESTS='-x rdoc' > > > > Splendid! A lovely sprinkling of dots.... > > Then built-in default load path seems to be removed during the > test. gmake check succeeds with no complaints when I apply this patch to 1.8.6-preview-3 The openssl bit shows up as gmake[1]: Leaving directory `/export/home/Scratch/hgs/ruby-1.8.6-preview3/ext/nkf' compiling openssl sh: gnome-config: not found compiling pty gmake[1]: Entering directory `/export/home/Scratch/hgs/ruby-1.8.6-preview3/ext/pty' Thank you, Hugh > > > Index: runruby.rb > =================================================================== > --- runruby.rb (revision 11982) > +++ runruby.rb (working copy) > @@ -1,4 +1,5 @@ > #!./miniruby > > +pure = true > while arg = ARGV[0] > break ARGV.shift if arg == '--' > @@ -13,4 +14,8 @@ while arg = ARGV[0] > when re =~ "extout" > extout = value > + when re =~ "pure" > + pure = (value != "no") > + when re =~ "debugger" > + debugger = value ? (value.split unless value == "no") : %w"gdb --args" > else > break > @@ -26,5 +31,5 @@ $:.unshift(abs_archdir) > > require 'rbconfig' > -config = Config::CONFIG > +config = RbConfig::CONFIG > > ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT']) > @@ -33,14 +38,15 @@ unless File.exist?(ruby) > end > > -libs = [abs_archdir, File.expand_path("lib", srcdir)] > +libs = [abs_archdir] > if extout > abs_extout = File.expand_path(extout) > libs << File.expand_path("common", abs_extout) << File.expand_path(RUBY_PLATFORM, abs_extout) > end > +libs << File.expand_path("lib", srcdir) > config["bindir"] = abs_archdir > ENV["RUBY"] = File.expand_path(ruby) > ENV["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR) > > -if e = ENV["RUBYLIB"] > +if !pure and e = ENV["RUBYLIB"] > libs |= e.split(File::PATH_SEPARATOR) > end > @@ -56,4 +62,14 @@ if File.file?(libruby_so) > end > end > +begin > + open("puretest.rb", IO::EXCL|IO::CREAT|IO::WRONLY) do |f| > + f.puts('$LOAD_PATH.replace(ENV["RUBYLIB"].split(File::PATH_SEPARATOR))') > + end > +rescue Errno::EEXIST > +end > > -exec ruby, *ARGV > +cmd = [ruby] > +cmd << "-rpuretest.rb" if pure > +cmd.concat(ARGV) > +cmd.unshift(*debugger) if debugger > +exec(*cmd) > > > -- > Nobu Nakada > >