librelist archives

« back to archive

Mongrel2 v1.7 Released

Mongrel2 v1.7 Released

From:
Zed A. Shaw
Date:
2011-06-06 @ 21:17
Hey everyone, just a quick email to say that Mongrel2 v1.7 is out:

http://sheddingbikes.com/posts/1307388904.html

with SSL support, reloading working really well, and the start of
filters and config-from-anywhere modules.

Enjoy!

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Sabin Iacob
Date:
2011-06-06 @ 22:24
On 06/07/2011 12:17 AM, Zed A. Shaw wrote:
> Hey everyone, just a quick email to say that Mongrel2 v1.7 is out:
>
> http://sheddingbikes.com/posts/1307388904.html

can has options +Indexes / whatever is the equivalent on
mongrel2.org/static/downloads?

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Sabin Iacob
Date:
2011-06-06 @ 22:29
On 06/07/2011 01:24 AM, Sabin Iacob wrote:
> On 06/07/2011 12:17 AM, Zed A. Shaw wrote:
>> Hey everyone, just a quick email to say that Mongrel2 v1.7 is out:
>>
>> http://sheddingbikes.com/posts/1307388904.html
> can has options +Indexes / whatever is the equivalent on
> mongrel2.org/static/downloads?

nevermind, I made debian/watch look at sheddingbikes.com for download
links; should work as long as the link appears before "read more" :)

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Sabin Iacob
Date:
2011-06-06 @ 22:47
On 06/07/2011 01:29 AM, Sabin Iacob wrote:
> On 06/07/2011 01:24 AM, Sabin Iacob wrote:
>> On 06/07/2011 12:17 AM, Zed A. Shaw wrote:
>>> Hey everyone, just a quick email to say that Mongrel2 v1.7 is out:
>>>
>>> http://sheddingbikes.com/posts/1307388904.html
>> can has options +Indexes / whatever is the equivalent on
>> mongrel2.org/static/downloads?
> nevermind, I made debian/watch look at sheddingbikes.com for download
> links; should work as long as the link appears before "read more" :)

still talking to myself: some tests apparently fail on i386:
http://j.mp/j2Y4l0

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Zed A. Shaw
Date:
2011-06-06 @ 23:51
On Tue, Jun 07, 2011 at 01:47:28AM +0300, Sabin Iacob wrote:
> > nevermind, I made debian/watch look at sheddingbikes.com for download
> > links; should work as long as the link appears before "read more" :)
> 
> still talking to myself: some tests apparently fail on i386:
> http://j.mp/j2Y4l0
> 

So it looks like you're building with an old version of GCC *and* you
have the dev build going or you've turned off NDEBUG.  There's a few
stray debug messages that seem to be wrong, which we'll fix.  But,
unless you can get a gcc that supports %zd format it'll be hard to
adapt.

Can you confirm your gcc version for me, and also don't do your build
with the NDEBUG flag disabled, that'll make a massive developer version.

If you want -Wall do:

OPTFLAGS=-Wall make clean all

That will set it up for you.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Sabin Iacob
Date:
2011-06-07 @ 06:53
On 06/07/2011 02:51 AM, Zed A. Shaw wrote:
> So it looks like you're building with an old version of GCC *and* you
> have the dev build going or you've turned off NDEBUG.  There's a few
> stray debug messages that seem to be wrong, which we'll fix.  But,
> unless you can get a gcc that supports %zd format it'll be hard to
> adapt.
>
> Can you confirm your gcc version for me, and also don't do your build
> with the NDEBUG flag disabled, that'll make a massive developer version.

it's the default gcc in Ubuntu 10.04 LTS (the x86_64 build + tests
succeed, btw, only the 32bit version fails):

gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3


> If you want -Wall do:
>
> OPTFLAGS=-Wall make clean all

I didn't disable NDEBUG for this, I disabled it to get a -dbg package
(the build process strips the binary and stores the debug symbols in a
separate package); if stripping is not enough and there are other code
paths that are enabled by disabling NDEBUG, I'll enable it again and
ditch mongrel2-dbg, but I'd prefer not doing it (so people can install
mongrel2-dbg and get useful backtraces from gdb without installing a
full compiling rig on a production machine).

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Zed A. Shaw
Date:
2011-06-07 @ 08:00
On Tue, Jun 07, 2011 at 09:53:03AM +0300, Sabin Iacob wrote:
> it's the default gcc in Ubuntu 10.04 LTS (the x86_64 build + tests
> succeed, btw, only the 32bit version fails):
> 
> gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
> 

Ok I'll check it out.  I think I have a VM with that on it.

> > If you want -Wall do:
> >
> > OPTFLAGS=-Wall make clean all
> 
> I didn't disable NDEBUG for this, I disabled it to get a -dbg package
> (the build process strips the binary and stores the debug symbols in a
> separate package); if stripping is not enough and there are other code
> paths that are enabled by disabling NDEBUG, I'll enable it again and
> ditch mongrel2-dbg, but I'd prefer not doing it (so people can install
> mongrel2-dbg and get useful backtraces from gdb without installing a
> full compiling rig on a production machine).

You don't need to build it that way to get debugs, that's actually not
very useful except for developer builds.  Instead, add -g to OPTFLAGS
and you'll get the debug symbols.  In fact, I think they already are on.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Sabin Iacob
Date:
2011-06-07 @ 09:56
On 06/07/2011 11:00 AM, Zed A. Shaw wrote:
> On Tue, Jun 07, 2011 at 09:53:03AM +0300, Sabin Iacob wrote:
>> it's the default gcc in Ubuntu 10.04 LTS (the x86_64 build + tests
>> succeed, btw, only the 32bit version fails):
>>
>> gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
>>
> Ok I'll check it out.  I think I have a VM with that on it.


it seems the GCC that comes with Ubuntu natty / 11.04
(gcc-4.5_4.5.2-8ubuntu4) has the same problem on i386, amd64 works


>>> If you want -Wall do:
>>>
>>> OPTFLAGS=-Wall make clean all
>> I didn't disable NDEBUG for this, I disabled it to get a -dbg package
>> (the build process strips the binary and stores the debug symbols in a
>> separate package); if stripping is not enough and there are other code
>> paths that are enabled by disabling NDEBUG, I'll enable it again and
>> ditch mongrel2-dbg, but I'd prefer not doing it (so people can install
>> mongrel2-dbg and get useful backtraces from gdb without installing a
>> full compiling rig on a production machine).
> You don't need to build it that way to get debugs, that's actually not
> very useful except for developer builds.  Instead, add -g to OPTFLAGS
> and you'll get the debug symbols.  In fact, I think they already are on.

hmm, not sure why I had the impression it won't work when I built the
first packages, but you are right

I'm not using make dev any more, and packages for amd64 (which I assume
is the most common architecture for servers nowadays) are up and can be
downloaded by hand, not sure why they are not properly published to the
archive yet

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Sabin Iacob
Date:
2011-06-07 @ 10:08
On 06/07/2011 12:56 PM, Sabin Iacob wrote:
> I'm not using make dev any more, and packages for amd64 (which I assume
> is the most common architecture for servers nowadays) are up and can be
> downloaded by hand, not sure why they are not properly published to the
> archive yet

nevermind, PEBKAC, they are published and working

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Zed A. Shaw
Date:
2011-06-07 @ 18:14
On Tue, Jun 07, 2011 at 01:08:47PM +0300, Sabin Iacob wrote:
> On 06/07/2011 12:56 PM, Sabin Iacob wrote:
> > I'm not using make dev any more, and packages for amd64 (which I assume
> > is the most common architecture for servers nowadays) are up and can be
> > downloaded by hand, not sure why they are not properly published to the
> > archive yet
> 
> nevermind, PEBKAC, they are published and working

Alright, and the latest develop branch has fixes for a lot of those
errors.  Not sure why -Wall on the regular make build doesn't show these
but oh well.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Dalton Barreto
Date:
2011-06-06 @ 23:08
2011/6/6 Sabin Iacob <iacobs@m0n5t3r.info>:
> On 06/07/2011 01:29 AM, Sabin Iacob wrote:
>> On 06/07/2011 01:24 AM, Sabin Iacob wrote:
>>> On 06/07/2011 12:17 AM, Zed A. Shaw wrote:
>>>> Hey everyone, just a quick email to say that Mongrel2 v1.7 is out:
>>>>
>>>> http://sheddingbikes.com/posts/1307388904.html
>>> can has options +Indexes / whatever is the equivalent on
>>> mongrel2.org/static/downloads?
>> nevermind, I made debian/watch look at sheddingbikes.com for download
>> links; should work as long as the link appears before "read more" :)
>
> still talking to myself: some tests apparently fail on i386:
> http://j.mp/j2Y4l0
>

The test brakes because mongrel2 is generating the Last-Modified
header with the value of "(null)"

I will take a look.

-- 
Dalton Barreto
http://daltonmatos.wordpress.com
http://wsgid.com

Re: [mongrel2] Mongrel2 v1.7 Released

From:
Dalton Barreto
Date:
2011-06-06 @ 23:28
2011/6/6 Dalton Barreto <daltonmatos@gmail.com>:
> 2011/6/6 Sabin Iacob <iacobs@m0n5t3r.info>:
>> On 06/07/2011 01:29 AM, Sabin Iacob wrote:
>>> On 06/07/2011 01:24 AM, Sabin Iacob wrote:
>>>> On 06/07/2011 12:17 AM, Zed A. Shaw wrote:
>>>>> Hey everyone, just a quick email to say that Mongrel2 v1.7 is out:
>>>>>
>>>>> http://sheddingbikes.com/posts/1307388904.html
>>>> can has options +Indexes / whatever is the equivalent on
>>>> mongrel2.org/static/downloads?
>>> nevermind, I made debian/watch look at sheddingbikes.com for download
>>> links; should work as long as the link appears before "read more" :)
>>
>> still talking to myself: some tests apparently fail on i386:
>> http://j.mp/j2Y4l0
>>
>
> The test brakes because mongrel2 is generating the Last-Modified
> header with the value of "(null)"
>
> I will take a look.
>

Changing the format string from %zd to %llu solves the problem.

This change is for RESPONSE_FORMAT constant in dir.c

Just pushed this fix to the develop branch.

Zed,

if you want I can merge this to the master branch so you can rebuild
the release tar.bz.

-- 
Dalton Barreto
http://daltonmatos.wordpress.com
http://wsgid.com