Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2327 - wxPython-2.3.2.1 fails when USE="-opengl"
Summary: wxPython-2.3.2.1 fails when USE="-opengl"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Jon Nelson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 3088
  Show dependency tree
 
Reported: 2002-05-02 00:34 UTC by Gontran Zepeda
Modified: 2002-08-29 13:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gontran Zepeda 2002-05-02 00:34:44 UTC
if opengl is not in USE (specifically: not installed) wxPython fails to
build.  patch to ebuild and setup.py included below.  These seem to allow
wxPython to build OK while being sensitive to opengl USE.  (Still need to
test results though).


========== wxPython-2.3.2.1.ebuild.diff ==========

--- wxPython-2.3.2.1.ebuild	Fri Apr 12 10:08:00 2002
+++ /root/wxPython-2.3.2.1.ebuild	Wed May  1 18:48:37 2002
@@ -21,6 +21,14 @@
 
 RDEPEND="${DEPEND}"
 
+src_unpack() {
+	unpack ${A}
+	cd ${S}
+	if [ ! "`use opengl`" ];then
+		patch -p0 < ${FILESDIR}/${P}-nogl.patch
+	fi
+}
+
 src_compile() {
 
         #local myconf

========== wxPython-2.3.2.1.ebuild.diff ==========



========== wxPython-2.3.2.1-nogl.patch ==========

--- setup.py.orig	Wed May  1 22:13:57 2002
+++ setup.py	Wed May  1 22:14:07 2002
@@ -28,8 +28,8 @@
 """
 
 
-BUILD_GLCANVAS = 1 # If true, build the contrib/glcanvas extension module
-BUILD_OGL = 1      # If true, build the contrib/ogl extension module
+BUILD_GLCANVAS = 0 # If true, build the contrib/glcanvas extension module
+BUILD_OGL = 0      # If true, build the contrib/ogl extension module
 BUILD_STC = 1      # If true, build the contrib/stc extension module
 BUILD_XRC = 1      # XML based resource system
 BUILD_GIZMOS = 1   # Build a module for the gizmos contrib library

========== wxPython-2.3.2.1-nogl.patch ==========

hth,
Gontran
Comment 1 Gontran Zepeda 2002-05-07 16:22:06 UTC
tested.  Works for me. :)
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-29 01:28:17 UTC
ditto
Comment 3 Jon Nelson (RETIRED) 2002-07-02 22:41:52 UTC
Please give 2.3.2.1-r1 a try.

Comment 4 Nick Hadaway 2002-08-29 13:42:52 UTC
both the GLCANVAS and GIZMOS extensions have been enabled.    
wxPython-2.3.2.1-r2 contains the fixes.  PyOpenGL is now a required dependancy   
for opengl support.  The new ebuilds for PyOpenGL and wxPython should be   
available in portage within 24 hours.   
   
emerge rsync   
emerge wxPython