Subject: pkg/30537: graphics/MesaLib pthread usage
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kristerw@netbsd.org>
List: pkgsrc-bugs
Date: 06/16/2005 09:58:00
>Number:         30537
>Category:       pkg
>Synopsis:       graphics/MesaLib pthread usage
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 16 09:58:00 +0000 2005
>Originator:     Krister Walfridsson
>Release:        pkgsrc as of Jun 16 2005
>Organization:
	
>Environment:
	
	
System: NetBSD homeworld.netbsd.org 1.6.2_STABLE NetBSD 1.6.2_STABLE (tmp) #0: Thu Apr 15 06:12:56 UTC 2004 gendalia@ivanova.netbsd.org:/tmp i386
Architecture: i386
Machine: i386
>Description:
The graphics/MesaLib does not have any dependencies on pthreads, but
the linking of libGL.so does add -lpthread.  This makes libtool
add --lpthread in .la file, with the result that all packages
linking to libGL.so need to add an explicit dependency on pthread,
even if they don't use threads.

I think the -lpthread should be removed -- no pthreads .h files
are available during the build, so the package cannot be using
any thread functionality?  Otherwise a proper pthread dependency
should be added to the package (and its buildlink3.mk)

>How-To-Repeat:
	
>Fix:
	

>Unformatted: