diff --git a/Formula/node.rb b/Formula/node.rb index 6eb722d8ad..32b77c2c21 100644 --- a/Formula/node.rb +++ b/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