[DRE-maint] Mongrel - I'd like it for Ubuntu

Filipe filipe at icewall.org
Tue Jul 17 03:44:58 UTC 2007


On Mon, 16 Jul 2007, Gunnar Wolf wrote:

> Filipe dijo [Sun, Jul 15, 2007 at 05:20:07PM -0300]:
>>> I was wondering how complete the Mongrel package is. There doesn't
>>> seem to be a lot happening to it at the moment and it seems to do the
>>> job.
>>>
>>> Is there anything that is stopping it releasing into the wild? It's
>>> just that the feature freeze for Ubuntu Gutsy is just around the
>>> corner and it would be really useful if Mongrel was in there.
>>>
>> Hum... well... the only thing that is stopping it releasing into
>> the wild is the lack of time to my uploaders revise and upload it :D
>>
>> Let's see if they can do it in the beginning of this week, then ubuntu
>> Gutsy can ship it too.
>
> Umh... Didn't I fall over you with a couple of questions? ;-)
>
> Cannot really check it right now (as I'm on a contractor's office),
> but points I remember were:
>
> - It still does not integrate decently with Rails' "script/server"
>  script:
>
> $ ./script/server
> => Booting Mongrel (use 'script/server webrick' to force WEBrick)
> => Rails application starting on http://0.0.0.0:3000
> => Call with -d to detach
> => Ctrl-C to shutdown server
> Exiting
> ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load': no such file to load -- mongrel_rails (MissingSourceFile)
> 											   from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load'
> 											   from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
> 											   from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load'
> 											   from ./script/../config/../vendor/rails/railties/lib/commands/servers/mongrel.rb:60
> 											   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
> 											   from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
> 											   from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
> 											   from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
> 											   from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
> 											   from ./script/../config/../vendor/rails/railties/lib/commands/server.rb:39
> 											   from ./script/server:3:in `require'
> 											   from ./script/server:3

Yeah, now that you mentioned it I remember :D

Trying this in my sid chroot.. hum, the same problem. goooooood
But if I run mongrel_rails start it works. Hum... seems more like a rails
issue.

Yeah, found it! rails package has the following file:
/usr/share/rails/railties/lib/commands/servers/mongrel.rb

This file looks for a file called mongrel_rails. If I change this line from:
load("mongrel_rails") to load("/usr/bin/mongrel_rails"), ./script/server works fine.

So, rails is looking for mongrel_rails inside directory
/usr/lib/ruby/1.8, not in the bin directory. Why? don't know. Maybe
some rubygems specific thing.

What I can do is: move file mongrel_rails to /usr/lib/ruby/1.8 and
symlink it to /usr/bin directory, so it solves this problem. what about
it? Is there any standard debian way to do this?

>
>
> - It also lacks any kind of init handling - or is that supposed to go
>  into mongrel-cluster (which I have not reviewed yet)? Where are you
>  taking mongrel-cluster from? (IIRC, you said you were splitting the
>  source between both) I want to diverge as little as possible from
>  upstream, otherwise it can become hellish in the long run. I even
>  think we were not so bad off with the Gem unpacker I had set up in a
>  previous iteration :)

Upstream does not have a init script. Mongrel cluster is hosted at the
same address, but t is a different software. So.. I'll create a
different package for this software :D

Cheers,

filipe {
  @             icewall.org
  GPG        1024D/A6BA423E
  Jabber  lautert at jabber.ru
}





More information about the Pkg-ruby-extras-maintainers mailing list