Skip to content

Commit

Permalink
nghttp2: add Linux-only patch (#67447)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeekingMeaning authored Dec 22, 2020
1 parent 12e5cf5 commit 6fd8712
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Formula/nghttp2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ class Nghttp2 < Formula
uses_from_macos "libxml2"
uses_from_macos "zlib"

on_linux do
# Fix: shrpx_api_downstream_connection.cc:57:3: error:
# array must be initialized with a brace-enclosed initializer
# https://github.com/nghttp2/nghttp2/pull/1269
patch do
url "https://github.com/nghttp2/nghttp2/commit/829258e7038fe7eff849677f1ccaeca3e704eb67.patch?full_index=1"
sha256 "c4bcf5cf73d5305fc479206676027533bb06d4ff2840eb672f6265ba3239031e"
end
end

def install
# fix for clang not following C++14 behaviour
# https://github.com/macports/macports-ports/commit/54d83cca9fc0f2ed6d3f873282b6dd3198635891
Expand Down

0 comments on commit 6fd8712

Please sign in to comment.