Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Hamish D <dmishd@gmail.com>
To: sup-devel@rubyforge.org
Subject: [sup-devel] trouble running git version
Date: Sat, 9 Oct 2010 18:41:01 +0100	[thread overview]
Message-ID: <AANLkTik08+b5j3US5-h5+WLkUOsbFxueqyvDfZ8fA=Gt@mail.gmail.com> (raw)

Hello

I'm cloned the git repository, and I've even written a patch, but it's
untested as I don't seem to be able to run a development version. The
error I get is:

$ ruby -Ilib -Ilib/sup -w bin/sup
./lib/sup/thread.rb:256: undefined method `bool_reader' for
Redwood::ThreadSet:Class (NoMethodError)
       from /usr/lib/ruby/1.8/rubygems.rb:11:in `require'
       from /usr/lib/ruby/1.8/rubygems.rb:11
       from bin/sup:3:in `require'
       from bin/sup:3

bool_reader does exist in lib/sup/util.rb

I am running Ubuntu (10.10/maverick) and have the sup-mail package
installed. The installed sup works fine.

$ ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]

I'm wondering if my ruby paths are part of the problem. You might have
noticed that I specified -I lib -I lib/sup above. If I miss out the
second include I get:

$ ruby -Ilib  bin/sup
/usr/lib/ruby/1.8/sup/poll.rb:31: undefined method `[]' for
nil:NilClass (NoMethodError)
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from ./lib/sup.rb:341
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from bin/sup:15

Here ruby has picked up the sup/poll.rb from the installed version
rather than the checked out version. Adding -w to this version gives a
few warnings that I don't get when using -Isup/lib:

$ ruby -Ilib  -w bin/sup
./lib/sup/util.rb:316: warning: `&' interpreted as argument prefix
./lib/sup/util.rb:19: warning: method redefined; discarding old gen_lock_id
./lib/sup/util.rb:30: warning: method redefined; discarding old dump_lock_id
./lib/sup/message-chunks.rb:36: warning: method redefined; discarding
old make_tmpname
./lib/sup/message.rb:285: warning: `&' interpreted as argument prefix
./lib/sup/index.rb:553: warning: `&' interpreted as argument prefix
/usr/lib/ruby/1.8/chronic/repeaters/repeater_month_name.rb:13:
warning: useless use of > in void context
/usr/lib/ruby/1.8/chronic/repeaters/repeater_month_name.rb:19:
warning: useless use of > in void context
/usr/lib/ruby/1.8/chronic/repeaters/repeater_month_name.rb:25:
warning: useless use of < in void context
/usr/lib/ruby/1.8/sup/poll.rb:31: warning: global variable `$config'
not initialized
/usr/lib/ruby/1.8/sup/poll.rb:31: undefined method `[]' for
nil:NilClass (NoMethodError)
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from ./lib/sup.rb:341
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from bin/sup:15

I've looked at the code, but the bool_reader is something messing
about with modules and classes at a deep-ish level and is beyond my
ruby understanding.

Any ideas appreciated.
Hamish
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


             reply	other threads:[~2010-10-09 17:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-09 17:41 Hamish D [this message]
2010-10-09 18:07 ` Hamish D

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTik08+b5j3US5-h5+WLkUOsbFxueqyvDfZ8fA=Gt@mail.gmail.com' \
    --to=dmishd@gmail.com \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox