Date: Sat, 05 Feb 2005 19:38:21 -0600 From: "Jeremy Messenger" <mezz7@cox.net> To: "Michael Nottebrock" <michaelnottebrock@gmx.net> Cc: ports-committers@freebsd.org Subject: Re: cvs commit: ports/Mk bsd.ruby.mk ports/lang Makefile ports UPDATING ports/lang/ruby18 Makefile pkg-plist ports/lang/ruby18_r Makefile ports/lang/ruby16 Makefile pkg-plist ports/lang/ruby16_r Makefile ports/devel/ruby-gnustep Makefile ... Message-ID: <opslq5h7pm9aq2h7@mezz.mezzweb.com> In-Reply-To: <200502052323.46606.michaelnottebrock@gmx.net> References: <200502050459.j154xROQ094820@repoman.freebsd.org> <200502052249.34648.michaelnottebrock@gmx.net> <opslqvstmt9aq2h7@mezz.mezzweb.com> <200502052323.46606.michaelnottebrock@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
------------clivS0cGJEusUNtPMETwXF Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii Content-Transfer-Encoding: 8bit On Sat, 5 Feb 2005 23:23:42 +0100, Michael Nottebrock <michaelnottebrock@gmx.net> wrote: > On Saturday, 5. February 2005 23:08, Jeremy Messenger wrote: > >> I found too, but it's more than a missing. The config.h.orig is w/out >> patch and config.h is with your patch. > >> -#define HAVE_GETCONTEXT 1 >> -#define HAVE_SETCONTEXT 1 > > Those don't show up here. The NANOSLEEP one is bogus either, it really > doesn't have anything to do with the pthread configure checks, so ignore > that new diff please. If configure doesn't detect those things it will > have its own reasons (or bugs). Here's patch that works a lot better. I don't know if it's good for FreeBSD 4.x and other ${ARCH}. I have no idea if the --enable-pthread should be for only FreeBSD 5.x or whatever. However, right now I am running Asami[1] without any problem. [1] http://asami.rubyforge.org/ Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org ------------clivS0cGJEusUNtPMETwXF Content-Disposition: attachment; filename=Makefile.diff Content-Type: text/plain; name=Makefile.diff Content-Transfer-Encoding: 8bit --- Makefile.orig Sat Feb 5 16:51:21 2005 +++ Makefile Sat Feb 5 17:08:12 2005 @@ -42,6 +42,7 @@ RUBY_NO_RUN_DEPENDS= yes #USE_AUTOCONF= yes # does not work with 2.13; requires 2.53 or later +USE_REINPLACE= yes GNU_CONFIGURE= yes WRKSRC= ${RUBY_WRKSRC} CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \ @@ -58,12 +59,12 @@ LATEST_LINK= ruby-devel .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 502102 RUBY_ENABLE_PTHREAD?= public demand -.endif .if defined(RUBY_ENABLE_PTHREAD) && ${RUBY_ENABLE_PTHREAD} != "no" CONFIGURE_ARGS+= --enable-pthread +CONFIGURE_ENV+= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \ + LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" # There seems to be a bug in either gcc or libpthread that gets # (mini)ruby to malfunction.. @@ -134,6 +135,8 @@ ${MV} ${WRKSRC}/ext/dl/h2rb ${WRKSRC}/bin/ post-patch: + ${REINPLACE_CMD} -e 's|-l$$pthread_lib|${PTHREAD_LIBS}|g' \ + ${WRKSRC}/configure ${FIND} ${PATCH_WRKSRC} -name '*.orig' -delete .for d in Win32API ${RM} -rf ${BUILD_WRKSRC}/ext/${d} ------------clivS0cGJEusUNtPMETwXF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opslq5h7pm9aq2h7>