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

Bug 316921

Summary: app-admin/eselect-opengl-1.1.1-r2: shouldn't prepend ROOT to library paths in env.d file
Product: Gentoo Linux Reporter: Ambroz Bizjak <ambrop7>
Component: [OLD] UnspecifiedAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fix for the bug

Description Ambroz Bizjak 2010-04-24 16:05:31 UTC
When eselect-opengl is run with ROOT=/something, it prepends the root folder to library paths in the generated ${ROOT}/etc/env.d/03opengl. It should not do that, because paths there are local to the rootfs.

Reproducible: Always

Steps to Reproduce:
1. Have a Gentoo userspace with media-libs/mesa installed in /gentoo
2. # ROOT=/gentoo eselect opengl set xorg-x11
Actual Results:  
/gentoo/etc/env.d/03opengl contans LDPATH="/gentoo/usr/lib/opengl/xorg-x11/lib".

Expected Results:  
It should be LDPATH="/usr/lib/opengl/xorg-x11/lib".
Comment 1 Ambroz Bizjak 2010-04-24 16:06:05 UTC
Created attachment 229015 [details, diff]
fix for the bug
Comment 2 SpanKY gentoo-dev 2011-08-18 17:19:47 UTC
thanks ... should be fixed in upcoming eselect-opengl-1.2.4

http://sources.gentoo.org/eselect/trunk/extern/modules/opengl.eselect?r1=823&r2=824