Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2002 00:47:47 +0200 (CEST)
From:      Palle Girgensohn <girgen@partitur.se>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42010: postgresql-tcltk fix for different tcl versions
Message-ID:  <200208252247.g7PMll3p003923@palle.girgensohn.se>

next in thread | raw e-mail | index | archive | help

>Number:         42010
>Category:       ports
>Synopsis:       postgresql-tcltk fix for different tcl versions
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 25 15:50:05 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn <girgen@partitur.se>
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
Partitur
>Environment:
System: FreeBSD palle.girgensohn.se 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #11: Fri Dec 28 17:22:10 CET 2001 root@palle.girgensohn.se:/usr/obj/usr/src/sys/STORDATAN i386


	
>Description:
Unfortunately, I've lost the mail about this, so I cannot remember who
actually sent me this patch. I am deeply sorry! Still, it helps, so
please commit.

>How-To-Repeat:
	
>Fix:
Index: postgresql-tcltk/Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/postgresql-tcltk/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- postgresql-tcltk/Makefile	14 Apr 2002 19:32:57 -0000	1.2
+++ postgresql-tcltk/Makefile	25 Aug 2002 21:41:50 -0000
@@ -26,6 +26,13 @@
 TCL_INCDIR=	${LOCALBASE}/include/tcl${TCLVERSION}
 TCLCONFIG=	${LOCALBASE}/lib/tcl${TCLVERSION}
 MAKE_ENV+=	TCL_INCDIR=${TCL_INCDIR}
+
+CONFIGURE_ENV+=	LIBS="-lm -L${LOCALBASE}/lib -ltcl${TCLVERSION:S/.//}" \
+		CFLAGS=-DPGTCL_USE_TCLOBJ
+
+.if defined(WITHOUT_X11)
+WITHOUT_TK=	yes
+.endif
 
 .if defined(WITHOUT_TK)
 CONFIGURE_ARGS+= --without-tk
--- /dev/null	Mon Aug 26 00:32:50 2002
+++ postgresql-tcltk/files/patch-libpgtcl	Tue Apr  2 21:55:13 2002
@@ -0,0 +1,9 @@
+--- src/interfaces/libpgtcl/Makefile	Thu May 10 21:46:33 2001
++++ src/interfaces/libpgtcl/Makefile	Fri Mar 29 05:11:10 2002
+@@ -26,5 +26,5 @@
+ # to be referenced separately to keep (broken) linkers happy.  (This is
+ # braindead; users of libpq should not need to know what it depends on.)
+-SHLIB_LINK+= $(filter -L%, $(LDFLAGS)) $(filter -lcrypt, $(LIBS))
++SHLIB_LINK+= $(filter -L%, $(LDFLAGS)) $(filter -lcrypt -L% -ltcl83 -ltcl84, $(LIBS))
+ 
+ all: submake all-lib
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208252247.g7PMll3p003923>