diff --git a/Formula/httpd.rb b/Formula/httpd.rb index 69a81d86e3..afcf7d0742 100644 --- a/Formula/httpd.rb +++ b/Formula/httpd.rb @@ -3,6 +3,7 @@ class Httpd < Formula homepage "https://httpd.apache.org/" url "https://www.apache.org/dyn/closer.cgi?path=httpd/httpd-2.4.37.tar.bz2" sha256 "3498dc5c6772fac2eb7307dc7963122ffe243b5e806e0be4fb51974ff759d726" + revision 1 bottle do sha256 "ebdc934511011232b124591665679a583b412768f711c698105f73e7049872df" => :mojave @@ -58,10 +59,12 @@ class Httpd < Formula "--with-apr=#{Formula["apr"].opt_prefix}", "--with-apr-util=#{Formula["apr-util"].opt_prefix}", "--with-brotli=#{Formula["brotli"].opt_prefix}", + "--with-libxml2=#{MacOS.sdk_path_if_needed}/usr", "--with-mpm=prefork", "--with-nghttp2=#{Formula["nghttp2"].opt_prefix}", "--with-ssl=#{Formula["openssl"].opt_prefix}", "--with-pcre=#{Formula["pcre"].opt_prefix}", + "--with-z=#{MacOS.sdk_path_if_needed}/usr", "--disable-lua", "--disable-luajit" system "make" @@ -138,6 +141,11 @@ class Httpd < Formula end test do + # Ensure modules depending on zlib and xml2 have been compiled + assert_predicate lib/"httpd/modules/mod_deflate.so", :exist? + assert_predicate lib/"httpd/modules/mod_proxy_html.so", :exist? + assert_predicate lib/"httpd/modules/mod_xml2enc.so", :exist? + begin require "socket"