From mezz@ns1.mezzweb.com  Tue Apr 20 17:29:38 2004
Return-Path: <mezz@ns1.mezzweb.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0F0D816A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Apr 2004 17:29:38 -0700 (PDT)
Received: from ns1.mezzweb.com (ip68-103-32-11.ks.ok.cox.net [68.103.32.11])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7C3AF43D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Apr 2004 17:29:35 -0700 (PDT)
	(envelope-from mezz@ns1.mezzweb.com)
Received: from ns1.mezzweb.com (localhost [127.0.0.1])
	by ns1.mezzweb.com (8.12.11/8.12.11) with ESMTP id i3L00vPA049630
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Apr 2004 19:00:57 -0500 (CDT)
	(envelope-from mezz@ns1.mezzweb.com)
Received: (from mezz@localhost)
	by ns1.mezzweb.com (8.12.11/8.12.11/Submit) id i3L00urF049629;
	Tue, 20 Apr 2004 19:00:56 -0500 (CDT)
	(envelope-from mezz)
Message-Id: <200404210000.i3L00urF049629@ns1.mezzweb.com>
Date: Tue, 20 Apr 2004 19:00:56 -0500 (CDT)
From: Jeremy Messenger <mezz7@cox.net>
Reply-To: Jeremy Messenger <mezz7@cox.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Maintainer update: mark ruby-gtkglext in FreeBSD 4.x and fix ruby-gnome2-all for FreeBSD 4.x.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         65834
>Category:       ports
>Synopsis:       Maintainer update: mark ruby-gtkglext in FreeBSD 4.x and fix ruby-gnome2-all for FreeBSD 4.x.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mezz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 20 17:30:24 PDT 2004
>Closed-Date:    Sat May 01 12:37:48 PDT 2004
>Last-Modified:  Sat May 01 12:37:48 PDT 2004
>Originator:     Mezz
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ns1.mezzweb.com 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue Mar 30
01:17:23 CST 2004 mezz@mezz.mezzweb.com:/usr/src/sys/i386/compile/BSDROCKS i386

>Description:
Mark INGORE x11-toolkits/ruby-gtkglext in FreeBSD 4.x and x11/ruby-gnome2-all
no run depend on x11-toolkits/ruby-gtkglext in FreeBSD 4.x. Because of thread
issue, which in FreeBSD 4.x, ruby can't be mix with and without thread in the
same place. FreeBSD 5.x doesn't has any of problem with this.

Discussed with:		knu

>How-To-Repeat:
n/a

>Fix:
This diff will affect on:
	-x11/ruby-gnome2-all
	-x11-toolkits/ruby-gtkglext

--- ruby-gtkglext.diff begins here ---
diff -ur x11-toolkits/ruby-gtkglext.orig/Makefile x11-toolkits/ruby-gtkglext/Makefile
--- x11-toolkits/ruby-gtkglext.orig/Makefile	Tue Apr 20 02:39:39 2004
+++ x11-toolkits/ruby-gtkglext/Makefile	Tue Apr 20 13:17:30 2004
@@ -21,8 +21,6 @@
 RUN_DEPENDS=	${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2 \
 		${RUBY_SITEARCHLIBDIR}/opengl.so:${PORTSDIR}/graphics/ruby-opengl
 
-BROKEN=		Broken dependency
-
 USE_RUBY=	yes
 USE_RUBY_EXTCONF=	yes
 USE_XLIB=	yes
@@ -35,6 +33,12 @@
 DOCS=		ChangeLog \
 		README
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE=	"Does not work on FreeBSD 4.x, because of thread issue with ruby-opengl and ruby-gnome2-all"
+.endif
+
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${RUBY_MODEXAMPLESDIR}
@@ -45,4 +49,4 @@
 .endfor
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ur x11/ruby-gnome2-all.orig/Makefile x11/ruby-gnome2-all/Makefile
--- x11/ruby-gnome2-all.orig/Makefile	Fri Apr  9 09:09:02 2004
+++ x11/ruby-gnome2-all/Makefile	Tue Apr 20 13:07:10 2004
@@ -23,7 +23,6 @@
 RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/gnomevfs.so:${PORTSDIR}/devel/ruby-gnomevfs
 #RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/gst.so:${PORTSDIR}/multimedia/ruby-gst
 RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/libgda.so:${PORTSDIR}/databases/ruby-libgda
-RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/gtkglext.so:${PORTSDIR}/x11-toolkits/ruby-gtkglext
 
 # ruby-gst, wait for update to support gstreamer 0.8 API/ABI.
 
@@ -33,7 +32,13 @@
 
 NO_BUILD=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500000
+RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/gtkglext.so:${PORTSDIR}/x11-toolkits/ruby-gtkglext
+.endif
+
 do-install:
 	@${DO_NADA}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- ruby-gtkglext.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mezz 
Responsible-Changed-By: mezz 
Responsible-Changed-When: Sat May 1 10:08:08 PDT 2004 
Responsible-Changed-Why:  
I will take my own PR and awaiting for adamw (mentor) to approve. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65834 
State-Changed-From-To: open->closed 
State-Changed-By: mezz 
State-Changed-When: Sat May 1 12:36:04 PDT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65834 
>Unformatted:
