[141846] trunk/dports/lang/llvm-3.8

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 12 03:15:24 PST 2015


Revision: 141846
          https://trac.macports.org/changeset/141846
Author:   jeremyhu at macports.org
Date:     2015-10-29 11:09:11 -0700 (Thu, 29 Oct 2015)
Log Message:
-----------
clang-3.8: Minor tweaks to ASan

Modified Paths:
--------------
    trunk/dports/lang/llvm-3.8/Portfile
    trunk/dports/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch
    trunk/dports/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch
    trunk/dports/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch
    trunk/dports/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch
    trunk/dports/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch
    trunk/dports/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch

Added Paths:
-----------
    trunk/dports/lang/llvm-3.8/files/2007-Add-internal_strlcat-and-internal_strlcpy.patch
    trunk/dports/lang/llvm-3.8/files/2008-ASan-build-fix-for-older-OS-versions-without-os-trac.patch
    trunk/dports/lang/llvm-3.8/files/2009-Save-the-ASan-report-in-the-OS-X-crash-log.patch

Removed Paths:
-------------
    trunk/dports/lang/llvm-3.8/files/2007-ASan-build-fix-for-older-OS-versions-without-os-trac.patch
    trunk/dports/lang/llvm-3.8/files/2008-Save-the-ASan-report-in-the-OS-X-crash-log.patch

Modified: trunk/dports/lang/llvm-3.8/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.8/Portfile	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/Portfile	2015-10-29 18:09:11 UTC (rev 141846)
@@ -120,8 +120,9 @@
         2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch \
         2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch \
         2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch \
-        2007-ASan-build-fix-for-older-OS-versions-without-os-trac.patch \
-        2008-Save-the-ASan-report-in-the-OS-X-crash-log.patch \
+        2007-Add-internal_strlcat-and-internal_strlcpy.patch \
+        2008-ASan-build-fix-for-older-OS-versions-without-os-trac.patch \
+        2009-Save-the-ASan-report-in-the-OS-X-crash-log.patch \
         3001-buildit-build-fix-for-Leopard.patch \
         3002-buildit-Set-compatibility-version-to-RC_ProjectSourc.patch \
         3003-Fix-local-and-iterator-when-building-with-Lion-and-n.patch \

Modified: trunk/dports/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2001-MacPorts-Only-Comment-out-SL-cctools-workaround.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,7 +1,7 @@
 From d2b296ccf11795a4285193428d24792fe3cb56ad Mon Sep 17 00:00:00 2001
 From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
 Date: Mon, 15 Apr 2013 22:38:18 -0700
-Subject: [PATCH 2001/2008] MacPorts Only: Comment out SL cctools workaround
+Subject: [PATCH 2001/2009] MacPorts Only: Comment out SL cctools workaround
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
 ---

Modified: trunk/dports/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2002-Update-CheckArches-to-fallback-on-Intel-ppc-if-ld-v-.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,7 +1,7 @@
 From cbe667aa54b998d43aa7e7a3cd29ca8f27453abd Mon Sep 17 00:00:00 2001
 From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
 Date: Sat, 10 Jan 2015 03:34:51 -0800
-Subject: [PATCH 2002/2008] Update CheckArches to fallback on Intel/ppc if ld
+Subject: [PATCH 2002/2009] Update CheckArches to fallback on Intel/ppc if ld
  -v doesn't report supported architectures
 
 Older versions of ld64 (eg: Xcode 3.x) do not report this.

Modified: trunk/dports/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2003-Fall-back-on-xcodebuild-sdk-when-xcrun-sdk-is-not-su.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,7 +1,7 @@
 From e13a535302239c487d3bb5ce5b34bb1b6695f091 Mon Sep 17 00:00:00 2001
 From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
 Date: Sat, 17 Jan 2015 17:45:27 -0800
-Subject: [PATCH 2003/2008] Fall back on xcodebuild -sdk when xcrun --sdk is
+Subject: [PATCH 2003/2009] Fall back on xcodebuild -sdk when xcrun --sdk is
  not supported
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>

Modified: trunk/dports/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2004-On-darwin-build-ppc-slices-of-the-compiler-runtime-i.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,7 +1,7 @@
 From 77a697e1fc15f2120b41fd44e62886624f15a47e Mon Sep 17 00:00:00 2001
 From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
 Date: Sat, 17 Jan 2015 19:55:19 -0800
-Subject: [PATCH 2004/2008] On darwin, build ppc slices of the compiler runtime
+Subject: [PATCH 2004/2009] On darwin, build ppc slices of the compiler runtime
  if requested and supported by the SDK and toolchain
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>

Modified: trunk/dports/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2005-MacPorts-Only-Don-t-build-x86_64h-slice-of-compiler-.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,7 +1,7 @@
 From ea53b2fabf499870a51c8a8ec0de22a33193613a Mon Sep 17 00:00:00 2001
 From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
 Date: Wed, 14 Jan 2015 19:55:19 -0800
-Subject: [PATCH 2005/2008] MacPorts Only: Don't build x86_64h slice of
+Subject: [PATCH 2005/2009] MacPorts Only: Don't build x86_64h slice of
  compiler-rt
 
 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>

Modified: trunk/dports/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2006-MacPorts-Only-Fix-regression-introduced-when-fixing-.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,7 +1,7 @@
 From 4ed7840e485af03baffb9a983f613ac76fad66d3 Mon Sep 17 00:00:00 2001
 From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
 Date: Sun, 11 Oct 2015 09:02:26 -0700
-Subject: [PATCH 2006/2008] MacPorts Only: Fix regression introduced when
+Subject: [PATCH 2006/2009] MacPorts Only: Fix regression introduced when
  fixing PR24776
 
 Partially reverts commit efecb2c285bd444b6def43ac62e5f0278df387eb

Deleted: trunk/dports/lang/llvm-3.8/files/2007-ASan-build-fix-for-older-OS-versions-without-os-trac.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2007-ASan-build-fix-for-older-OS-versions-without-os-trac.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2007-ASan-build-fix-for-older-OS-versions-without-os-trac.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,49 +0,0 @@
-From 7cd92c21dd373486584066fe4630b10c9bbb85b7 Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Thu, 29 Oct 2015 00:06:52 -0700
-Subject: [PATCH 2007/2008] ASan build fix for older OS versions without
- os/trace.h
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
----
- lib/sanitizer_common/sanitizer_mac.cc | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
-index 951a48a..49e0c7c 100644
---- llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
-+++ macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
-@@ -43,7 +43,14 @@ extern char **environ;
- #include <mach-o/dyld.h>
- #include <mach/mach.h>
- #include <mach/vm_statistics.h>
-+
-+#if __has_include(<os/trace.h>)
-+#define SANITIZER_OS_TRACE 1
- #include <os/trace.h>
-+#else
-+#define SANITIZER_OS_TRACE 0
-+#endif
-+
- #include <pthread.h>
- #include <sched.h>
- #include <signal.h>
-@@ -381,6 +388,7 @@ void WriteOneLineToSyslog(const char *s) {
- }
- 
- void LogFullErrorReport(const char *buffer) {
-+#if SANITIZER_OS_TRACE
-   // Log with os_trace. This will make it into the crash log.
-   if (GetMacosVersion() >= MACOS_VERSION_MAVERICKS) {
-     // os_trace requires the message (format parameter) to be a string literal.
-@@ -399,6 +407,7 @@ void LogFullErrorReport(const char *buffer) {
-     if (common_flags()->log_to_syslog)
-       os_trace("Consult syslog for more information.");
-   }
-+#endif
- 
-   // Log to syslog.
-   // The logging on OS X may call pthread_create so we need the threading
--- 
-2.6.2
-

Added: trunk/dports/lang/llvm-3.8/files/2007-Add-internal_strlcat-and-internal_strlcpy.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2007-Add-internal_strlcat-and-internal_strlcpy.patch	                        (rev 0)
+++ trunk/dports/lang/llvm-3.8/files/2007-Add-internal_strlcat-and-internal_strlcpy.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -0,0 +1,71 @@
+From 96bd13f1607e5ef51453571ab235d25441c3c67e Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Thu, 29 Oct 2015 09:36:42 -0700
+Subject: [PATCH 2007/2009] Add internal_strlcat and internal_strlcpy
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+---
+ lib/sanitizer_common/sanitizer_libc.cc | 24 ++++++++++++++++++++++++
+ lib/sanitizer_common/sanitizer_libc.h  |  2 ++
+ 2 files changed, 26 insertions(+)
+
+diff --git llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.cc macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.cc
+index 43e4546..d346350 100644
+--- llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.cc
++++ macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.cc
+@@ -175,6 +175,19 @@ uptr internal_strlen(const char *s) {
+   return i;
+ }
+ 
++uptr internal_strlcat(char *dst, const char *src, uptr maxlen) {
++  const uptr srclen = internal_strlen(src);
++  const uptr dstlen = internal_strnlen(dst, maxlen);
++  if (dstlen == maxlen) return maxlen+srclen;
++  if (srclen < maxlen-dstlen) {
++      internal_memcpy(dst+dstlen, src, srclen+1);
++  } else {
++      internal_memcpy(dst+dstlen, src, maxlen-dstlen-1);
++      dst[maxlen-1] = '\0';
++  }
++  return dstlen + srclen;
++}
++
+ char *internal_strncat(char *dst, const char *src, uptr n) {
+   uptr len = internal_strlen(dst);
+   uptr i;
+@@ -184,6 +197,17 @@ char *internal_strncat(char *dst, const char *src, uptr n) {
+   return dst;
+ }
+ 
++uptr internal_strlcpy(char *dst, const char *src, uptr maxlen) {
++  const uptr srclen = internal_strlen(src);
++  if (srclen < maxlen) {
++    internal_memcpy(dst, src, srclen+1);
++  } else if (maxlen != 0) {
++    internal_memcpy(dst, src, maxlen-1);
++    dst[maxlen-1] = '\0';
++  }
++  return srclen;
++}
++
+ char *internal_strncpy(char *dst, const char *src, uptr n) {
+   uptr i;
+   for (i = 0; i < n && src[i]; i++)
+diff --git llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.h macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.h
+index 99de140..df28677 100644
+--- llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.h
++++ macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.h
+@@ -43,8 +43,10 @@ uptr internal_strcspn(const char *s, const char *reject);
+ char *internal_strdup(const char *s);
+ char *internal_strndup(const char *s, uptr n);
+ uptr internal_strlen(const char *s);
++uptr internal_strlcat(char *dst, const char *src, uptr maxlen);
+ char *internal_strncat(char *dst, const char *src, uptr n);
+ int internal_strncmp(const char *s1, const char *s2, uptr n);
++uptr internal_strlcpy(char *dst, const char *src, uptr maxlen);
+ char *internal_strncpy(char *dst, const char *src, uptr n);
+ uptr internal_strnlen(const char *s, uptr maxlen);
+ char *internal_strrchr(const char *s, int c);
+-- 
+2.6.2
+

Added: trunk/dports/lang/llvm-3.8/files/2008-ASan-build-fix-for-older-OS-versions-without-os-trac.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2008-ASan-build-fix-for-older-OS-versions-without-os-trac.patch	                        (rev 0)
+++ trunk/dports/lang/llvm-3.8/files/2008-ASan-build-fix-for-older-OS-versions-without-os-trac.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -0,0 +1,49 @@
+From 0720aa9563fff6d8439938443575733adc28e40a Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Thu, 29 Oct 2015 00:06:52 -0700
+Subject: [PATCH 2008/2009] ASan build fix for older OS versions without
+ os/trace.h
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+---
+ lib/sanitizer_common/sanitizer_mac.cc | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
+index 951a48a..49e0c7c 100644
+--- llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
++++ macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
+@@ -43,7 +43,14 @@ extern char **environ;
+ #include <mach-o/dyld.h>
+ #include <mach/mach.h>
+ #include <mach/vm_statistics.h>
++
++#if __has_include(<os/trace.h>)
++#define SANITIZER_OS_TRACE 1
+ #include <os/trace.h>
++#else
++#define SANITIZER_OS_TRACE 0
++#endif
++
+ #include <pthread.h>
+ #include <sched.h>
+ #include <signal.h>
+@@ -381,6 +388,7 @@ void WriteOneLineToSyslog(const char *s) {
+ }
+ 
+ void LogFullErrorReport(const char *buffer) {
++#if SANITIZER_OS_TRACE
+   // Log with os_trace. This will make it into the crash log.
+   if (GetMacosVersion() >= MACOS_VERSION_MAVERICKS) {
+     // os_trace requires the message (format parameter) to be a string literal.
+@@ -399,6 +407,7 @@ void LogFullErrorReport(const char *buffer) {
+     if (common_flags()->log_to_syslog)
+       os_trace("Consult syslog for more information.");
+   }
++#endif
+ 
+   // Log to syslog.
+   // The logging on OS X may call pthread_create so we need the threading
+-- 
+2.6.2
+

Deleted: trunk/dports/lang/llvm-3.8/files/2008-Save-the-ASan-report-in-the-OS-X-crash-log.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2008-Save-the-ASan-report-in-the-OS-X-crash-log.patch	2015-10-29 18:07:00 UTC (rev 141845)
+++ trunk/dports/lang/llvm-3.8/files/2008-Save-the-ASan-report-in-the-OS-X-crash-log.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -1,44 +0,0 @@
-From 88dd2b10bcb87f6664a8e4784afe3876cd0c4cf4 Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Thu, 29 Oct 2015 00:26:24 -0700
-Subject: [PATCH 2008/2008] Save the ASan report in the OS X crash log
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
----
- lib/sanitizer_common/sanitizer_mac.cc | 13 +++++++++++++
- 1 file changed, 13 insertions(+)
-
-diff --git llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
-index 49e0c7c..3f22d2f 100644
---- llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
-+++ macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
-@@ -62,6 +62,12 @@ extern char **environ;
- #include <sys/types.h>
- #include <unistd.h>
- 
-+extern "C" {
-+static char __crashreporter_info_buff__[1 << 16] = { 0 };
-+static const char *__crashreporter_info__ __attribute__((__used__)) = &__crashreporter_info_buff__[0];
-+asm (".desc ___crashreporter_info__, 0x10");
-+}
-+
- namespace __sanitizer {
- 
- #include "sanitizer_syscall_generic.inc"
-@@ -409,6 +415,13 @@ void LogFullErrorReport(const char *buffer) {
-   }
- #endif
- 
-+  // Save to CrashReporter if we're aborting
-+  if (common_flags()->abort_on_error) {
-+    internal_strncpy(__crashreporter_info_buff__, buffer, sizeof(__crashreporter_info_buff__));
-+    __crashreporter_info_buff__[sizeof(__crashreporter_info_buff__)-1] = '\0';
-+    RemoveANSIEscapeSequencesFromString(__crashreporter_info_buff__);
-+  }
-+
-   // Log to syslog.
-   // The logging on OS X may call pthread_create so we need the threading
-   // environment to be fully initialized. Also, this should never be called when
--- 
-2.6.2
-

Added: trunk/dports/lang/llvm-3.8/files/2009-Save-the-ASan-report-in-the-OS-X-crash-log.patch
===================================================================
--- trunk/dports/lang/llvm-3.8/files/2009-Save-the-ASan-report-in-the-OS-X-crash-log.patch	                        (rev 0)
+++ trunk/dports/lang/llvm-3.8/files/2009-Save-the-ASan-report-in-the-OS-X-crash-log.patch	2015-10-29 18:09:11 UTC (rev 141846)
@@ -0,0 +1,42 @@
+From cd722f6af128170af07c4a102c3621f4eb409884 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Thu, 29 Oct 2015 00:26:24 -0700
+Subject: [PATCH 2009/2009] Save the ASan report in the OS X crash log
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+---
+ lib/sanitizer_common/sanitizer_mac.cc | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
+index 49e0c7c..dd51813 100644
+--- llvm_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
++++ macports_master/projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
+@@ -62,6 +62,11 @@ extern char **environ;
+ #include <sys/types.h>
+ #include <unistd.h>
+ 
++extern "C" {
++static char *__crashreporter_info__ __attribute__((__used__)) = NULL;
++asm (".desc ___crashreporter_info__, 0x10");
++}
++
+ namespace __sanitizer {
+ 
+ #include "sanitizer_syscall_generic.inc"
+@@ -409,6 +414,12 @@ void LogFullErrorReport(const char *buffer) {
+   }
+ #endif
+ 
++  // Save to CrashReporter if we're aborting
++  if (common_flags()->abort_on_error) {
++    __crashreporter_info__ = internal_strdup(buffer);
++    RemoveANSIEscapeSequencesFromString(__crashreporter_info__);
++  }
++
+   // Log to syslog.
+   // The logging on OS X may call pthread_create so we need the threading
+   // environment to be fully initialized. Also, this should never be called when
+-- 
+2.6.2
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/f0a90140/attachment-0001.html>


More information about the macports-changes mailing list