Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893160 - dev-python/pyopengl-3.1.6 fails with LinuxCNC
Summary: dev-python/pyopengl-3.1.6 fails with LinuxCNC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL: https://github.com/mcfletch/pyopengl/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-02-03 21:42 UTC by Alec Ari
Modified: 2023-02-12 19:41 UTC (History)
1 user (show)

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 Alec Ari 2023-02-03 21:42:04 UTC
I understand LinuxCNC is not in the official Gentoo repository, however this bug may creep into other packages as well. I am not sure on the severity of this, and I don't fully understand what is happening either.

Problems like:

$ python3 -c 'from OpenGL.GLUT import *'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/OpenGL/GLUT/__init__.py", line 5, in <module>
    from OpenGL.GLUT.fonts import *
  File "/usr/lib/python3/dist-packages/OpenGL/GLUT/fonts.py", line 20, in <module>
    p = platform.getGLUTFontPointer( name )
  File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 350, in getGLUTFontPointer
    raise NotImplementedError( 
NotImplementedError: Platform does not define a GLUT font retrieval function

Debian has already patched their pyopengl package:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029011

Reproducible: Always

Steps to Reproduce:
1. Install dev-python/pyopengl-3.1.6

2. Install LinuxCNC:

https://github.com/NTULINUX/ntu_overlay/tree/main/sci-electronics/linuxcnc

3. Try to launch LinuxCNC (login and then logout of X/Wayland so env variables for TCLLIBPATH take effect)
Actual Results:  
Several issues:

https://github.com/LinuxCNC/linuxcnc/issues/2264

Expected Results:  
LinuxCNC starts up

With dev-python/pyopengl-3.1.5, the problem goes away. pyopengl-3.1.7 should have this issue fixed upstream.
Comment 1 Alec Ari 2023-02-12 07:02:23 UTC
The commit that needs/should be merged into the 3.1.6 ebuild is:

https://github.com/mcfletch/pyopengl/pull/91/commits/2d2457b4d565bce1c58b76b427e1f9027e8b4bcc
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-12 19:27:58 UTC
Thanks for the patch!
Comment 3 Larry the Git Cow gentoo-dev 2023-02-12 19:41:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f4e6aee5faf344e9b864fd854377071790d725e

commit 6f4e6aee5faf344e9b864fd854377071790d725e
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-02-12 19:26:59 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-02-12 19:41:06 +0000

    dev-python/pyopengl: Backport a patch needed for LinuxCNC
    
    Closes: https://bugs.gentoo.org/893160
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pyopengl/Manifest                                   |  1 +
 .../{pyopengl-3.1.6-r1.ebuild => pyopengl-3.1.6-r2.ebuild}     | 10 +++++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)