Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-10-06
13:14 • Closed ticket [2459774fff]: win/tcl/Makefile.in not compatible with msys 0.8... artifact: 58cbebd6cf user: nijtmans
05:24 • Ticket [2459774fff]: 4 changes artifact: a4bb8a8c89 user: nijtmans
2012-09-29
11:28 • Ticket [2459774fff]: 1 change artifact: b1ad27e81f user: stwo
2008-12-22
23:52 • New ticket [2459774fff]. artifact: 47afd5d7ef user: venksi

win/tcl/Makefile.in not compatible with msys 0.8

Closed / Fixed2459774fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 14 years ago
Descriptionplain2008-12-22 23:52:41
1.146 of the win/tcl/Makefile.in has:

TOP_DIR= $(shell cd @srcdir@/..; pwd)

In msys 0.8, this makes TOP_DIR become something like this:

c:/users/venks/prg/tcl/head

The : in that breaks VPATH searches.   So HEAD doesn't build with msys0.8.
Changing it to this fixes it:

TOP_DIR= $(shell cd @srcdir@/..; pwd -P)

pwd -P causes the path to be returned as : 

/c/users/venks/prg/tcl/head

which makes VPATH happy.

From the chatroom (with kbk).  It seems that the default is different msys1.0
msys1.0 returns /c/ style paths without the -P flag.   It returns /c/ style 
paths even with the -P flag.

Adding the -P flag would make it compatible with both msys 0.8 and msys 1.0
stwo Ticket [2459774fff]: 1 change [History diff]2012-09-29 11:28:15
nijtmansplain2012-10-06 05:24:50
I agree with adding -P here. 
pwd has two options in any shell I know: -L or -P.
Older posix manuals indicate that -L is the
default, in newer manuals -P is the default.
The difference between -L and -P is that the
latter does not require the PWD env var,
and it resolves symlinks.
So, on modern systems, pwd -P is the same
as pwd. On older systems it is not. Explicitly
putting -P increases the consistancy between
platforms, not only between msys 0.8
and 1.0.
nijtmansplain2012-10-06 13:14:08
Fixed on trunk
Log in (anonymous is fine) to add a comment.