From 9086cdebed6e01f3de247c24d3ebe1be304fdea1 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:36:49 +0800 Subject: [PATCH] node: fix build with brewed c-ares This applies the patch from nodejs/node#39739. This patch has been used to ship Node 16.6.2 on Arch. --- Formula/node.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/node.rb b/Formula/node.rb index d1462cd4f3365..7ed0a08c3bc17 100644 --- a/Formula/node.rb +++ b/Formula/node.rb @@ -43,6 +43,13 @@ class Node < Formula sha256 "bf73538dbcd933e5a9d9575c0c39539aee3e70b32e27837037681662d3bc2c0b" end + # Fix build with brewed c-ares. + # https://github.com/nodejs/node/pull/39739 + patch do + url "https://github.com/nodejs/node/commit/8699aa501c4d4e1567ebe8901e5ec80cadaa9323.patch?full_index=1" + sha256 "678643c79258372d5054d3da16bc0c5db17130f151f0e72b6e4f20817987aac9" + end + def install # make sure subprocesses spawned by make are using our Python 3 ENV["PYTHON"] = Formula["python@3.9"].opt_bin/"python3"