Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293162 - eselect-opengl-1.1.1 copy soname for libGL.so for performance and (mostly) Prefix compatability
Summary: eselect-opengl-1.1.1 copy soname for libGL.so for performance and (mostly) Pr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-11-14 11:12 UTC by Fabian Groffen
Modified: 2009-11-18 20:37 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 Fabian Groffen gentoo-dev 2009-11-14 11:12:49 UTC
see this patch:
http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/app-admin/eselect-opengl/files/eselect-opengl-1.1.1-soname-copy-for-prefix.patch?rev=53824

A few notes about this patch:
- it copies the referenced soname file as well as the libGL.so file
- upgrade_file removes ${file}* before making a new symlink, so accidentially nuking a previous soname copy, which is what we like
- since dylibs have the version before the extension, upgrade_file won't work correctly there, however, due to the different characteristics, we don't need this, so this "bug" is by coincidence exactly what we want
- falling back to the ld.so.conf path is more expensive (read + search) than having it early in the default search path (just search), but this is probably an almost unnotable performance difference
- Prefix platforms don't have an ld.so.conf in effect, so they rely on RPATH to be able to find all libs, for which we need the copy, since what's in ld.so.conf is not available in the RPATH for the object in question
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-18 20:37:22 UTC
Fixed in trunk.