Skip to content

Commit 9112e08

Browse files
committed
uvwasi: remove workaround
This was fixed upstream in nodejs/uvwasi#308. Also, let's apply nodejs/uvwasi#311 to ensure that all the symbols that Node needs are exported.
1 parent 09507e0 commit 9112e08

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Formula/u/uvwasi.rb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
class Uvwasi < Formula
22
desc "WASI syscall API built atop libuv"
33
homepage "https://github.com/nodejs/uvwasi"
4-
url "https://github.com/nodejs/uvwasi/archive/refs/tags/v0.0.22.tar.gz"
5-
sha256 "255b5d4b961ab73ac00d10909cd2a431670fc708004421f07267e8d6ef8a1bc8"
64
license "MIT"
75
head "https://github.com/nodejs/uvwasi.git", branch: "main"
86

7+
# TODO: Remove `stable` block when patch is no longer needed.
8+
stable do
9+
url "https://github.com/nodejs/uvwasi/archive/refs/tags/v0.0.22.tar.gz"
10+
sha256 "255b5d4b961ab73ac00d10909cd2a431670fc708004421f07267e8d6ef8a1bc8"
11+
12+
# Ensure all symbols required by Node are exported.
13+
# https://github.com/nodejs/uvwasi/pull/311
14+
patch do
15+
url "https://github.com/nodejs/uvwasi/commit/7803a3183b4ed3ab975311eeb014365e56a85950.patch?full_index=1"
16+
sha256 "736e47f765c63316bb99af6599219780822d1ba708a96bfe9ae1176ad2ca6c43"
17+
end
18+
end
19+
920
bottle do
1021
sha256 cellar: :any, arm64_sequoia: "a1301aacda0bff9a5b103cde120e19aaac78ffbe5f09705b1c1d2325bd4be626"
1122
sha256 cellar: :any, arm64_sonoma: "80082a287224d9ecfa860812342997f6a628a3dd286357220bf61e90ff8ed2ba"
@@ -20,9 +31,6 @@ class Uvwasi < Formula
2031
depends_on "libuv"
2132

2233
def install
23-
# `-fvisibility=hidden` makes the shared library pretty useless.
24-
# https://github.com/nodejs/uvwasi/issues/231
25-
inreplace "CMakeLists.txt", "-fvisibility=hidden", ""
2634
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
2735
system "cmake", "--build", "build"
2836
system "cmake", "--install", "build"

0 commit comments

Comments
 (0)