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

Bug 131837

Summary: media-libs/glut should link with libGLU (for --as-needed)
Product: Gentoo Linux Reporter: TGL <tom.gl>
Component: [OLD] LibraryAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: minor CC: flameeyes, games
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413, 122638    
Attachments: files/glut-3.7.1-fix-GLU-linking.patch
glut-3.7.1-ebuild.patch

Description TGL 2006-04-30 16:18:06 UTC
Here is a patch which makes libglut explicitly linking to libGLU. 
It is needed for compilation of the following packages with -Wl,--as-needed (and binutils-2.16.92, not sure for previous versions since they complain less about unresolved symbols in the linked-to libs):

games-action/glaxium-0.5
games-arcade/crack-attack-1.1.14-r1
games-arcade/asteroid-1.1
media-libs/gle-3.0.1-r2

Note that for media-libs/gle, it should avoid the need for the changes proposed in bug #122638.
Comment 1 TGL 2006-04-30 16:19:04 UTC
Created attachment 85868 [details, diff]
files/glut-3.7.1-fix-GLU-linking.patch
Comment 2 TGL 2006-04-30 16:19:29 UTC
Created attachment 85869 [details, diff]
glut-3.7.1-ebuild.patch

patch for the ebuild
Comment 3 TGL 2006-05-01 03:11:50 UTC
CCing games@ since this helps compilation of several games.
Comment 4 TGL 2006-05-01 03:26:57 UTC
I've just checked webcvs.freedesktop.org, and have found they already have this fix:
http://webcvs.freedesktop.org/mesa/Mesa-oldtree/src-glut/Makefile.am?r1=1.19&r2=1.20
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-16 09:07:01 UTC
thanks, I have fixed this in cvs!