Bug 133638

Summary: [PATCH] graphics/py25-opengl: doesn't work at all
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me CC: ahze
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
py25-opengl-3.0.0.b8_2.patch none

Description Dmitry Marakasov 2009-04-12 05:10:00 UTC
py-opengl doesn't work at all. For example, backtrace from FretsOnFire:

Traceback (most recent call last):
  File "/usr/local/bin/FretsOnFire", line 16, in <module>
    execfile(os.path.join(package_dir, "FretsOnFire.py"))
  File "/usr/local/lib/fretsonfire/FretsOnFire/FretsOnFire.py", line 36, in <module>
    from GameEngine import GameEngine
  File "/usr/local/lib/fretsonfire/FretsOnFire/GameEngine.py", line 23, in <module>
    from OpenGL.GL import *
  File "/usr/local/lib/python2.5/site-packages/OpenGL/GL/__init__.py", line 2, in <module>
    from OpenGL.raw.GL import *
  File "/usr/local/lib/python2.5/site-packages/OpenGL/raw/GL/__init__.py", line 6, in <module>
    from OpenGL.raw.GL.constants import *
  File "/usr/local/lib/python2.5/site-packages/OpenGL/raw/GL/constants.py", line 7, in <module>
    from OpenGL import platform, arrays
  File "/usr/local/lib/python2.5/site-packages/OpenGL/platform/__init__.py", line 36, in <module>
    _load()
  File "/usr/local/lib/python2.5/site-packages/OpenGL/platform/__init__.py", line 26, in _load
    plugin  = PlatformPlugin.match( key )
  File "/usr/local/lib/python2.5/site-packages/OpenGL/plugins.py", line 47, in match
    raise KeyError( """No platform plugin registered for %s"""%(key,))
KeyError: "No platform plugin registered for ('freebsd8', 'posix')"

The cause is typo in plugin name (see patch), so posix plugin is not used.

This was fixed in pyopengl bzr (but the fix is not yet in 3.0.0).

While here, also use SF macro.

Added file(s):
- files/patch-OpenGL-__init__.py

Port maintainer (ahze@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-04-12 05:10:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ahze

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 wenheping 2009-05-01 13:04:29 UTC
Hi,

   This bug was mentioned here:

    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/133260

and :
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/130821



Regards,
wen
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2009-05-06 02:13:08 UTC
Responsible Changed
From-To: ahze->amdmi3

I'm taking it, it's 3 months timeout for 130831 and 2 weeks for 133638, 
and the bug definitely needs to be fixed
Comment 4 dfilter service freebsd_committer freebsd_triage 2009-05-06 23:59:59 UTC
amdmi3      2009-05-06 22:59:45 UTC

  FreeBSD ports repository

  Modified files:
    graphics/py-opengl   Makefile 
  Added files:
    graphics/py-opengl/files patch-OpenGL-__init__.py 
  Log:
  - The port was completely broken, all py-opengl apps failed to run with error "No platform plugin registered for ('freebsd7', 'posix')", fix this
  
  PR:             130821 [1], 133638 [2]
  Submitted by:   Michael Krauss <hippodriver at gmx.net> [1], myself [2]
  Approved by:    maintainer timeout (ahze, >3 months)
  
  Revision  Changes    Path
  1.33      +1 -1      ports/graphics/py-opengl/Makefile
  1.1       +11 -0     ports/graphics/py-opengl/files/patch-OpenGL-__init__.py (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2009-05-07 00:00:08 UTC
State Changed
From-To: open->closed

Committed. Thanks!