Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3734

Incorrect sed syntax for Mac OSX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.26.0
    • None
    • Mesosphere Sprint 21
    • 2

    Description

      The build currently fails on OSX:

      ../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src/protoc -I../../mesos/include/mesos/containerizer		\
      		-I../../mesos/include -I../../mesos/src						\
      		--python_out=python/interface/src/mesos/interface ../../mesos/include/mesos/containerizer/containerizer.proto
      ../../mesos/install-sh -c -d python/interface/src/mesos/v1/interface
      sed -i 's/mesos\.mesos_pb2/mesos_pb2/' python/interface/src/mesos/interface/containerizer_pb2.py
      sed: 1: "python/interface/src/me ...": extra characters at the end of p command
      make[1]: *** [python/interface/src/mesos/interface/containerizer_pb2.py] Error 1
      

      This is because the sed command uses the wrong syntax for OSX: you need

      sed -i ""

      to instruct sed to not use a backup file.

      Attachments

        Activity

          People

            neilc Neil Conway
            neilc Neil Conway
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: