Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 330249

Summary: app-admin/eselect-opengl: `eselect opengl` wrong about missing xorg-x11 implementation
Product: Gentoo Linux Reporter: d3dal3 <ded>
Component: [OLD] DevelopmentAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /usr/share/eselect/modules/opengl.eselect patch
Diff 1 without indentation
Diff 2 for indentation

Description d3dal3 2010-07-28 17:14:40 UTC
on amd64, xorg-x11 implementation is in /usr/lib64/opengl/xorg-x11.
emerging nvidia-drivers (256.35) creates /usr/lib32/opengl
then setting xorg-x11 configuration will fail because it will always look in the lib32 folder.





Reproducible: Always

Steps to Reproduce:
1. emerge nvidia-drivers
2. eselect opengl set xorg-x11

Actual Results:  
Switching to xorg-x11 OpenGL interface...!!! Error: No proper xorg-x11 or xorg-x11 opengl implementation found
exiting


Expected Results:  
Switching to xorg-x11 OpenGL interface... done


Proposed patch as opengl.eselect.diff.
Comment 1 d3dal3 2010-07-28 17:15:54 UTC
Created attachment 240473 [details, diff]
/usr/share/eselect/modules/opengl.eselect patch

Also fixed indentation.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2010-07-30 09:42:11 UTC
(In reply to comment #1)
> Also fixed indentation.

Patch is unreviewable, please provide 2 patches if you want to clean up indentation.

Thanks
Comment 3 d3dal3 2010-07-30 11:12:48 UTC
Created attachment 240669 [details, diff]
Diff 1 without indentation
Comment 4 d3dal3 2010-07-30 11:13:50 UTC
Created attachment 240671 [details, diff]
Diff 2 for indentation

FYI
You can ignore this patch and fix indentation by yourself if you prefer
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2010-07-30 22:03:59 UTC
Tbh you are fixing something that should not happen.
On amd64 you need proper emul libs...

app-emulation/emul-linux-x86-opengl-20100611-r99 (/usr/lib32/opengl/xorg-x11/lib/libGL.so.1.2)
media-libs/mesa-9999 (/usr/lib64/opengl/xorg-x11/lib/libGL.so.1.2)

scarab@ugly-elf: ~ $ s eselect opengl set nvidia
Switching to nvidia OpenGL interface... done
scarab@ugly-elf: ~ $ s eselect opengl set xorg-x11
Switching to xorg-x11 OpenGL interface... done

So it works as advertised. Just ebuild deps are lacking. It always expected emul-libs to be around on amd64...
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2010-07-30 22:15:44 UTC
Ok i fixed deps in both ati and nvidia drivers.

So this is again fixed. Thanks for report.

Reopen if i missed something :]