<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4ed4edfde9e643502ba0c2625f92cb4b738edc25">https://github.com/macports/macports-ports/commit/4ed4edfde9e643502ba0c2625f92cb4b738edc25</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 4ed4edf  clang-{3.9,devel}: Add missing strnlen definition for building on pre-Lion
</span>4ed4edf is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 4ed4edfde9e643502ba0c2625f92cb4b738edc25
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Tue Dec 20 16:01:08 2016 -0800

<span style='display:block; white-space:pre;color:#404040;'>    clang-{3.9,devel}: Add missing strnlen definition for building on pre-Lion
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
 lang/llvm-3.9/Portfile                             |  1 +
 ...ly-Prepare-clang-format-for-replacement-w.patch | 16 ++++----
 ...ly-Fix-name-of-scan-view-executable-insid.patch |  8 ++--
 .../1003-Default-to-ppc7400-for-OSX-10.5.patch     |  8 ++--
 ...etpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch | 10 ++---
 ...fragile-ObjC-runtime-when-targeting-darwi.patch |  8 ++--
 ...dc-header-search-paths-for-older-versions.patch |  8 ++--
 ...ssues-pre-Lion-due-to-missing-a-strnlen-d.patch | 43 ++++++++++++++++++++++
 lang/llvm-devel/Portfile                           |  3 ++
 ...Only-Helper-script-for-generating-patches.patch | 30 +++++++++++++++
 ...ly-Prepare-clang-format-for-replacement-w.patch | 18 ++++-----
 ...ly-Fix-name-of-scan-view-executable-insid.patch |  8 ++--
 .../1003-Default-to-ppc7400-for-OSX-10.5.patch     | 10 ++---
 ...etpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch | 10 ++---
 ...fragile-ObjC-runtime-when-targeting-darwi.patch | 10 ++---
 ...dc-header-search-paths-for-older-versions.patch |  8 ++--
 ...ssues-pre-Lion-due-to-missing-a-strnlen-d.patch | 42 +++++++++++++++++++++
 17 files changed, 180 insertions(+), 61 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/Portfile b/lang/llvm-3.9/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f493ffd..b89667f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -131,6 +131,7 @@ if {${subport} eq "clang-${llvm_version}"} {
</span>         1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch \
         1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch \
         1006-Fixup-libstdc-header-search-paths-for-older-versions.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch \
</span>         2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch \
         2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch \
         2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch b/lang/llvm-3.9/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index d449e24..360daba 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From c179b9e70f848f59e3d627295217b2c5757bc0fe Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 414a01012e221fc9961850249ca125b4acef4b53 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Sat, 17 Jan 2015 17:50:24 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1001/1006] MacPorts Only: Prepare clang-format for replacement
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1001/1007] MacPorts Only: Prepare clang-format for replacement
</span>  with absolute path
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,7 +15,7 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  5 files changed, 5 insertions(+), 6 deletions(-)
 
 diff --git llvm_release_39/tools/clang/tools/clang-format/clang-format-bbedit.applescript macports_release_39/tools/clang/tools/clang-format/clang-format-bbedit.applescript
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index fa88fe9..eb09448 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index fa88fe9004..eb09448be5 100644
</span> --- llvm_release_39/tools/clang/tools/clang-format/clang-format-bbedit.applescript
 +++ macports_release_39/tools/clang/tools/clang-format/clang-format-bbedit.applescript
 @@ -15,7 +15,7 @@ tell application "BBEdit"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,7 +28,7 @@ index fa88fe9..eb09448 100644
</span>  tell application "BBEdit"
        -- "set contents of text document 1 to newContents" scrolls to the bottom while
 diff --git llvm_release_39/tools/clang/tools/clang-format/clang-format-diff.py macports_release_39/tools/clang/tools/clang-format/clang-format-diff.py
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 5e728f5..b23c3c8 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 5e728f5471..b23c3c8024 100755
</span> --- llvm_release_39/tools/clang/tools/clang-format/clang-format-diff.py
 +++ macports_release_39/tools/clang/tools/clang-format/clang-format-diff.py
 @@ -55,7 +55,7 @@ def main():
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,7 +41,7 @@ index 5e728f5..b23c3c8 100755
</span>    args = parser.parse_args()
  
 diff --git llvm_release_39/tools/clang/tools/clang-format/clang-format-sublime.py macports_release_39/tools/clang/tools/clang-format/clang-format-sublime.py
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 16ff56e..4b68104 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 16ff56e502..4b68104a28 100644
</span> --- llvm_release_39/tools/clang/tools/clang-format/clang-format-sublime.py
 +++ macports_release_39/tools/clang/tools/clang-format/clang-format-sublime.py
 @@ -18,7 +18,7 @@ import sublime_plugin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,7 +54,7 @@ index 16ff56e..4b68104 100644
</span>  # Change this to format according to other formatting styles. See the output of
  # 'clang-format --help' for a list of supported styles. The default looks for
 diff --git llvm_release_39/tools/clang/tools/clang-format/clang-format.el macports_release_39/tools/clang/tools/clang-format/clang-format.el
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index ca46144..1c49835 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ca461444e2..1c49835e46 100644
</span> --- llvm_release_39/tools/clang/tools/clang-format/clang-format.el
 +++ macports_release_39/tools/clang/tools/clang-format/clang-format.el
 @@ -36,8 +36,7 @@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -68,7 +68,7 @@ index ca46144..1c49835 100644
</span>  
  A string containing the name or the full path of the executable."
 diff --git llvm_release_39/tools/clang/tools/clang-format/clang-format.py macports_release_39/tools/clang/tools/clang-format/clang-format.py
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 5cb41fc..e8a5904 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 5cb41fcfa3..e8a5904750 100644
</span> --- llvm_release_39/tools/clang/tools/clang-format/clang-format.py
 +++ macports_release_39/tools/clang/tools/clang-format/clang-format.py
 @@ -34,7 +34,7 @@ import vim
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,5 +81,5 @@ index 5cb41fc..e8a5904 100644
</span>    binary = vim.eval('g:clang_format_path')
  
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch b/lang/llvm-3.9/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 301a02a..023a55c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From cbbcd15cd28f9ee512b5d3ac646ee46861fb8888 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 53121d98756c5cf424944d4fdb580d85570ffa14 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Sat, 17 Jan 2015 17:55:27 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1002/1006] MacPorts Only: Fix name of scan-view executable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1002/1007] MacPorts Only: Fix name of scan-view executable
</span>  inside scan-build
 
 http://trac.macports.org/ticket/35006
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,7 +13,7 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 2 insertions(+)
 
 diff --git llvm_release_39/tools/clang/tools/scan-build/bin/scan-build macports_release_39/tools/clang/tools/scan-build/bin/scan-build
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 3182a29..ad951fe 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 3182a29767..ad951feed7 100755
</span> --- llvm_release_39/tools/clang/tools/scan-build/bin/scan-build
 +++ macports_release_39/tools/clang/tools/scan-build/bin/scan-build
 @@ -1831,6 +1831,8 @@ if (defined $Options{OutputFormat}) {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,5 +26,5 @@ index 3182a29..ad951fe 100755
</span>        if (! -x $ScanView) { $ScanView = Cwd::realpath("$RealBin/../../scan-view/bin/scan-view"); }
        exec $ScanView, "$Options{OutputDir}";
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/1003-Default-to-ppc7400-for-OSX-10.5.patch b/lang/llvm-3.9/files/1003-Default-to-ppc7400-for-OSX-10.5.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 610e1eb..7bd560e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/files/1003-Default-to-ppc7400-for-OSX-10.5.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/1003-Default-to-ppc7400-for-OSX-10.5.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From a973788a3d76a03feffc8c3e3432b8cb1e331bb7 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 401ab6b5acdc617adda6eef1d43a0c08cef9b204 Mon Sep 17 00:00:00 2001
</span> From: Iain Sandoe <iain@codesourcery.com>
 Date: Sun, 27 Jul 2014 20:35:16 +0100
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1003/1006] Default to ppc7400 for OSX 10.5+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1003/1007] Default to ppc7400 for OSX 10.5+
</span> 
 (cherry picked from commit 5662f0184c9e491e7df297feff4de37a678a0a4e)
 ---
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,7 +9,7 @@ Subject: [PATCH 1003/1006] Default to ppc7400 for OSX 10.5+
</span>  1 file changed, 3 insertions(+)
 
 diff --git llvm_release_39/tools/clang/lib/Driver/Tools.cpp macports_release_39/tools/clang/lib/Driver/Tools.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 31d4360..95f24e7 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 270ed0a4e7..a9b557d20f 100644
</span> --- llvm_release_39/tools/clang/lib/Driver/Tools.cpp
 +++ macports_release_39/tools/clang/lib/Driver/Tools.cpp
 @@ -1970,6 +1970,9 @@ static std::string getCPUName(const ArgList &Args, const llvm::Triple &T,
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,5 +23,5 @@ index 31d4360..95f24e7 100644
</span>          TargetCPUName = "ppc";
      }
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch b/lang/llvm-3.9/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 77582e5..413ed62 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From e8a5464b0f767cfd2d0f5b8c8dae0d874d0c591d Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From bcaa03506820cfd97a2f329cd3c5ab561dcc6630 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Sat, 17 Jan 2015 19:08:57 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1004/1006] Only call setpriority(PRIO_DARWIN_THREAD, 0,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1004/1007] Only call setpriority(PRIO_DARWIN_THREAD, 0,
</span>  PRIO_DARWIN_BG) if it is available
 
 Tiger and earlier versions of darwin do not support this.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,10 +13,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git llvm_release_39/tools/clang/tools/libclang/CIndex.cpp macports_release_39/tools/clang/tools/libclang/CIndex.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 027bf95..8081753 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index deb4cc551b..6e8a737c74 100644
</span> --- llvm_release_39/tools/clang/tools/libclang/CIndex.cpp
 +++ macports_release_39/tools/clang/tools/libclang/CIndex.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -7806,7 +7806,7 @@ void clang::setThreadBackgroundPriority() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7807,7 +7807,7 @@ void clang::setThreadBackgroundPriority() {
</span>    if (getenv("LIBCLANG_BGPRIO_DISABLE"))
      return;
  
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,5 +26,5 @@ index 027bf95..8081753 100644
</span>  #endif
  }
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch b/lang/llvm-3.9/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 5da29f9..02bd8fd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From f57523fb1a06989ef52d0eb4b96a4d724cb826ae Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 91297b3486d4c28cb2245cb0b5b7d65a7d5f9020 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Tue, 20 Jan 2015 00:09:16 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1005/1006] Default to fragile ObjC runtime when targeting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1005/1007] Default to fragile ObjC runtime when targeting
</span>  darwin/ppc
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,7 +11,7 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 4 insertions(+), 2 deletions(-)
 
 diff --git llvm_release_39/tools/clang/lib/Driver/ToolChains.h macports_release_39/tools/clang/lib/Driver/ToolChains.h
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 369712f..99d82ee 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 369712fa93..99d82eea1c 100644
</span> --- llvm_release_39/tools/clang/lib/Driver/ToolChains.h
 +++ macports_release_39/tools/clang/lib/Driver/ToolChains.h
 @@ -339,8 +339,10 @@ public:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,5 +28,5 @@ index 369712f..99d82ee 100644
</span>  
    bool UseObjCMixedDispatch() const override { return true; }
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch b/lang/llvm-3.9/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 1653d16..4a951e8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.9/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 3a1da1f9c088e6fffc792cb073b7046ae6d646d0 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 80574643241dab77a873ed2d8e3db7e6b178a081 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Mon, 31 Oct 2016 15:06:36 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1006/1006] Fixup libstdc++ header search paths for older
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1006/1007] Fixup libstdc++ header search paths for older
</span>  versions of Mac OS X
 
 The subpaths were removed in Lion.  Leopard and Snow Leopard had darwin8
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,7 +16,7 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git llvm_release_39/tools/clang/lib/Frontend/InitHeaderSearch.cpp macports_release_39/tools/clang/lib/Frontend/InitHeaderSearch.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 1b5c760..28c21dd 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 1b5c760f01..28c21dd9b9 100644
</span> --- llvm_release_39/tools/clang/lib/Frontend/InitHeaderSearch.cpp
 +++ macports_release_39/tools/clang/lib/Frontend/InitHeaderSearch.cpp
 @@ -366,7 +366,7 @@ AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple, const HeaderSearchOp
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,5 +38,5 @@ index 1b5c760..28c21dd 100644
</span>  
      case llvm::Triple::arm:
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.9/files/1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch b/lang/llvm-3.9/files/1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..98279a5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.9/files/1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,43 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 85489ac7deb860a626365e0915f20615a898639e Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 20 Dec 2016 15:53:39 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1007/1007] Fix build issues pre-Lion due to missing a strnlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ definition
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://trac.macports.org/ticket/51520
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://llvm.org/bugs/show_bug.cgi?id=27714
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+(cherry picked from commit 06a86b2c74ec3f03e5b998e31c116af2d9acb54e)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lib/Lex/HeaderMap.cpp | 14 ++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 14 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_release_39/tools/clang/lib/Lex/HeaderMap.cpp macports_release_39/tools/clang/lib/Lex/HeaderMap.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 4cace5b002..1db81df756 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_release_39/tools/clang/lib/Lex/HeaderMap.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_release_39/tools/clang/lib/Lex/HeaderMap.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,6 +26,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <memory>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ using namespace clang;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <Availability.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1070
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static size_t strnlen(const char *s, size_t maxlen) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  size_t l = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  while (l < maxlen && *s) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    l++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    s++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  return l;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /// HashHMapKey - This is the 'well known' hash function required by the file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /// format, used to look up keys in the hash table.  The hash table uses simple
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /// linear probing based on this function.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-- 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/Portfile b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e7c31db..fdba08a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -126,6 +126,8 @@ if {${subport} eq "clang-${llvm_version}"} {
</span>         1003-Default-to-ppc7400-for-OSX-10.5.patch \
         1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch \
         1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        1006-Fixup-libstdc-header-search-paths-for-older-versions.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch \
</span>         2001-MacPorts-Only-Don-t-check-for-the-macosx.internal-SD.patch \
         3001-buildit-build-fix-for-Leopard.patch \
         3002-buildit-Set-compatibility-version-to-RC_ProjectSourc.patch \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -156,6 +158,7 @@ if {${subport} eq "lldb-${llvm_version}"} {
</span>         1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch \
         1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch \
         1006-Fixup-libstdc-header-search-paths-for-older-versions.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch \
</span>         4001-https-llvm.org-bugs-show_bug.cgi-id-31433.patch \
         4002-Fix-build-on-Mountain-Lion.patch \
         openmp-locations.patch
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1000-MacPorts-Only-Helper-script-for-generating-patches.patch b/lang/llvm-devel/files/1000-MacPorts-Only-Helper-script-for-generating-patches.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..581c162
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1000-MacPorts-Only-Helper-script-for-generating-patches.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 1e890634bb9efac93a1966f9b2e366290fe2fd7e Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Sat, 17 Jan 2015 17:48:39 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1000/1007] MacPorts Only: Helper script for generating patches
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create_macports_patches.sh | 11 +++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 11 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create mode 100755 create_macports_patches.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_master/tools/clang/create_macports_patches.sh macports_master/tools/clang/create_macports_patches.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+new file mode 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0000000000..e51c371004
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_master/tools/clang/create_macports_patches.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#!/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++parse_git_branch()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    echo ${ref#refs/heads/}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++branch=$(parse_git_branch)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++git format-patch origin/${branch} --src-prefix=llvm_${branch}/tools/clang/ --dst-prefix=macports_${branch}/tools/clang/ --start-number=1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-- 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch b/lang/llvm-devel/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index b26a2af..04a702c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1001-MacPorts-Only-Prepare-clang-format-for-replacement-w.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From c2e4c94075b60482bb43eedbbef6e26238dec9c8 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From f07780b534efdf5084f76ce57ed20111e8e61e2e Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Sat, 17 Jan 2015 17:50:24 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1001/1006] MacPorts Only: Prepare clang-format for replacement
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1001/1007] MacPorts Only: Prepare clang-format for replacement
</span>  with absolute path
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,7 +14,7 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  5 files changed, 5 insertions(+), 6 deletions(-)
 
 diff --git llvm_master/tools/clang/tools/clang-format/clang-format-bbedit.applescript macports_master/tools/clang/tools/clang-format/clang-format-bbedit.applescript
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index fa88fe9..eb09448 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index fa88fe9004..eb09448be5 100644
</span> --- llvm_master/tools/clang/tools/clang-format/clang-format-bbedit.applescript
 +++ macports_master/tools/clang/tools/clang-format/clang-format-bbedit.applescript
 @@ -15,7 +15,7 @@ tell application "BBEdit"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,7 +27,7 @@ index fa88fe9..eb09448 100644
</span>  tell application "BBEdit"
        -- "set contents of text document 1 to newContents" scrolls to the bottom while
 diff --git llvm_master/tools/clang/tools/clang-format/clang-format-diff.py macports_master/tools/clang/tools/clang-format/clang-format-diff.py
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 5e728f5..b23c3c8 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ffa30e70dd..a624ad256f 100755
</span> --- llvm_master/tools/clang/tools/clang-format/clang-format-diff.py
 +++ macports_master/tools/clang/tools/clang-format/clang-format-diff.py
 @@ -55,7 +55,7 @@ def main():
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,7 +40,7 @@ index 5e728f5..b23c3c8 100755
</span>    args = parser.parse_args()
  
 diff --git llvm_master/tools/clang/tools/clang-format/clang-format-sublime.py macports_master/tools/clang/tools/clang-format/clang-format-sublime.py
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 16ff56e..4b68104 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 16ff56e502..4b68104a28 100644
</span> --- llvm_master/tools/clang/tools/clang-format/clang-format-sublime.py
 +++ macports_master/tools/clang/tools/clang-format/clang-format-sublime.py
 @@ -18,7 +18,7 @@ import sublime_plugin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,7 +53,7 @@ index 16ff56e..4b68104 100644
</span>  # Change this to format according to other formatting styles. See the output of
  # 'clang-format --help' for a list of supported styles. The default looks for
 diff --git llvm_master/tools/clang/tools/clang-format/clang-format.el macports_master/tools/clang/tools/clang-format/clang-format.el
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 0ac2da3..dba5110 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 0ac2da3ad2..dba511033c 100644
</span> --- llvm_master/tools/clang/tools/clang-format/clang-format.el
 +++ macports_master/tools/clang/tools/clang-format/clang-format.el
 @@ -36,8 +36,7 @@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -67,10 +67,10 @@ index 0ac2da3..dba5110 100644
</span>  
  A string containing the name or the full path of the executable."
 diff --git llvm_master/tools/clang/tools/clang-format/clang-format.py macports_master/tools/clang/tools/clang-format/clang-format.py
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 37d970b..f74abbf 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ae8a6ebf74..93268cd381 100644
</span> --- llvm_master/tools/clang/tools/clang-format/clang-format.py
 +++ macports_master/tools/clang/tools/clang-format/clang-format.py
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -35,7 +35,7 @@ import vim
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -36,7 +36,7 @@ import vim
</span>  
  # set g:clang_format_path to the path to clang-format if it is not on the path
  # Change this to the full path if clang-format is not on the path.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -80,5 +80,5 @@ index 37d970b..f74abbf 100644
</span>    binary = vim.eval('g:clang_format_path')
  
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch b/lang/llvm-devel/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index d42cbd2..05be896 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1002-MacPorts-Only-Fix-name-of-scan-view-executable-insid.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 57af0aa8eb9a943b15475f7c71127f20dd7f6fa6 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 4191978f112c6c87d7680402bf12ab8202cd7689 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Sat, 17 Jan 2015 17:55:27 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1002/1006] MacPorts Only: Fix name of scan-view executable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1002/1007] MacPorts Only: Fix name of scan-view executable
</span>  inside scan-build
 
 http://trac.macports.org/ticket/35006
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,7 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 2 insertions(+)
 
 diff --git llvm_master/tools/clang/tools/scan-build/bin/scan-build macports_master/tools/clang/tools/scan-build/bin/scan-build
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index cbf3bf3..f7fad16 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index cbf3bf3d6f..f7fad16bba 100755
</span> --- llvm_master/tools/clang/tools/scan-build/bin/scan-build
 +++ macports_master/tools/clang/tools/scan-build/bin/scan-build
 @@ -1855,6 +1855,8 @@ if (defined $Options{OutputFormat}) {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,5 +25,5 @@ index cbf3bf3..f7fad16 100755
</span>        if (! -x $ScanView) { $ScanView = Cwd::realpath("$RealBin/../../scan-view/bin/scan-view"); }
        exec $ScanView, "$Options{OutputDir}";
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1003-Default-to-ppc7400-for-OSX-10.5.patch b/lang/llvm-devel/files/1003-Default-to-ppc7400-for-OSX-10.5.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 0630c4d..d1c0ca1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/1003-Default-to-ppc7400-for-OSX-10.5.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1003-Default-to-ppc7400-for-OSX-10.5.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,17 +1,17 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 5662f0184c9e491e7df297feff4de37a678a0a4e Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 55e5fccea9da529605215205888a8d14d8a0bfb8 Mon Sep 17 00:00:00 2001
</span> From: Iain Sandoe <iain@codesourcery.com>
 Date: Sun, 27 Jul 2014 20:35:16 +0100
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1003/1006] Default to ppc7400 for OSX 10.5+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1003/1007] Default to ppc7400 for OSX 10.5+
</span> 
 ---
  lib/Driver/Tools.cpp | 3 +++
  1 file changed, 3 insertions(+)
 
 diff --git llvm_master/tools/clang/lib/Driver/Tools.cpp macports_master/tools/clang/lib/Driver/Tools.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 6c07b9b..cd1e9f7 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index f4cab2a888..8e13e59060 100644
</span> --- llvm_master/tools/clang/lib/Driver/Tools.cpp
 +++ macports_master/tools/clang/lib/Driver/Tools.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1955,6 +1955,9 @@ static std::string getCPUName(const ArgList &Args, const llvm::Triple &T,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2118,6 +2118,9 @@ static std::string getCPUName(const ArgList &Args, const llvm::Triple &T,
</span>          TargetCPUName = "ppc64";
        else if (T.getArch() == llvm::Triple::ppc64le)
          TargetCPUName = "ppc64le";
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,5 +22,5 @@ index 6c07b9b..cd1e9f7 100644
</span>          TargetCPUName = "ppc";
      }
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch b/lang/llvm-devel/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 2319c6c..ae593d8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1004-Only-call-setpriority-PRIO_DARWIN_THREAD-0-PRIO_DARW.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From a186e40307ffb706d39353bfc285c12d242e26ee Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From de36e89244ba27d84d2b0725268e8648e557912e Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Sat, 17 Jan 2015 19:08:57 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1004/1006] Only call setpriority(PRIO_DARWIN_THREAD, 0,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1004/1007] Only call setpriority(PRIO_DARWIN_THREAD, 0,
</span>  PRIO_DARWIN_BG) if it is available
 
 Tiger and earlier versions of darwin do not support this.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,10 +12,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git llvm_master/tools/clang/tools/libclang/CIndex.cpp macports_master/tools/clang/tools/libclang/CIndex.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 14eac44..778c3d1 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 210e74bf59..966f10d03e 100644
</span> --- llvm_master/tools/clang/tools/libclang/CIndex.cpp
 +++ macports_master/tools/clang/tools/libclang/CIndex.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -7865,7 +7865,7 @@ void clang::setThreadBackgroundPriority() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7913,7 +7913,7 @@ void clang::setThreadBackgroundPriority() {
</span>    if (getenv("LIBCLANG_BGPRIO_DISABLE"))
      return;
  
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,5 +25,5 @@ index 14eac44..778c3d1 100644
</span>  #endif
  }
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch b/lang/llvm-devel/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 55814e0..eaf531c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1005-Default-to-fragile-ObjC-runtime-when-targeting-darwi.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 064b0fdeac73b72471b56cde85381356032d5d92 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 211a11fc9d4de5a32af8404ed4773db70a0d5a68 Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Tue, 20 Jan 2015 00:09:16 -0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1005/1006] Default to fragile ObjC runtime when targeting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1005/1007] Default to fragile ObjC runtime when targeting
</span>  darwin/ppc
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,10 +10,10 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 4 insertions(+), 2 deletions(-)
 
 diff --git llvm_master/tools/clang/lib/Driver/ToolChains.h macports_master/tools/clang/lib/Driver/ToolChains.h
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index 36773b2..8abfdcc 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 7dab08915d..73c080b435 100644
</span> --- llvm_master/tools/clang/lib/Driver/ToolChains.h
 +++ macports_master/tools/clang/lib/Driver/ToolChains.h
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -335,8 +335,10 @@ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -362,8 +362,10 @@ public:
</span>    bool IsEncodeExtendedBlockSignatureDefault() const override { return true; }
  
    bool IsObjCNonFragileABIDefault() const override {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,5 +27,5 @@ index 36773b2..8abfdcc 100644
</span>  
    bool UseObjCMixedDispatch() const override { return true; }
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch b/lang/llvm-devel/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 68fa40c..0cee4102 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1006-Fixup-libstdc-header-search-paths-for-older-versions.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From e23e3e73fd7bc8e841725813d54df1ff5c0db88d Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 5a26bf491ba1f7e590554d8e761c674ddccabc9f Mon Sep 17 00:00:00 2001
</span> From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
 Date: Mon, 31 Oct 2016 15:06:36 -0700
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1006/1006] Fixup libstdc++ header search paths for older
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1006/1007] Fixup libstdc++ header search paths for older
</span>  versions of Mac OS X
 
 The subpaths were removed in Lion.  Leopard and Snow Leopard had darwin8
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,7 +15,7 @@ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span>  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git llvm_master/tools/clang/lib/Frontend/InitHeaderSearch.cpp macports_master/tools/clang/lib/Frontend/InitHeaderSearch.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-index c76ccea..5a0840d 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index d50fb6d788..c8969b67bf 100644
</span> --- llvm_master/tools/clang/lib/Frontend/InitHeaderSearch.cpp
 +++ macports_master/tools/clang/lib/Frontend/InitHeaderSearch.cpp
 @@ -365,7 +365,7 @@ AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple, const HeaderSearchOp
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,5 +37,5 @@ index c76ccea..5a0840d 100644
</span>  
      case llvm::Triple::arm:
 -- 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-2.10.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span> 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/files/1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch b/lang/llvm-devel/files/1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..dc9f897
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/files/1007-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,42 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 06a86b2c74ec3f03e5b998e31c116af2d9acb54e Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 20 Dec 2016 15:53:39 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1007/1007] Fix build issues pre-Lion due to missing a strnlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ definition
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://trac.macports.org/ticket/51520
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://llvm.org/bugs/show_bug.cgi?id=27714
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lib/Lex/HeaderMap.cpp | 14 ++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 14 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git llvm_master/tools/clang/lib/Lex/HeaderMap.cpp macports_master/tools/clang/lib/Lex/HeaderMap.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 24a14b6cdb..c38986d46c 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- llvm_master/tools/clang/lib/Lex/HeaderMap.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ macports_master/tools/clang/lib/Lex/HeaderMap.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,6 +26,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <memory>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ using namespace clang;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <Availability.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1070
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static size_t strnlen(const char *s, size_t maxlen) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  size_t l = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  while (l < maxlen && *s) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    l++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    s++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  return l;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /// HashHMapKey - This is the 'well known' hash function required by the file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /// format, used to look up keys in the hash table.  The hash table uses simple
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /// linear probing based on this function.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-- 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>

</pre>