diff options
| author | Dominyk Tiller | 2015-02-10 20:58:58 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-11 14:16:19 +0000 |
| commit | 2bfa1000b66d021da073b75e51c3f93423ddeea2 (patch) | |
| tree | 6a1f378a5278641878a554c08a4d0fd8cb3f4446 /Library | |
| parent | ea4b0a6e6751ef6224907cf6d0e152c3e336ca96 (diff) | |
| download | homebrew-2bfa1000b66d021da073b75e51c3f93423ddeea2.tar.bz2 | |
node: tweak icu4c setup
Personally, I’d be content to keep the dep as recommended, but it’s
possible the big red warning on the different build standards is making
people jumpy, and there are use cases where the `icu4c` dep does
interfere with certain usage, so I’ve partially reverted the direction
I took in the Node PR the other day by making the new ICU capabilities
optional.
Also added a caveat for the benefit of clarity, and hope more people
complain to Node upstream to fix the real root cause of the problem
here and make life for packagers a little easier.
Closes #36712.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/node.rb | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index 6eb722d8a..32b77c2c2 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -19,9 +19,12 @@ class Node < Formula depends_on :python => :build depends_on "pkg-config" => :build - depends_on "icu4c" => :recommended depends_on "openssl" => :optional + # https://github.com/joyent/node/issues/7919 + # https://github.com/Homebrew/homebrew/issues/36681 + depends_on "icu4c" => :optional + fails_with :llvm do build 2326 end @@ -114,6 +117,18 @@ class Node < Formula EOS end + if build.with? "icu4c" + s += <<-EOS.undent + + Please note `icu4c` is built with a newer deployment target than Node and + this may cause issues in certain usage. Node itself is built against the + outdated `libstdc++` target, which is the root cause. For more information see: + https://github.com/joyent/node/issues/7919 + + If this is an issue for you, do `brew install node --without-icu4c`. + EOS + end + s end |
