From e5b098e1bf7a5383724d4956e6444d79db086844 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Mon, 27 Nov 2017 05:15:25 -0800 Subject: [PATCH] pdns 4.0.5 set SDKROOT on 10.12 to fix "configure: error: cannot find boost/program_options.hpp" Closes #21095. Signed-off-by: ilovezfs --- Formula/pdns.rb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Formula/pdns.rb b/Formula/pdns.rb index dc44dc173d..acad5e8784 100644 --- a/Formula/pdns.rb +++ b/Formula/pdns.rb @@ -1,8 +1,8 @@ class Pdns < Formula desc "Authoritative nameserver" homepage "https://www.powerdns.com" - url "https://downloads.powerdns.com/releases/pdns-4.0.4.tar.bz2" - sha256 "d974ab89de69477c7f581a3233bc731eacbb43d479291e472b2c531c83b6d763" + url "https://downloads.powerdns.com/releases/pdns-4.0.5.tar.bz2" + sha256 "5bc8fad537dace02a5bf0c71a29b1b5303afdb41d0231a17a06f18263489ec24" bottle do rebuild 1 @@ -33,14 +33,10 @@ class Pdns < Formula depends_on "sqlite" depends_on :postgresql => :optional - # Use upstream commit that fixes build with Xcode 9 - # https://github.com/PowerDNS/pdns/pull/4940 - patch do - url "https://github.com/PowerDNS/pdns/commit/885bddbd.patch?full_index=1" - sha256 "a6c08599f8b6e368eaec99614e09da49be213666850c44101673fe2b3b4c2558" - end - def install + # Fix "configure: error: cannot find boost/program_options.hpp" + ENV["SDKROOT"] = MacOS.sdk_path if MacOS.version == :sierra + args = %W[ --prefix=#{prefix} --with-lua