PWD make variable in packages target
Closed / Fixed3009227fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 42 days ago
Descriptionplain2010-05-30 17:04:17
[ trying to build Tcl CVS HEAD on Windows using MSSDK + mingw ]
The "packages:" target in win/Makefile.in has:
packages:
@builddir=`pwd`; \
[...]
echo "Configuring package '$$i' wd = `pwd`"; \
$$i/configure --with-tcl=$(PWD) [...]
However, $(PWD) is not always set by make or the shell. (In particular: CMD.EXE doesn't set it, nor apparently does GNU make. I think PWD is a bashism, don't recall for sure.)
Anyway, changing this to "--with-tcl-$$builddir" (or "--with-tcl=../..", as is done in unix/Makefile.in) seems to do the trick.
Referenced by1
72da655a9cClosed ticket [2957998fff]: Packages tdbc and itcl not built when plus 4 other changes ticket2026-10-21 10:03:38
dgpplain2010-06-01 20:43:32
See 2008-12-21 commit to unix/Makefile.in I think the ../.. answer is sadly necessary.
venksiplain2010-06-24 23:03:03
To add some more info, this causes the packages (tdbc and itcl) to not build. The error reported (by make) is: Building package 'itcl' make[1]: Entering directory `/c/tools/tcl/8.6-head/tcl/win/pkgs/itcl' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/c/tools/tcl/8.6-head/tcl/win/pkgs/itcl' Configuring package '/c/tools/tcl/8.6-head/tcl/pkgs/tdbc' wd = /c/tools/tcl/8.6-head/tcl/win/pkgs/tdbc checking for correct TEA configuration... ok (TEA 3.7) checking for cygpath... echo checking for Tcl configuration... configure: error: c:/tools/tcl/8.6-head directory doesn't contain tclConfig.sh Building package 'tdbc' make[1]: Entering directory `/c/tools/tcl/8.6-head/tcl/win/pkgs/tdbc' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/c/tools/tcl/8.6-head/tcl/win/pkgs/tdbc' Ignoring that and doing a make install anyway causes sh to core dump: Configuring package '/c/tools/tcl/8.6-head/tcl/pkgs/itcl' wd = /c/tools/tcl/8.6-head/tcl/win/pkgs/itcl /c/tools/tcl/8.6-head/tcl/pkgs/itcl/configure: line 95: 5936 Segmentation fault (core dumped) ( $as_unset $as_var ) >/dev/null 2>&1 Joe's fix
venksiplain2010-06-24 23:03:32
... to continue the previous comment ... Joe's fix works.
serhiy.storchakawiki2026-10-21 10:03:38
Fixed in 8.6.1 by [0d1bc53480] and [d433d96843]: the packages targets in win/Makefile.in pass --with-tcl=$builddir instead of the unset $(PWD).
serhiy.storchaka Ticket [3009227fff]: 3 changes
[History diff]2026-10-22 17:19:31
Log in (anonymous is fine) to add a comment.