Skip to content

Commit 1cdba53

Browse files
authored
Merge pull request Homebrew#168517 from Homebrew/node@16-revbump
node@16: bump revision (icu4c 74.2)
2 parents 0e7bcdf + 153c828 commit 1cdba53

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

Formula/n/[email protected]

+23-12
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ class NodeAT16 < Formula
44
url "https://nodejs.org/dist/v16.20.2/node-v16.20.2.tar.xz"
55
sha256 "576f1a03c455e491a8d132b587eb6b3b84651fc8974bb3638433dd44d22c8f49"
66
license "MIT"
7+
revision 1
78

89
bottle do
9-
rebuild 1
10-
sha256 cellar: :any, arm64_sonoma: "27070fb9275d5dd1d4bf816659705acc1048ff947a30cc6b0816900d198fab69"
11-
sha256 cellar: :any, arm64_ventura: "6712e525f435f790df664cf063b18f85973043f8a3817e14764f0e73ba3d14ce"
12-
sha256 cellar: :any, arm64_monterey: "d6849c663947a208dbb494be1433ecea9736896988b7078d41e3ed002eb3d0c5"
13-
sha256 cellar: :any, sonoma: "5422ad0692efb86e6499645e9cc91de15ae688d426991ae24084fe89a76394c3"
14-
sha256 cellar: :any, ventura: "8a163469a0ee7d005efc9ded82e6de9fe80075a207aaaff6c69b675c3fe2e17f"
15-
sha256 cellar: :any, monterey: "7c3eace3570476ba69a6922f1de10dab934112fbf5c5f7ae7a6f1b3f30518f44"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "5ade4824e8c644789ac5dcbe03b5e58cf6f07915ebe22771de948a159dd05da9"
10+
sha256 cellar: :any, arm64_sonoma: "631a5ed1cd7834f440c6165474fe9affca55e9731d21abb42f01ebf3aa8fd1f6"
11+
sha256 cellar: :any, arm64_ventura: "7efc4bbee5dcd2bfce309895cf9870fa0c652c641d887c37e1061fcbc13c1cf0"
12+
sha256 cellar: :any, arm64_monterey: "1541329ebab112c5c0ad0cf81d0f81e4ad646587bab5e0824ca7b6849c0d53f6"
13+
sha256 cellar: :any, sonoma: "70b178141af156260fbd2d1e7d03c1b74bc5878b11b9e4897f9e123e5626518d"
14+
sha256 cellar: :any, ventura: "bd526bbf8a16f7da6349fb7a0fb3b182784512bf4b527d622529c8c907f3d8d7"
15+
sha256 cellar: :any, monterey: "e3a8ed83a860e58ff03d4b3045715a26510b988dbeca39ded563cbf679da17e9"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "769953ce120b601f5523298a89df52db171e50053c9311daf3cd9f0ecee71944"
1717
end
1818

1919
keg_only :versioned_formula
@@ -22,18 +22,21 @@ class NodeAT16 < Formula
2222
deprecate! date: "2023-11-02", because: :unsupported
2323

2424
depends_on "pkg-config" => :build
25-
depends_on "python-setuptools" => :build
26-
depends_on "[email protected]" => :build
25+
depends_on "[email protected]" => :build
2726
depends_on "brotli"
2827
depends_on "c-ares"
2928
depends_on "icu4c"
3029
depends_on "libnghttp2"
3130
depends_on "libuv"
3231
depends_on "openssl@3"
3332

34-
uses_from_macos "python", since: :catalina
3533
uses_from_macos "zlib"
3634

35+
# node-gyp bundled in npm does not support Python 3.12.
36+
on_system :linux, macos: :mojave_or_older do
37+
depends_on "[email protected]"
38+
end
39+
3740
fails_with :clang do
3841
build 1099
3942
cause "Node requires Xcode CLT 11+"
@@ -42,7 +45,12 @@ class NodeAT16 < Formula
4245
fails_with gcc: "5"
4346

4447
def install
45-
python3 = "python3.12"
48+
# ../deps/v8/src/base/bit-field.h:43:29: error: integer value 7 is outside
49+
# the valid range of values [0, 3] for this enumeration type
50+
# [-Wenum-constexpr-conversion]
51+
ENV.append_to_cflags "-Wno-enum-constexpr-conversion" if DevelopmentTools.clang_build_version >= 1500
52+
53+
python3 = "python3.11"
4654
# make sure subprocesses spawned by make are using our Python 3
4755
ENV["PYTHON"] = which(python3)
4856

@@ -90,6 +98,9 @@ def post_install
9098
# make sure npm can find node
9199
ENV.prepend_path "PATH", opt_bin
92100
ENV.delete "NVM_NODEJS_ORG_MIRROR"
101+
if OS.linux? || (OS.mac? && MacOS.version <= :mojave)
102+
ENV.prepend_path "PATH", Formula["[email protected]"].opt_libexec/"bin"
103+
end
93104
assert_equal which("node"), opt_bin/"node"
94105
assert_predicate bin/"npm", :exist?, "npm must exist"
95106
assert_predicate bin/"npm", :executable?, "npm must be executable"

0 commit comments

Comments
 (0)