cvs commit: ports/Mk bsd.ruby.mk ports/lang/ruby18 Makefile distinfo pkg-plist ports/lang/ruby18/files patch-cgi.rb ports/x11-toolkits/ruby-tk pkg-plist

Jeremy Messenger mezz7 at cox.net
Sun Dec 26 14:54:03 PST 2004


On Thu, 23 Dec 2004 15:18:05 -0600, Jeremy Messenger <mezz7 at cox.net> wrote:

> On Fri, 24 Dec 2004 06:02:44 +0900, Akinori MUSHA <knu at iDaemons.org>  
> wrote:
>
>> At Thu, 23 Dec 2004 14:41:45 -0600,
>> Jeremy Messenger wrote:
>>> On Thu, 23 Dec 2004 20:30:10 +0000 (UTC), Akinori MUSHA
>>> <knu at FreeBSD.org>  wrote:
>>>
>>> > knu         2004-12-23 20:30:09 UTC
>>> >
>>> >   FreeBSD ports repository
>>> >
>>> >   Modified files:
>>> >     Mk                   bsd.ruby.mk
>>> >     lang/ruby18          Makefile distinfo pkg-plist
>>> >     x11-toolkits/ruby-tk pkg-plist
>>> >   Removed files:
>>> >     lang/ruby18/files    patch-cgi.rb
>>> >   Log:
>>> >   Update lang/ruby18 to 1.8.2-preview4.
>>> >  * Please upgrade sysutils/portupgrade prior to this one, or pkgdb(1)
>>> >     may coredump with a double free() problem from a misuse of the DL
>>> >     module.  In that case, reinstall sysutils/portupgrade manually.
>>>
>>> I didn't check those yet, but have you add '-pthread' as default yet?
>>> ruby-gtk2/ruby-gnome2 are broke by default in FreeBSD 5.x and 6.x,
>>> because  of ruby doesn't use -pthread. I have emailed to you few times
>>> and you  never have reply back.
>>>
>>> Also, I think we should get rid of _r stuff if it possible. The _r is
>>> creating problems, so how about enable it by default?
>>
>> Sorry, but I have't got to be sure that ruby with -pthread enabled
>> works flawlessly.  Do you?  I'll do some more tests this weekend on my
>> FreeBSD 5.x box.  If it goes fine, I'll happily enable it by default.
>
> I can't test it right now.. I can test it tomorrow when I downgrade  
> GNOME 2.9.x to 2.8.x by via package.

Now, I am able to test it and ruby still need to add -pthread.

=========================================
% rbbr
/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.400: Undefined  
symbol "pthread_getschedparam"
=========================================

When I added -pthread in ruby's LDFLAGS and this problem went away. I  
noticed that ruby has '--enable-pthread' option and I don't know if it's  
any good with FreeBSD.

>> On the other hand, I still believe ruby with -pthread enabled does
>> coredump on FreeBSD 4.x when combined with a certain kind of external
>> libraries, so we can only enable it on FreeBSD >=5.x.  What is your
>> suggestion with ruby_r vs. FreeBSD 4.x?
>
> So, you mean the 'RUBY_CONFIGURE_ARGS+=	--with-libc_r=yes' cause the  
> coredump on FreeBSD 4.x? If no, then how about use it by default and  
> remove the _r voodoo, while we are there enable -pthread only on FreeBSD
>> =5.x?

I think, it's best to do this one later after FreeBSD 4.11 released.

Cheers,
Mezz

> I still have to admit that I don't know ruby VS FreeBSD 4.x that well.
>
> Cheers,
> Mezz


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org


More information about the cvs-all mailing list