[MacPorts] #42291: llvm-3.4: error: invalid version number in '-mmacosx-version-min='
MacPorts
noreply at macports.org
Sun Apr 13 20:55:01 PDT 2014
#42291: llvm-3.4: error: invalid version number in '-mmacosx-version-min='
-------------------------------+------------------------
Reporter: david.w.watson@… | Owner: jeremyhu@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: invalid | Keywords:
Port: llvm-3.4 |
-------------------------------+------------------------
Changes (by ryandesign@…):
* status: new => closed
* resolution: => invalid
Comment:
Makefile.rules runs this code on Darwin:
{{{
# Strip a number like 10.4.7 to 10.4
DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E
's/(10.[0-9]+).*/\1/')
# Get "4" out of 10.4 for later pieces in the makefile.
DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E
's/10.([0-9]+).*/\1/')
}}}
By using the `-E` flag, this code assumes that `sed` is BSD sed; this is a
reasonable assumption on Darwin, and making `sed` be (or be a symlink to)
`gsed` will break this. So if `sed` is (or is a symlink to) `gsed` on your
system, please remove that. If you want to be able to run `gsed` by typing
`sed`, the way we intend for you to be able to do that is for you to add
/opt/macports/libexec/gnubin to your shell $PATH variable; this won't
adversely affect port builds.
--
Ticket URL: <https://trac.macports.org/ticket/42291#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list