From 37b3906c13cc24ca8537dd77c931eca535d646db Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Thu, 10 Oct 2019 18:31:12 +0200 Subject: [PATCH 1/2] ansible: fix for Xcode 11 --- Formula/ansible.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Formula/ansible.rb b/Formula/ansible.rb index df9aaa13a0ccd..042f1fe4595c4 100644 --- a/Formula/ansible.rb +++ b/Formula/ansible.rb @@ -5,6 +5,7 @@ class Ansible < Formula homepage "https://www.ansible.com/" url "https://releases.ansible.com/ansible/ansible-2.8.5.tar.gz" sha256 "8e9403e755ce8ef27b6066cdd7a4c567aa80ebe2fd90d0ff8efa0a725d246986" + revision 1 head "https://github.com/ansible/ansible.git", :branch => "devel" bottle do @@ -114,8 +115,8 @@ class Ansible < Formula end resource "asn1crypto" do - url "https://files.pythonhosted.org/packages/fc/f1/8db7daa71f414ddabfa056c4ef792e1461ff655c2ae2928a2b675bfed6b4/asn1crypto-0.24.0.tar.gz" - sha256 "9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49" + url "https://files.pythonhosted.org/packages/c1/a9/86bfedaf41ca590747b4c9075bc470d0b2ec44fb5db5d378bc61447b3b6b/asn1crypto-1.2.0.tar.gz" + sha256 "87620880a477123e01177a1f73d0f327210b43a3cdbd714efcd2fa49a8d7b384" end resource "backports.ssl_match_hostname" do @@ -594,6 +595,10 @@ def install # Fix "ld: file not found: /usr/lib/system/libsystem_darwin.dylib" for lxml ENV["SDKROOT"] = MacOS.sdk_path if MacOS.version == :sierra + # Work around Xcode 11 clang bug + # https://code.videolan.org/videolan/libbluray/issues/20 + ENV.append_to_cflags "-fno-stack-check" if DevelopmentTools.clang_build_version >= 1010 + # https://github.com/Homebrew/homebrew-core/issues/7197 ENV.prepend "CPPFLAGS", "-I#{MacOS.sdk_path}/usr/include/ffi" From cfc88f0f8ceb3499212d1f8f4f17367f9ca6eb32 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Thu, 10 Oct 2019 18:31:17 +0200 Subject: [PATCH 2/2] azure-cli: fix for Xcode 11 --- Formula/azure-cli.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/azure-cli.rb b/Formula/azure-cli.rb index 681aada71d8af..e43113016cc77 100644 --- a/Formula/azure-cli.rb +++ b/Formula/azure-cli.rb @@ -649,6 +649,10 @@ class AzureCli < Formula end def install + # Work around Xcode 11 clang bug + # https://code.videolan.org/videolan/libbluray/issues/20 + ENV.append_to_cflags "-fno-stack-check" if DevelopmentTools.clang_build_version >= 1010 + venv = virtualenv_create(libexec, "python3") venv.pip_install resources