[
https://issues.apache.org/jira/browse/MESOS-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14957414#comment-14957414
]
Neil Conway commented on MESOS-3734:
------------------------------------
Turns out there basically isn't a portable way to do this on both Linux and
OSX; probably best to do sed with a backup file and then delete the backup file.
> Incorrect sed syntax for Mac OSX
> --------------------------------
>
> Key: MESOS-3734
> URL: https://issues.apache.org/jira/browse/MESOS-3734
> Project: Mesos
> Issue Type: Bug
> Reporter: Neil Conway
> Priority: Blocker
>
> The build currently fails on OSX:
> {noformat}
> ../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
> {noformat}
> This is because the sed command uses the wrong syntax for OSX: you need
> {code}sed -i ""{code} to instruct sed to not use a backup file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)