On Tue, 13 Jan 2004 05:03:56 +0900
Dave Thomas <dave / pragprog.com> wrote:

> Does the existing patch work, though...

It seems to work fine, with the exception that it still requires
$prefix/bin/ruby be installed in the final place. This install
target almost works:

    LD_LIBRARY_PATH=. ./ruby -Ilib $(srcdir)/bin/rdoc --all --ri-system $(srcdir)

but again we get this:

   ./lib/yaml.rb:17:in `require': No such file to load -- yaml/parser (LoadError)

I guess it's from this:

    begin
        require 'yaml/syck'
        @@parser = YAML::Syck::Parser
        @@loader = YAML::Syck::DefaultLoader
        @@emitter = YAML::Syck::Emitter
    rescue LoadError
        require 'yaml/parser'
        @@parser = YAML::Parser
        @@loader = YAML::DefaultLoader
        require 'yaml/emitter'
        @@emitter = YAML::Emitter

I'm not sure why yaml/syck isn't loading. This error occurs even when I try
to use the installation in DESTDIR:

    LD_LIBRARY_PATH=$(DESTDIR)/usr/local/lib $(DESTDIR)/usr/local/bin/ruby \
    -I $(DESTDIR)/usr/local/lib/ruby/1.9 $(srcdir)/bin/rdoc --all --ri-system $(srcdir)

So, it's almost working. If I get ruby into $(prefix) and re-run the target with
a different DESTDIR, it works fine.

Jim