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

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Dev Platform 2020-06-29, Dev Platform 2020-07-13

      Description

      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)

        Attachments

          Activity

            People

            Assignee:
            ryan.egesdahl Ryan Egesdahl
            Reporter:
            sara.golemon Sara Golemon
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: