Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f26389f8fcef187ab2e5c59004e4aa011fe537d3abcfc072cfd966406e5ad7b0
Ticket: 888c1a8c9d84c1f5da4a46352bbf531424fe7126
Build system issues with wacky paths
User & Date: anonymous on 2020-11-12 14:39:52
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    We have a robustness test that stresses our code for paths with odd characters
    and spaces.  We're trying to switch to using Tcl's native build systems, but it
    looks like Tcl's autotools build can't handle paths with spaces currently:
    
    /home/user/1 Odd_ source dir++/tcl8.6.10/unix/configure: line 721: test: too many arguments
    /home/user/1 Odd_ source dir++/tcl8.6.10/unix/configure: line 727: test: too many arguments
    configure: error: sources are in /home/cyapp/1 Odd_ source dir++/tcl8.6.10/unix, but `cd /home/user/1 Odd_ source dir++/tcl8.6.10/unix' does not work
    
    (There are a number of related errors - one was found to be a quoting issue:
    https://sourceforge.net/p/brlcad/code/77727 but after that was fixed more
    showed up.  With normal paths the build and install complete successfully.)
    
    The below script tries to boil down the usage scenario to reproduce the problems
    in isolation: source, build and install directories with spaces as well as flag
    setting environment variables.
    
    #!/bin/bash
    mkdir "1 Odd_ source dir++"
    mkdir "1 Odd_ build dir++"
    mkdir "1 Odd_ install dir++"
    cd "1 Odd_ source dir++"
    tar -xvf ~/Downloads/tcl8.6.10-src.tar.gz
    cd "$HOME/1 Odd_ build dir++"
    export CPPFLAGS="-I$HOME/1 Odd_ install dir++/include"
    export LDFLAGS="-L$HOME/1 Odd_ install dir++/lib"
    "$HOME/1 Odd_ source dir++/tcl8.6.10/unix/configure" --prefix="$HOME/1 Odd_ install dir++"
    
  5. foundin changed to: "8.6.10"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "19930c99070fc8f88578e9040adf6c29e378cca1"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "53. Configuration and Build Tools"
  15. title changed to: "Build system issues with wacky paths"
  16. type changed to: "Bug"