Subject: libGLU in mesa-dri
To: None <tech-x11@netbsd.org>
From: Blair Sadewitz <blair.sadewitz@gmail.com>
List: tech-x11
Date: 04/15/2007 16:34:26
Is there a reason libGLU is being built in this package?  All existing
pkgsrc packages depend on graphics/glu, and libGLU depends on libGL.
When I've used this package, I SUBST_SED out all references to
-lpthread and remove glu and glut/glx from the list of build
directories.  I know this isn't strictly on-topic, but please, you
will avoid a whole lot of headaches if you don't link *ANYTHING* in
Mesa with -lpthread (it has to be removed from
src/mesa/drivers/dri/glcore/Makefile in addition to in the configs).
Then, make sure libX11 is built WITHOUT the X thread stubs and not
linked to -lpthread.  XTHREADLIB should be set to "-lpthread", though.
 This way, the NetBSD thread stubs will actually work, and everything
will be automagically thread-safe.

By my lights, we should switch to individual packages for each
library.  Moreover, we should completely scrap the Mesa-provided build
system and use our own BSD makefiles.  OpenBSD's Xorg build does this,
as does our own xsrc.

It might even make sense to package Mesa's GL headers seperately,
perhaps even generating a pkg-config file (see mk/fuse.buildlink3.mk
for an example of this) for them so that we could pull them in when
x11/glproto is outdated or otherwise insufficient.

--Blair

-- 
Support WFMU-FM: free-form radio for the masses!
<http://www.wfmu.org/>

"The frivolity and boredom which unsettle the established order, the
vague foreboding of something unknown, these are the heralds of
approaching change.  The gradual crumbling that left unaltered the
face of the whole is cut short by a sunburst which, in one flash,
illuminates the features of the new world."  --G.W.F. Hegel,
_Phenomenology of Spirit_ 5:11