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 ...

Michael Nottebrock michaelnottebrock at gmx.net
Sat Feb 5 13:49:43 PST 2005


On Saturday, 5. February 2005 22:28, Jeremy Messenger wrote:
> On Sat, 05 Feb 2005 15:12:16 -0600, Jeremy Messenger <mezz7 at cox.net> wrote:
> > On Sat, 5 Feb 2005 22:06:52 +0100, Michael Nottebrock
> >
> > <michaelnottebrock at gmx.net> wrote:
> >> On Saturday, 5. February 2005 21:44, Jeremy Messenger wrote:
> >>> Works, but I now get loads of weird warning. Without patch, I don't
> >>> get  
> >>> any warning.
> >>
> >> What program are you seeing this warning with (and on which FreeBSD
> >> version)?
> >
> > ruby-gtk2/ruby-gnome2 example files in
> > ${LOCALBASE}/share/examples/ruby18/ and few other ruby-gtk2 apps that
> > aren't in ports. As for FreeBSD version, it's a few hours of RELENG_5.
>
> Hold on, I think I have found a patch to fix ruby-glib2 for ruby 1.8.x..
> It was insteresting that it finally complain with your patch, maybe your
> patch makes ruby 1.8.x to use something new.

Okay (I really have no idea how my patch could trigger this). FWIW, I found I 
missed one config.h entry in my patch, here's an update.

-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/ruby18/Makefile,v
retrieving revision 1.83
diff -u -r1.83 Makefile
--- Makefile	5 Feb 2005 04:59:24 -0000	1.83
+++ Makefile	5 Feb 2005 21:48:45 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	ruby
 PORTVERSION=	${RUBY_PORTVERSION}
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	lang ruby ipv6
 MASTER_SITES=		${MASTER_SITE_RUBY}
 MASTER_SITE_SUBDIR=	${MASTER_SITE_SUBDIR_RUBY}
@@ -58,12 +58,10 @@
 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..
@@ -150,6 +148,9 @@
 .endif
 	${TOUCH} ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 
+post-configure:
+	${ECHO_CMD} -e "#define _REENTRANT 1\n#define _THREAD_SAFE 1\n#define HAVE_LIBPTHREAD 1\n#define HAVE_NANOSLEEP 1" >> ${WRKSRC}/config.h
+
 post-install:
 .if defined(STRIP) && ${STRIP} == -s
 	${STRIP_CMD} ${RUBY}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20050205/664558ed/attachment.bin


More information about the cvs-all mailing list