From efa8f4bcd1090bc100b28b6e242a2ca113598c18 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Mon, 4 Jun 2018 22:47:50 -0700 Subject: [PATCH] trafficserver: fails with clang 800 for head build (#28659) --HEAD needs C++17 --- Formula/trafficserver.rb | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Formula/trafficserver.rb b/Formula/trafficserver.rb index df88e676e6..28275d0926 100644 --- a/Formula/trafficserver.rb +++ b/Formula/trafficserver.rb @@ -1,8 +1,13 @@ class Trafficserver < Formula desc "HTTP/1.1 compliant caching proxy server" homepage "https://trafficserver.apache.org/" - url "https://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-7.1.3.tar.bz2" - sha256 "41c7e02ab55cb478222ef2259e918b89e5d1ef9778d7fa1d0ec492b26944d420" + + stable do + url "https://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-7.1.3.tar.bz2" + sha256 "41c7e02ab55cb478222ef2259e918b89e5d1ef9778d7fa1d0ec492b26944d420" + + needs :cxx11 + end bottle do sha256 "34d24867b84b672d3ba4c07066c15b2db0ee3fab29469e916f54728c808f4200" => :high_sierra @@ -16,6 +21,11 @@ class Trafficserver < Formula depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build + + fails_with :clang do + build 800 + cause "needs C++17" + end end option "with-experimental-plugins", "Enable experimental plugins" @@ -23,10 +33,8 @@ class Trafficserver < Formula depends_on "openssl" depends_on "pcre" - needs :cxx11 - def install - ENV.cxx11 + ENV.cxx11 if build.stable? # Needed for OpenSSL headers if MacOS.version <= :lion