Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261498 - app-admin/eselect-opengl-1.0.6-r1 uses absolute paths in symlinks which makes for cross compile angry
Summary: app-admin/eselect-opengl-1.0.6-r1 uses absolute paths in symlinks which makes...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-06 21:20 UTC by Alon Bar-Lev
Modified: 2009-06-23 14:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Relative path fix for libGL* (opengl.eselect.patch,1.14 KB, patch)
2009-06-18 20:08 UTC, Sven 'sleipnir' Rebhan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev 2009-03-06 21:20:58 UTC
Hello,

For example:
# ls -la /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGL.so
lrwxrwxrwx 1 root root 37 2009-03-06 23:14 /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGL.so -> /usr/lib/opengl/xorg-x11/lib/libGL.so

This fails packages that would like to be linked with libGL.so as it actually points to the host's version.

The best solution is to use relative symbolic links, for example:
/usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGL.so -> opengl/xorg-x11/lib/libGL.so

This will enable cross compile X and other opengl depended packages.

Thanks!
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-06 22:38:26 UTC
Reassigning to x11-drivers herd.
Comment 2 Sven 'sleipnir' Rebhan 2009-06-18 20:08:20 UTC
Created attachment 195113 [details, diff]
Relative path fix for libGL*

This patch creates a relative link to the libs iff PREFIX=DST_PREFIX which is the default. In case a user specifies something different, an absolute path is used instead. The handling of the header files is not touched (yet).
Comment 3 SpanKY gentoo-dev 2009-06-19 10:56:23 UTC
patch looks fine to me, but i only made a passing glance at it ...
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-23 14:25:31 UTC
1.0.7 added to the main tree with this applied :]
I've tested all 3 implementations (nvidia,ati,xorg) everything worked fine.