Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61080 - emerge qt should check if opengl-update was executed
Summary: emerge qt should check if opengl-update was executed
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 14:59 UTC by Florian E.J. Fruth
Modified: 2005-04-29 23:43 UTC (History)
1 user (show)

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


Attachments
warns about running opengl-update if USE="+opengl" and stops compiling (qt-3.3.3.ebuild-opengl.dependency.diff,455 bytes, patch)
2004-08-23 07:06 UTC, Florian E.J. Fruth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian E.J. Fruth 2004-08-20 14:59:59 UTC
imho it would be a good feature if +opengl is set in the make.conf and the user tries to emerge qt - without running opengl-update first - to stop the qt-emerge. this can be done with "-e /usr/X11R6/include/GL/glext.h". the problem is that i did a "emerge kde" on a new system and it tried to build qt for serveral minutes before it told me that the qtext.h didn't exist. "wasting" this time could be prevented by such a check and the user knows that opengl-update is mandatory for emerging qt...
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-08-23 05:33:20 UTC
Can you attach a patch that provides this?
Comment 2 Florian E.J. Fruth 2004-08-23 07:06:02 UTC
Created attachment 38016 [details, diff]
warns about running opengl-update if USE="+opengl" and stops compiling

tested it here and seams to work - but should be tested somewhere else also ;)
and perhaps the "die" is not necessary.
Comment 3 Florian E.J. Fruth 2004-08-23 07:08:40 UTC
just saw a typo in the patch ;)
replace: "Qt meight will fail." with "Qt build meight fail." ...
Comment 4 Jan Kohnert 2005-01-20 12:16:43 UTC
What about this one?

I tried to compile kdetv and did not remember to use opengl-update before (I changed for Xfree/ATI to Xorg). So QT was build whithout real opengl support and emerge kdetv failed.

Whould be a nice feature.

Best regards Jan
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-26 13:16:45 UTC
is this bug even valid anymore?  opengl-update is run in postinst of opengl-update as well as in xorg-x11, ati-drivers, and nvidia-glx, so qt shouldn't expect it to be run, and virtual/opengl should satisfy anything it needs.
Comment 6 Florian E.J. Fruth 2005-04-26 13:33:22 UTC
the xorg-x11 virtual/opengl is enough for qt to build but then it uses the xorg-opengl drivers for building instead of nvidia/ati drivers.
so the bug is not valid any more in the way i reported it.

atm the problem is that if you do a "emerge kde" on a clean system the nvidia/ati drivers won't be used. you have to do sth. like "emerge xorg-x11 nvidia kde" - or am i wrong?

perhaps it would be good to have a +nvidia +ati switch for xorg-x11 that one of these driver gets installed after xorg-x11 and before other programs using opengl. like a post-depend (imho there is sth. like this in portage but don't know the name atm ;) on xorg-x11 ?
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-29 14:51:00 UTC
Re: >> but then it uses the xorg-opengl drivers for building instead of nvidia/ati drivers

You don't USE drivers to compile.  The ABI is the same for both, so compiling against one should have no difference from compiling against the other so long as the header files are compliant.
Comment 8 Florian E.J. Fruth 2005-04-29 17:16:36 UTC
the header files looked very different - it seamed as there nvidida header supported more functions. i don't know, but isn't it possible to use the optional routines of nvidia/ati for compilation?
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-29 23:43:09 UTC
No, it doesn't work like that.  The extensions are all in glext.h and glxext.h which are standardized.  Both gl.h files should have the same effect, but they may be laid out differently because they're modified by different groups, BUT keep in mind the main thing is glext.h and glxext.h which is standardized.