Date: Wed, 23 Jan 2002 08:44:56 -0800 (PST) From: Peter Eisentraut <peter_e@gmx.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/34210: Tcl port screws up tclConfig.sh Message-ID: <200201231644.g0NGiud78313@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 34210 >Category: ports >Synopsis: Tcl port screws up tclConfig.sh >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 23 08:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Peter Eisentraut >Release: 4.5, head >Organization: PostgreSQL development team >Environment: I'm not using FreeBSD, but I'm forced to fix problems caused by FreeBSD. ;-) >Description: In the port lang/tcl84, file files/patch-configure, revision 1.5 (might apply to earlier revisions, other branches, other Tcl ports as well) you set SHLIB_LD="ld -shared -x -soname \$@". This gets substituted into tclConfig.sh as TCL_SHLIB_LD which others software packages are supposed to use to build with Tcl support. This leads to two problems: If I use TCL_SHLIB_LD to build a shared library linked against libtcl, how do you know my makefile target is the soname I want? tclConfig.sh isn't a makefile, it's a shell script. Notice how some lines in tclConfig.sh contain single-quoted variable references: you're supposed to "eval" each of these lines in a shell before using them, so if you have a $@ in there you get completely wrong results. >How-To-Repeat: Install any recent version of PostgreSQL from source with Tcl support on a recent FreeBSD. Most likely to mess up a lot of other Tcl-using programs as well. >Fix: Revert this change and patch the makefiles if you want the soname in there. =OR= Make sure that this alteration of SHLIB_LD is reverted before it's subsituted into TCL_SHLIB_LD. >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?200201231644.g0NGiud78313>