From heath@hershey.dyn.bar.net  Thu Nov 15 21:44:17 2001
Return-Path: <heath@hershey.dyn.bar.net>
Received: from hershey.dyn.bar.net (c1603280-a.provo1.ut.home.com [65.5.37.42])
	by hub.freebsd.org (Postfix) with ESMTP id D499437B418
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Nov 2001 21:44:15 -0800 (PST)
Received: (from heath@localhost)
	by hershey.dyn.bar.net (8.11.6/8.11.5) id fAG5iDq23718;
	Thu, 15 Nov 2001 22:44:13 -0700 (MST)
	(envelope-from heath)
Message-Id: <200111160544.fAG5iDq23718@hershey.dyn.bar.net>
Date: Thu, 15 Nov 2001 22:44:13 -0700 (MST)
From: Heath Nielson <heath@cs.byu.edu>
Reply-To: Heath Nielson <heath@cs.byu.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] fix devel/linguist
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32032
>Category:       ports
>Synopsis:       [patch] fix devel/linguist
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sobomax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 21:50:00 PST 2001
>Closed-Date:    Fri Nov 23 10:18:04 PST 2001
>Last-Modified:  Fri Nov 23 10:18:21 PST 2001
>Originator:     Heath Nielson
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD hershey.dyn.bar.net 4.4-STABLE FreeBSD 4.4-STABLE #1: Wed Nov 14 22:15:39 MST 2001 heath@hershey.dyn.bar.net:/usr/src/sys/compile/HERSHEY i386


	
>Description:

Build fails with the following linker error:

/usr/X11R6/lib/libGL.so.1: undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.so.1: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.so.1: undefined reference to `pthread_setspecific'

Note: I tried submitting this pr earlier, but I think I thoroughly screwed it
up so it wasn't accepted, if this is a dup please disregard.
	
>How-To-Repeat:

cd /usr/ports/devel/linguist && make
	
>Fix:

I'm not sure how it's supposed to be fixed, but by adding thread to the
CONFIG line in each of the .pro files fixes the problem.

--- Makefile.orig       Wed Nov 14 12:54:41 2001
+++ Makefile    Wed Nov 14 12:51:15 2001
@@ -33,6 +33,10 @@
 CFLAGS+=       -O0
 .endif

+pre-configure:
+	@find ${WRKSRC} -name '*.pro' | xargs ${PERL} -pi -e \
+		's/(^CONFIG.*)/\1 thread/'
+
 post-configure:
 	@${PERL} -pi -e 's|\$\(SUBDIRS\):.*tmake_all|\$\(SUBDIRS\):|' \
 		${WRKSRC}/Makefile
	
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->sobomax  
Responsible-Changed-By: pat 
Responsible-Changed-When: Fri Nov 16 20:48:31 PST 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32032 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Fri Nov 23 10:18:04 PST 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=32032 
>Unformatted:
