From owner-freebsd-ports@FreeBSD.ORG Tue Feb 22 19:56:17 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 867D716A4CE for ; Tue, 22 Feb 2005 19:56:17 +0000 (GMT) Received: from lakermmtao10.cox.net (lakermmtao10.cox.net [68.230.240.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAABA43D5D for ; Tue, 22 Feb 2005 19:56:16 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao10.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050222195616.TVEU17761.lakermmtao10.cox.net@mezz.mezzweb.com>; Tue, 22 Feb 2005 14:56:16 -0500 To: "Andy Fawcett" References: <64348.207.219.213.162.1109011818.squirrel@207.219.213.162> <200502222122.22900.andy@athame.co.uk> Message-ID: Date: Tue, 22 Feb 2005 13:57:10 -0600 From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <200502222122.22900.andy@athame.co.uk> User-Agent: Opera M2/7.54 (Linux, build 955) cc: freebsd-ports@freebsd.org Subject: Re: FreeBSD Port: ruby18-1.8.2_2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 19:56:17 -0000 On Tue, 22 Feb 2005 21:22:20 +0200, Andy Fawcett wrote: > Hi Mezz, > > On Tuesday 22 February 2005 11:36, Jeremy Messenger wrote: >> On Tue, 22 Feb 2005 02:47:51 -0600, Jeremy Messenger >> wrote: >> > On Tue, 22 Feb 2005 18:33:19 +1000, Mark Sergeant >> > >> > wrote: >> >> On 22/02/2005, at 18:11, Jeremy Messenger wrote: >> >>> On Tue, 22 Feb 2005 00:11:48 -0600, Jeremy Messenger >> >>> wrote: >> >> >> >> >>> Oops, wrong person, it's lofi.. My plan of tonight or tomorrow is to >> >>> still use this new patch then reinstall it. Also, rebuild/reinstall >> >>> all apps that depend on ruby. After that I am going to test on few >> >>> ruby ports that need threads (ruby-opengl, ruby-gtk2, ruby-gnome2 >> and >> >>> etc) to see if they still will working or not. I am hoping that lofi >> >>> will have time to test it on FreeBSD 4.x. >> >>> >> >>> New patch: http://people.freebsd.org/~mezz/diff/ruby18.diff >> >>> >> >>> Be sure to 'rm -rf /usr/ports/lang/ruby18/*' and update your ports >> >>> tree before you use this patch. The difference between ruby-1.8.2_2 >> to >> >>> new patch is that disable thread again, teach ruby about >> ${PTHREAD_*}, >> >>> and use patches from Gentoo/Debian. >> >>> >> >>> If this new patch doesn't work, then I guess one of us will have to >> >>> mark ruby-opengl and few other that require threads as broke for on >> >>> sparc64 and other ${ARCH} and disable thread support in ruby. It's a >> >>> lot better than re-create a voodoo '_r'. >> >>> >> >>> Cheers, >> >>> Mezz >> >> >> >> Works like a charm on AMD64, thanks heaps ! >> > >> > wow, you are quick! There is a very small problem with this new patch >> > thought.. It doesn't add ${PTHREAD_*} even thought I told it to do. >> > Anyone is welcome to poke around it.. I am going to sleep and will >> > trying to poke it more to see if I can do anything with it. >> >> I can't sleep, so I think I might have fixed it to get ${PTHREAD_*} >> add. I >> haven't test it in the runtime yet, but I will in the morning. It's >> updated in the same place. >> >> http://people.freebsd.org/~mezz/diff/ruby18.diff >> >> To save your time to not apply patch again.. All I did is.. >> >> Change from: >> ====================================== >> LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" >> ====================================== >> >> To: >> ====================================== >> LIBS="${PTHREAD_LIBS}" >> ====================================== > > I can confirm this fixed the problem for me on amd64 (STABLE from a few > minutes ago). Thanks for tested it. I still need someone that has FreeBSD 4.x to test ruby-opengl and ruby-gtk with this patch. It was one of reason knu has marked ruby-opengl as broke or used to have '_r', because ruby-opengl or other ruby stuff that use threads stuff will not working in FreeBSD 4.x. Anyone can test ruby-open's example files in /usr/local/share/examples/ruby18/opengl/ and as for ruby-gtk2, it's in /usr/local/share/examples/ruby18/gtk2. Today, I have tested ruby-opengl and ruby-gnome2-all (ruby-gtk2/ruby-gnome2), they work great with this new patch and FreeBSD 5.x. Cheers, Mezz > A. -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org