Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79293 - ati-drivers should use the opengl useflag.
Summary: ati-drivers should use the opengl useflag.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-23 23:57 UTC by Rainer Koschnick
Modified: 2005-04-07 11:21 UTC (History)
2 users (show)

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


Attachments
libGL.la file for ATI drivers (amd64) (libGL.la,775 bytes, text/plain)
2005-01-25 14:09 UTC, Rainer Koschnick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Koschnick 2005-01-23 23:57:25 UTC
Emerging of the driver symlinks /usr/lib64/libGL.la to /usr/lib/opengl/ati/lib/libGL.la

Yet this link points to an empty file.

-rw-r--r--  1 root root 0 Jan 24 08:51 /usr/lib/opengl/ati/lib/libGL.la

Reproducible: Always
Steps to Reproduce:
1.emerge ati-drivers
2.try to compile an application which depends on libGL
3.

Actual Results:  
The application won't compile: 
 
libtool: link: `/usr/lib64/libGL.la' is not a valid libtool archive 
 

Expected Results:  
libGL.la should be a valid libtool archive.
Comment 1 Luca Barbato gentoo-dev 2005-01-24 23:05:28 UTC
should be fixed in the r3
Comment 2 Roland Bär 2005-01-25 05:06:08 UTC
Having here also empty libGL.la
Same with ati-drivers-8.8.25-r3 
Comment 3 Rainer Koschnick 2005-01-25 14:07:21 UTC
To me it seems that the ebuild file tries to copy over the libGL.la from xorg-x11.  But my x11 has no such file, so the result is an empty file.  

Is it possible that xorg-x11 ONLY builds libGL if opengl is in the use mask or a driver is installed which supplies opengl (such as the ATI driver -> PROVIDE="virtual/opengl")?

If this assumption is correct, then one would have to re-emerge xorg-x11 (since ati-drivers now supply opengl), then re-emerge ati-drivers (so it can copy over the libGL.la created by xorg-x11)?

I will attach a patch for an amd64 system which will let at least compile programs.  Store the libGL.la in /usr/lib64/opengl/ati/lib and symlink it in /usr/lib64

gentoo lib64 # ll libGL.la
lrwxrwxrwx  1 root root 34 Jan 25 21:50 libGL.la -> /usr/lib64/opengl/ati/lib/libGL.la
Comment 4 Rainer Koschnick 2005-01-25 14:09:39 UTC
Created attachment 49512 [details]
libGL.la file for ATI drivers (amd64)
Comment 5 Luca Barbato gentoo-dev 2005-01-31 11:41:19 UTC
please tell me the xorg version you are using
Comment 6 Rainer Koschnick 2005-01-31 11:47:50 UTC
The last version available for ~amd64 is 6.8.1.902 I think.  I cannot check at the moment.  I didn't have opengl in my USE flags when I emerged it though.  Don't know if this poses a problem.
Comment 7 Rainer Koschnick 2005-01-31 11:49:56 UTC
I emerged xorg-x11 BEFORE I had a usable ATI driver.  ATI drivers supplies "virtual-opengl" so maybe a re-emerge of xorg-x11 with the ati drivers installed would create the libGL.la, but that is just a guess.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-31 13:33:10 UTC
no that won't do it.
Luca, perhaps it'd be best to have a libGL.la file in ati-drivers/files (like nvidia-glx does) rather than use xorg-x11's
Comment 9 Rainer Koschnick 2005-02-01 08:49:57 UTC
Yes, I think that makes sense since the ebuild supplies virtual-opengl.
Comment 10 Luca Barbato gentoo-dev 2005-02-05 05:59:37 UTC
the ati-drivers _requires_ the xorg-x11 opengl anyway, and I think is completely wrong pick a set of includes and libtool files and add them in the ebuild even if they are just copies of the xorg-x11 ones 
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-05 10:42:32 UTC
Actually luca, it requires a USE=opengl xorg-x11 build otherwise it doesn't install a proper libGL.la file... maybe you could have it die() if it doesn't find a libGL.la file to copy?
Comment 12 Luca Barbato gentoo-dev 2005-04-07 00:51:10 UTC
I'll put a warning at the end if you don't have opengl useflag set.
bug renamed and marked as fixed
Comment 13 Luca Barbato gentoo-dev 2005-04-07 11:21:18 UTC
Hopefully fixed.