From owner-freebsd-ports@FreeBSD.ORG Sat Nov 3 04:06:00 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4144E16A418 for ; Sat, 3 Nov 2007 04:06:00 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao106.cox.net (eastrmmtao106.cox.net [68.230.240.48]) by mx1.freebsd.org (Postfix) with ESMTP id C5C6B13C481 for ; Sat, 3 Nov 2007 04:05:59 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao106.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20071103040520.MHXD1395.eastrmmtao106.cox.net@eastrmimpo02.cox.net>; Sat, 3 Nov 2007 00:05:20 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo02.cox.net with bizsmtp id 84591Y0054iy4EG0000000; Sat, 03 Nov 2007 00:05:10 -0400 Date: Fri, 02 Nov 2007 23:09:37 -0500 To: "Marcin Wisnicki" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <472A3F63.9010500@zomo.co.uk> <200711012202.42025.josh@tcbug.org> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: User-Agent: Opera Mail/9.24 (Linux) Cc: freebsd-ports@freebsd.org Subject: Re: ruby18, -pthreads, deep recursion X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2007 04:06:00 -0000 On Fri, 02 Nov 2007 18:30:13 -0500, Jeremy Messenger wro= te: > On Fri, 02 Nov 2007 11:37:07 -0500, Marcin Wisnicki = > 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