Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Nov 2007 23:09:37 -0500
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Marcin Wisnicki" <mwisnicki+freebsd@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: ruby18, -pthreads, deep recursion
Message-ID:  <op.t0666bps9aq2h7@mezz.mezzweb.com>
In-Reply-To: <op.t06t8n0p9aq2h7@mezz.mezzweb.com>
References:  <472A3F63.9010500@zomo.co.uk> <200711012202.42025.josh@tcbug.org> <fgfjnj$ump$1@ger.gmane.org> <op.t06t8n0p9aq2h7@mezz.mezzweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 02 Nov 2007 18:30:13 -0500, Jeremy Messenger <mezz7@cox.net> wro=
te:

> On Fri, 02 Nov 2007 11:37:07 -0500, Marcin Wisnicki  =

> <mwisnicki+freebsd@gmail.com> wrote:
>
>> On Thu, 01 Nov 2007 22:02:38 -0500, Josh Paetzel wrote:
>>> On Thursday 01 November 2007 04:04:35 pm lemon wrote:
>>>> [0] http://lists.freebsd.org/pipermail/freebsd-ports/2005-
>> January/019352.html
>>>>     http://lists.freebsd.org/pipermail/freebsd-ports/2006-
>> March/030691.html
>>>>
>>> If it's any consolation, I've emailed the ruby maintainer a few time=
s
>>> about why disabling threads in the port's menu doesn't *really* disa=
ble
>>> threads and have never gotten a reply.
>>
>> As explained in abovementioned links, some of ruby extensions need
>> pthreads but since shared modules on freebsd are never linked with
>> threading libraries (i think it might no longer be true in releng7/
>> current), you have no other choice than to link ruby interpreter bina=
ry
>> with libpthread.
>
> I must be behind with -pthread stuff for FreeBSD 7.x/-CURRENT. If it's=
  =

> doesn't need -pthread any longer, then it's awsome. We can add a new  =

> check of if system is below than 7.x then force add -pthread in ruby  =

> port. It will need a lot of test first before maintainer or someone to=
  =

> commit this change. I don't mind to test on ruby-gtk2/ruby-gnome2 in  =

> RELENG_7 by remove -pthread from ruby port.

Yep, ruby-gtk2/ruby-gnome2 work great with ruby compiled without -pthrea=
d  =

on RELENG_7. Nice! My suggest of add a new check should make everybody  =

more happy.

% ldd /usr/local/bin/ruby
/usr/local/bin/ruby:
         libruby18.so.18 =3D> /usr/local/lib/libruby18.so.18 (0x2807d000=
)
         libcrypt.so.4 =3D> /lib/libcrypt.so.4 (0x28154000)
         libm.so.5 =3D> /lib/libm.so.5 (0x2816d000)
         libc.so.7 =3D> /lib/libc.so.7 (0x28182000)

% ruby /usr/local/share/examples/ruby18/gtk2/misc/filechooser.rb
[...no crash...]
% ruby /usr/local/share/examples/ruby18/gtk2/misc/fileselection.rb
[...no crash...]

Cheers,
Mezz

> Cheers,
> Mezz


-- =

mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.t0666bps9aq2h7>