From jmcoopr@webmail.bmi.net  Fri Aug 17 09:56:16 2001
Return-Path: <jmcoopr@webmail.bmi.net>
Received: from yoda.bmi.net (yoda.bmi.net [204.57.191.163])
	by hub.freebsd.org (Postfix) with ESMTP
	id 05AE337B40A; Fri, 17 Aug 2001 09:56:15 -0700 (PDT)
	(envelope-from jmcoopr@webmail.bmi.net)
Received: from johncoop.MSHOME (drumheller-router.bmi.net [206.63.201.3] (may be forged))
	by yoda.bmi.net (Pro-8.9.3/Pro-8.9.3) with ESMTP id JAA07859;
	Fri, 17 Aug 2001 09:55:58 -0700
Received: (from jmcoopr@localhost)
	by johncoop.MSHOME (8.11.5/8.11.5) id f7HGuIp01113;
	Fri, 17 Aug 2001 09:56:18 -0700 (PDT)
	(envelope-from jmcoopr)
Message-Id: <200108171656.f7HGuIp01113@johncoop.MSHOME>
Date: Fri, 17 Aug 2001 09:56:18 -0700 (PDT)
From: John Merryweather Cooper <jmcoopr@webmail.bmi.net>
Reply-To: John Merryweather Cooper <jmcoopr@webmail.bmi.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sam@inf.enst.fr, sobomax@freebsd.org
Subject: Last portion of gtkada needs ${PTHREAD_LIBS} incl. [PATCH]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29811
>Category:       ports
>Synopsis:       Last portion of gtkada needs ${PTHREAD_LIBS} incl. [PATCH]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 17 10:00:11 PDT 2001
>Closed-Date:    Tue Sep 4 09:52:50 PDT 2001
>Last-Modified:  Tue Sep 04 09:53:45 PDT 2001
>Originator:     John Merryweather Cooper
>Release:        FreeBSD 4.4-RC i386
>Organization:
>Environment:
System: FreeBSD johncoop.MSHOME 4.4-RC FreeBSD 4.4-RC #4: Fri Aug 17 05:57:57 PDT 2001 jmcoopr@johncoop.MSHOME:/usr/obj/usr/src/sys/JOHNCOOP i386


	
>Description:
	GtkAda dies during last part of build during gnatmake of testgtk.  It's
	dying for lack of ${PTHREAD_LIBS}.  Attached patch fixes this.

>How-To-Repeat:
	Attempt to build on -STABLE

>Fix:

diff -ruN gtkada/Makefile gtkada.new/Makefile
--- gtkada/Makefile	Wed Aug 15 10:32:44 2001
+++ gtkada.new/Makefile	Fri Aug 17 01:11:59 2001
@@ -29,6 +29,8 @@
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
 		LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+MAKE_ENV=	LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+
 PLIST_SUB=	SHLIB_VERSION=${SHLIB_VERSION}
 
 MAN1=	dgate.1 gate.1 gtkada-config.1
diff -ruN gtkada/files/patch-testgtk::Makefile.in gtkada.new/files/patch-testgtk::Makefile.in
--- gtkada/files/patch-testgtk::Makefile.in	Wed Aug 15 02:56:11 2001
+++ gtkada.new/files/patch-testgtk::Makefile.in	Fri Aug 17 01:27:35 2001
@@ -1,16 +1,15 @@
-
-$FreeBSD: ports/x11-toolkits/gtkada/files/patch-testgtk::Makefile.in,v 1.1 2001/08/15 09:56:11 sobomax Exp $
-
---- testgtk/Makefile.in	2001/08/15 08:56:29	1.1
-+++ testgtk/Makefile.in	2001/08/15 08:57:20
-@@ -15,8 +15,8 @@
+--- testgtk/Makefile.in	Fri Apr 27 18:20:15 2001
++++ testgtk/Makefile.in.new	Fri Aug 17 01:26:49 2001
+@@ -15,9 +15,9 @@
  
  CC = @CC@
  GTKADA_CONFIG=gtkada-config
 -GNATFLAGS = @CFLAGS@ -gnata
 -GNATFLAGS_DEVEL = @CFLAGS@ -g -gnatawu
+-TARGET_LFLAGS = @TARGET_LFLAGS@
 +GNATFLAGS = -O2 -gnata
 +GNATFLAGS_DEVEL = -O2 -g -gnatawu
- TARGET_LFLAGS = @TARGET_LFLAGS@
++TARGET_LFLAGS = $(LDFLAGS)
  
  GNATMAKE = gnatmake
+ GNATMAKELDFLAGS = -largs -L$(src_dir) -L$(opengl_dir) -lgtkada @GTK_LIBS@ \
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->lioux 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Mon Sep 3 13:32:15 PDT 2001 
Responsible-Changed-Why:  
I'll handle this 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29811 
State-Changed-From-To: open->closed 
State-Changed-By: lioux 
State-Changed-When: Tue Sep 4 09:52:50 PDT 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29811 
>Unformatted:
