Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48885

Pathsplit bug in build.ninja generated file with PATH components containing spaces

    • Fully Compatible
    • ALL
    • v4.4
    • Dev Platform 2020-06-29, Dev Platform 2020-07-13

      While attempting to build on macOS Catalina, I received an error: 

      /bin/sh: Fusion.app/Contents/Public: No such file or directory
      

      Which immediately looks like a path split on "VMware Fusion" and is confirmed by looking in build.ninja and seeing many repetitions of the following pattern:

      build +auth_op_observer_test: CMD build/install/bin/db_auth_test | build/install/bin/db_auth_test $
          || _generated_sources
        pool = console
        cmd = build/install/bin/db_auth_test -fileNameFilter auth_op_observer_test
        env = PATH=/usr/local/bin:/opt/bin:/bin:/usr/bin $
            PATHOSX=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware $
            Fusion.app/Contents/Public 
      

      Manually editing this file to include a backslash after "VMware\ " resolves the issue.

      scons invocation:

      python3.7 buildscripts/scons.py --link-model=static -j24 MONGO_VERSION=0.0.0 MONGO_GIT_HASH=unknown --ninja build.ninja
      

      macOS: 10.15.2
      Xcode: 11.1 (11A1027)
      python: 3.7.2 (Homebrew)

            Assignee:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Reporter:
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: