Skip to content

Commit 96dd348

Browse files
BrewTestBotcarlocab
andcommitted
proxygen 2025.09.01.00
Co-authored-by: Carlo Cabrera <[email protected]>
1 parent f3afe8e commit 96dd348

File tree

1 file changed

+58
-15
lines changed

1 file changed

+58
-15
lines changed

Formula/p/proxygen.rb

Lines changed: 58 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Proxygen < Formula
22
desc "Collection of C++ HTTP libraries"
33
homepage "https://github.com/facebook/proxygen"
4-
url "https://github.com/facebook/proxygen/releases/download/v2025.08.25.00/proxygen-v2025.08.25.00.tar.gz"
5-
sha256 "e7397cbe93bb8567438f033bc5b1e407b074061c72783d3f55388e416b63fcf0"
4+
url "https://github.com/facebook/proxygen/releases/download/v2025.09.01.00/proxygen-v2025.09.01.00.tar.gz"
5+
sha256 "f8602dfd40e4d2a72726c5f63cc430a6abac7e72fa005739be695b3d5d4fc31e"
66
license "BSD-3-Clause"
77
head "https://github.com/facebook/proxygen.git", branch: "main"
88

@@ -37,26 +37,16 @@ class Proxygen < Formula
3737

3838
conflicts_with "hq", because: "both install `hq` binaries"
3939

40-
# Fix build with Boost 1.89.0, pr ref: https://github.com/facebook/proxygen/pull/570
41-
patch do
42-
url "https://github.com/facebook/proxygen/commit/10af948d7ff29bc8601e83127a9d9ab1c441fc58.patch?full_index=1"
43-
sha256 "161937c94727ab34976d5f2f602e6b7fcaecc7c86236ce0f6cbd809a5f852379"
44-
end
45-
46-
# Fix various symbol resolution errors.
47-
# https://github.com/facebook/proxygen/pull/572
48-
patch do
49-
url "https://github.com/facebook/proxygen/commit/7ad708b2206e4400240af5fd08e429b1b0cbedb3.patch?full_index=1"
50-
sha256 "4e64f687017888af90c4c6e691923db75c1e067fc8b722b038d05ee67707767c"
51-
end
52-
5340
# Fix name of `liblibhttperf2`.
5441
# https://github.com/facebook/proxygen/pull/574
5542
patch do
5643
url "https://github.com/facebook/proxygen/commit/415ed3320f3d110f1d8c6846ca0582a4db7d225a.patch?full_index=1"
5744
sha256 "4ea28c2f87732526afad0f2b2b66be330ad3d4fc18d0f20eb5e1242b557a6fcf"
5845
end
5946

47+
# Fix build with Boost 1.89.0, pr ref: https://github.com/facebook/proxygen/pull/570
48+
patch :DATA
49+
6050
def install
6151
args = ["-DBUILD_SHARED_LIBS=ON", "-DCMAKE_INSTALL_RPATH=#{rpath}"]
6252
if OS.mac?
@@ -81,3 +71,56 @@ def install
8171
Process.kill "TERM", pid
8272
end
8373
end
74+
75+
__END__
76+
diff --git i/CMakeLists.txt w/CMakeLists.txt
77+
index cc189df..9d61345 100644
78+
--- i/CMakeLists.txt
79+
+++ w/CMakeLists.txt
80+
@@ -80,17 +80,21 @@ find_package(ZLIB REQUIRED)
81+
find_package(OpenSSL REQUIRED)
82+
find_package(Threads)
83+
find_package(c-ares REQUIRED)
84+
-find_package(Boost 1.58 REQUIRED
85+
- COMPONENTS
86+
+set(PROXYGEN_BOOST_COMPONENTS
87+
iostreams
88+
context
89+
filesystem
90+
program_options
91+
regex
92+
- system
93+
thread
94+
chrono
95+
)
96+
+find_package(Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS})
97+
+if (Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
98+
+ list(APPEND PROXYGEN_BOOST_COMPONENTS system)
99+
+ find_package(Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS})
100+
+endif()
101+
+string(REPLACE ";" " " PROXYGEN_BOOST_COMPONENTS "${PROXYGEN_BOOST_COMPONENTS}")
102+
103+
list(APPEND
104+
_PROXYGEN_COMMON_COMPILE_OPTIONS
105+
diff --git i/cmake/proxygen-config.cmake.in w/cmake/proxygen-config.cmake.in
106+
index 8899242..114aaf7 100644
107+
--- i/cmake/proxygen-config.cmake.in
108+
+++ w/cmake/proxygen-config.cmake.in
109+
@@ -31,16 +31,7 @@ find_dependency(Fizz)
110+
find_dependency(ZLIB)
111+
find_dependency(OpenSSL)
112+
find_dependency(Threads)
113+
-find_dependency(Boost 1.58 REQUIRED
114+
- COMPONENTS
115+
- iostreams
116+
- context
117+
- filesystem
118+
- program_options
119+
- regex
120+
- system
121+
- thread
122+
-)
123+
+find_dependency(Boost 1.58 REQUIRED COMPONENTS @PROXYGEN_BOOST_COMPONENTS@)
124+
find_dependency(c-ares REQUIRED)
125+
126+
if(NOT TARGET proxygen::proxygen)

0 commit comments

Comments
 (0)