Possibly hazardous 'rm -Rf pkgs' in unix/configure(.in)?
Closed / Accepted3555001fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-08-07 05:06:35
If unix/configure is run from the top level source dir then Tcl's own pkgs dir will be removed. Not everyone may find this convenient.
ferrieuxplain2012-08-07 16:35:53
Yes, this is the result of commit de38d43a1e , fixing bug 2812981 . This seemingly harsh move was deemed a "lesser evil" wrt effects of (hard to diagnose) stale config issues. If you find a milder way of blending oil and water, be my guest ;)
dkfplain2012-08-07 19:24:19
Why is this considered to be a problem worth spending effort on at all? If you're not doing the build in the correct platform directory, do it in a new directory outside the source tree. Problem solved.
stwoplain2012-08-07 22:11:05
It is considered a problem because it is surprise behaviour. Why is it considered a problem not to always start in an empty directory? A note in the docs might be helpful.
dgpplain2012-09-13 22:03:01
How about this as a different solution? Instead of having the line rm -Rf pkgs in Tcl's unix/configure.in, we could have instead a test for whether the file "Makefile" exists in the current directory, and if it does, then attempt `make distclean-packages`. I think that would be a way to solve the "stale config" issue, but in a way that's less likely to be unintentionally destructive.
dgpplain2012-09-13 23:19:47
Branch bug-3555001 is what I have in mind.
ferrieuxplain2012-09-13 23:50:44
Sure. The initial commit was really a quick, approximate one. Thanks for doing it Right.
dgpplain2012-09-17 19:23:48
allow_comments - 1
Log in (anonymous is fine) to add a comment.