Artifacts Associated With Ticket 1913622
Ticket change [25f5d6de5d] (rid 88256) by dgp on 2008-03-13 15:38:58:
- assignee initialized to: "das"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Until yesterday, the TCL_LIB_SPEC value in tclConfig.sh looked like this: TCL_LIB_SPEC='-L/home/dgp/i686/linux/lib -ltcl8.5' Now it looks like this: TCL_LIB_SPEC='-L"/home/dgp/i686/linux/lib" -ltcl8.5' This breaks a system of build scripts (written in Tcl) that I have for programs that embed Tcl. That build script system takes the TCL_LIB_SPEC value, puts each word of it in "..." quotes and lappends each word to the list of arguments to be passed to [exec]. Starting today, my attempts to build produce the "extra characters after close-quote" error. I'll look into whether this can be resolved with more defensive coding of the build scripts, but if this change broke my stuff, it probably broke other stuff too. Can we reconsider, or at least save such a change for the 8.6 alphas?
- foundin initialized to: "obsolete: 8.5.2"
- is_private initialized to: "0"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "TCL_LIB_SPEC change breaks stuff"
- type initialized to: "Bug"
Ticket change [94f14c230f] (rid 106082) by das on 2008-03-13 23:23:37:
- icomment:
Logged In: YES user_id=90580 Originator: NO the quoting was added to allow for the path to the lib dir and esp the tcl build dir to contain spaces... the other possibility would have been to backslash-quote those spaces e.g. via sed, it sounds like that would be a more compatible option?
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [f754aaa9c0] (rid 91360) by dgp on 2008-03-13 23:27:19:
- icomment:
Logged In: YES user_id=80530 Originator: YES Even after working around the "-L"/path/to/library"" quoting problem, I end up with the value {-L"/path/to/library"} as an argument passed to [exec]. [exec] treats those quoted literally, so my linker is then looking in a directory that has the quotes as part of its name. Final result is /usr/bin/ld: cannot find -ltk8.5 - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ef8158c17d] (rid 109004) by dgp on 2008-03-13 23:32:11:
- icomment:
Logged In: YES user_id=80530 Originator: YES x-ed It sounds like the approach of backslash quoting spaces in the path would at least leave those paths without spaces unmolested, and I'd be at least no worse off than I was before. (I don't know whether all instances of spaces in path names work in my build system or not). I don't mind making improvements in this area. In fact I made a big effort in this direction once (553544). But I really don't want a change in a patchlevel release to break my entire installed base, and that's what this change does. I either need something gentler, or a delay to the 8.6 development timeframe.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [0fb67fcb23] (rid 94843) by das on 2008-03-13 23:37:52:
- icomment:
Logged In: YES user_id=90580 Originator: NO understood, ok, will switch all the double-quoted cases that end up in tclConfig.sh to backslash quoting
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [a86343119c] (rid 98983) by andreas_kupries on 2008-03-13 23:48:18:
- icomment:
Logged In: YES user_id=75003 Originator: NO Note that AIX is worse off. Because of its linker idiosyncrasies it doesn't use -ltcl8.x, but appends a file directly to the path. The result can be seen below. tclConfig.sh:TCL_BUILD_LIB_SPEC='-bI:"/home/andreask/dbn/lba/night/builds/aix-rs6000/tcl.inst/unix/aix-rs6000"/lib.exp' tclConfig.sh:TCL_LIB_SPEC ='-bI:"/home/andreask/dbn/lba/night/builds/aix-rs6000/out/aix-rs6000/lib"/libtcl8.5.exp' Do you see how the quotes break the final path? Bash might understand that, most other shell I don't believe so.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [a9cbe0dc18] (rid 99212) by dgp on 2008-03-13 23:50:42:
- icomment:
Logged In: YES user_id=80530 Originator: YES I'm happy to hear it's not just my old broken crap that has trouble with this. :)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [0d5b24342d] (rid 114345) by das on 2008-03-14 00:50:54:
- closedate changed to: "2008-03-13T17:50:54"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 Originator: NO committed switch to backslash quoting for LIB_SPEC values. none of the other quoting changes make it into *Config.sh so should not cause this type of problem. sorry about the mess, hopefully this fixes it...
- login: "das"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "das"
Ticket change [4ac7219592] (rid 126583) by andreas_kupries on 2008-03-14 00:55:44:
- icomment:
Logged In: YES user_id=75003 Originator: NO I will run another 8.5 build this to see what things will look like on AIX with the latest change. If the '"'s were simply changed to '\"', well I do not see '\"A\"/x.exp' working or as valid path.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [45b9886787] (rid 99396) by dgp on 2008-03-14 02:09:12:
- icomment:
Logged In: YES user_id=80530 Originator: YES That change takes care of my problems. Thanks!
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [97444e93cc] (rid 106476) by das on 2008-03-14 03:58:24:
- closedate changed to: "2008-03-13T20:58:24"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 Originator: NO Andreas, no the change removes the surrounding '"'s and instead replaces any ' ' in the path by '\ '. this is a bit less strong (only makes spaces safe), but is good enough for my needs... according to 'man bash' the full list of metachars that would need to be quoted to be completely safe is: " ' ! $ ` \ | & ; ( ) < > space tab
- login: "das"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "das"
Ticket change [415ddb09da] (rid 116179) by dgp on 2008-03-14 04:11:25:
- icomment:
Logged In: YES user_id=80530 Originator: YES This is less important to me, but.... $ cd tcl8.5.2/unix $./configure --prefix="/home/dgp/path space" ... checking if the C stack grows upwards in memory... no ./configure: line 18609: space/lib: No such file or directory configure: creating ./config.status ... $ grep TCL_LIB_SPEC tclConfig.sh TCL_LIB_SPEC='-L/home/dgp/path space/lib -ltcl8.5' So is the revised scheme working?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e94e4b37aa] (rid 104798) by das on 2008-03-14 04:20:13:
- icomment:
Logged In: YES user_id=90580 Originator: NO as mentioned in the ChangeLog, my changes only enable INSTALL_ROOT and path to builddir to contain spaces, I did not quote any of the standard bindir, libdir, includedir etc (which are based on prefix). if you try again with a builddir with spaces in the path you should see the new scheme working, but note that the path to srcdir cannot contain any spaces due to a bug in autoconf... I was originally more ambitious about quoting everything but when I discovered that autoconf bug I gave up and concentrated on what I needed in the short term...
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment: