[142777] trunk/dports/devel/libunwind
jeremyhu at macports.org
jeremyhu at macports.org
Sat Dec 12 07:11:32 PST 2015
Revision: 142777
https://trac.macports.org/changeset/142777
Author: jeremyhu at macports.org
Date: 2015-11-22 20:53:39 -0800 (Sun, 22 Nov 2015)
Log Message:
-----------
libunwind: Update to 3.7.0
Modified Paths:
--------------
trunk/dports/devel/libunwind/Portfile
Added Paths:
-----------
trunk/dports/devel/libunwind/files/0001-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch
trunk/dports/devel/libunwind/files/0002-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch
trunk/dports/devel/libunwind/files/0003-libunwind-ppc-build-fix.patch
trunk/dports/devel/libunwind/files/0004-libunwind-Only-include-Availability.h-on-Leopard-and.patch
trunk/dports/devel/libunwind/files/0005-libunwind-MacPorts-availability.patch
trunk/dports/devel/libunwind/files/0006-MacPorts-Makefile.patch
trunk/dports/devel/libunwind/files/0007-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch
trunk/dports/devel/libunwind/files/0008-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch
Removed Paths:
-------------
trunk/dports/devel/libunwind/files/0002-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch
trunk/dports/devel/libunwind/files/0003-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch
trunk/dports/devel/libunwind/files/0004-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch
trunk/dports/devel/libunwind/files/0005-libunwind-ppc-build-fix.patch
trunk/dports/devel/libunwind/files/0006-libunwind-Only-include-Availability.h-on-Leopard-and.patch
trunk/dports/devel/libunwind/files/0008-libunwind-MacPorts-availability.patch
trunk/dports/devel/libunwind/files/1001-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch
trunk/dports/devel/libunwind/files/Makefile
Modified: trunk/dports/devel/libunwind/Portfile
===================================================================
--- trunk/dports/devel/libunwind/Portfile 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/Portfile 2015-11-23 04:53:39 UTC (rev 142777)
@@ -4,7 +4,7 @@
PortGroup compiler_blacklist_versions 1.0
name libunwind
-version 3.6.0
+version 3.7.0
subport ${name}-headers { }
epoch 1
categories devel
@@ -23,26 +23,23 @@
dist_subdir llvm
use_xz yes
-distname libcxxabi-${version}.src
+distname ${name}-${version}.src
-checksums rmd160 bdbc09554b5427fedcc66f72058da3d3618a7692 \
- sha256 f78bcfdb8015272f28d70f5546a544b5bdae5d92862711e8ecb9b24387d994f5
+checksums rmd160 56e622026b30102174f7dcd38a4cc391956e2bd1 \
+ sha256 6a600f30b9f3a54a1faf8c2dfd12522a0c90eb65f1aad63fec540aa27bcaca5b
use_configure no
-post-extract {
- file copy ${filespath}/Makefile ${build.dir}/Makefile
-}
-
patch.pre_args -p1
patchfiles \
- 0002-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch \
- 0003-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch \
- 0004-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch \
- 0005-libunwind-ppc-build-fix.patch \
- 0006-libunwind-Only-include-Availability.h-on-Leopard-and.patch \
- 0008-libunwind-MacPorts-availability.patch \
- 1001-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch
+ 0001-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch \
+ 0002-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch \
+ 0003-libunwind-ppc-build-fix.patch \
+ 0004-libunwind-Only-include-Availability.h-on-Leopard-and.patch \
+ 0005-libunwind-MacPorts-availability.patch \
+ 0006-MacPorts-Makefile.patch \
+ 0007-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch \
+ 0008-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch
post-patch {
if {${os.major} < 9} {
@@ -57,7 +54,7 @@
set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
}
-build.dir ${worksrcpath}/src/Unwind
+build.dir ${worksrcpath}/src
destroot.dir ${build.dir}
if {${subport} == "${name}-headers"} {
@@ -72,8 +69,12 @@
# Technically not needed, but subports will expect depending on libunwind to pull in the headers
depends_lib-append port:libunwind-headers
- # 3.5 and 3.6 are blacklisted to prevent dependency cycles
- compiler.blacklist macports-clang-3.5 macports-clang-3.6
+ # clang 3.5 and newer are blacklisted to prevent dependency cycles
+ foreach ver {3.5 3.6 3.7 3.8} {
+ if {![file exists ${prefix}/bin/clang-mp-${ver}]} {
+ compiler.blacklist-append macports-clang-${ver}
+ }
+ }
variant universal {}
Added: trunk/dports/devel/libunwind/files/0001-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0001-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0001-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,56 @@
+From 54a1dd57e9f610addbe8b48ad3bce36b71fdeff6 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Sun, 11 Jan 2015 14:28:08 -0800
+Subject: [PATCH 1/8] libunwind: Add missing include of libunwind_ext.h to
+ CompactUnwinder.hpp, DwarfInstructions.hpp, and UnwindCursor.hpp
+
+http://www.llvm.org/bugs/show_bug.cgi?id=22202
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+(cherry picked from commit e80eb74721aab2cb6cea3bd24f3e6519741d211b)
+---
+ src/CompactUnwinder.hpp | 1 +
+ src/DwarfInstructions.hpp | 2 +-
+ src/UnwindCursor.hpp | 1 +
+ 3 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/CompactUnwinder.hpp b/src/CompactUnwinder.hpp
+index cd9ce3e..44de2c6 100644
+--- a/src/CompactUnwinder.hpp
++++ b/src/CompactUnwinder.hpp
+@@ -21,6 +21,7 @@
+
+ #include "AddressSpace.hpp"
+ #include "Registers.hpp"
++#include "libunwind_ext.h"
+
+ #define EXTRACT_BITS(value, mask) \
+ ((value >> __builtin_ctz(mask)) & (((1 << __builtin_popcount(mask))) - 1))
+diff --git a/src/DwarfInstructions.hpp b/src/DwarfInstructions.hpp
+index dfe45fb..c2d293f 100644
+--- a/src/DwarfInstructions.hpp
++++ b/src/DwarfInstructions.hpp
+@@ -22,7 +22,7 @@
+ #include "Registers.hpp"
+ #include "DwarfParser.hpp"
+ #include "config.h"
+-
++#include "libunwind_ext.h"
+
+ namespace libunwind {
+
+diff --git a/src/UnwindCursor.hpp b/src/UnwindCursor.hpp
+index 59924f0..ba04a4d 100644
+--- a/src/UnwindCursor.hpp
++++ b/src/UnwindCursor.hpp
+@@ -31,6 +31,7 @@
+ #include "DwarfInstructions.hpp"
+ #include "EHHeaderParser.hpp"
+ #include "libunwind.h"
++#include "libunwind_ext.h"
+ #include "Registers.hpp"
+ #include "Unwind-EHABI.h"
+
+--
+2.6.2
+
Deleted: trunk/dports/devel/libunwind/files/0002-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0002-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/0002-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,42 +0,0 @@
-From 5e5525647e09e584475ba8f6d3f75c174a23e386 Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Sun, 4 Jan 2015 13:30:53 -0800
-Subject: [PATCH 2/8] libunwind: Fix fallback implementation of
- _dyld_find_unwind_sections for x86_64 and document dependency on a newer
- libmacho
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
----
- src/Unwind/AddressSpace.hpp | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/src/Unwind/AddressSpace.hpp b/src/Unwind/AddressSpace.hpp
-index 4e94afc..b626b80 100644
---- a/src/Unwind/AddressSpace.hpp
-+++ b/src/Unwind/AddressSpace.hpp
-@@ -297,7 +297,9 @@ inline LocalAddressSpace::pint_t LocalAddressSpace::getEncodedP(pint_t &addr,
- // In 10.7.0 or later, libSystem.dylib implements this function.
- extern "C" bool _dyld_find_unwind_sections(void *, dyld_unwind_sections *);
- #else
-- // In 10.6.x and earlier, we need to implement this functionality.
-+ // In 10.6.x and earlier, we need to implement this functionality. Note
-+ // that this requires a newer version of libmacho (from cctools) than is
-+ // present in libSystem on 10.6.x (for getsectiondata).
- static inline bool _dyld_find_unwind_sections(void* addr,
- dyld_unwind_sections* info) {
- // Find mach-o image containing address.
-@@ -308,7 +310,11 @@ inline LocalAddressSpace::pint_t LocalAddressSpace::getEncodedP(pint_t &addr,
-
- // Find dwarf unwind section in that image.
- unsigned long size;
-+#ifndef __LP64__
- const uint8_t *p = getsectiondata(mh, "__TEXT", "__eh_frame", &size);
-+#else
-+ const uint8_t *p = getsectiondata((const struct mach_header_64 *)mh, "__TEXT", "__eh_frame", &size);
-+#endif
- if (!p)
- return false;
-
---
-2.2.1
-
Added: trunk/dports/devel/libunwind/files/0002-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0002-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0002-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,32 @@
+From 22b584a1f23f02d79d041b3992f0a2d0ad4012c5 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Sun, 11 Jan 2015 14:34:13 -0800
+Subject: [PATCH 2/8] libunwind: Use __builtin_trap rather than
+ __builtin_unreachable for older toolchains
+
+http://www.llvm.org/bugs/show_bug.cgi?id=22198
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+(cherry picked from commit 9fca7c785d17c8028ba87e8eb16c4c30283554b2)
+---
+ src/DwarfInstructions.hpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/DwarfInstructions.hpp b/src/DwarfInstructions.hpp
+index c2d293f..ccc5f6c 100644
+--- a/src/DwarfInstructions.hpp
++++ b/src/DwarfInstructions.hpp
+@@ -72,7 +72,9 @@ private:
+ return evaluateExpression((pint_t)prolog.cfaExpression, addressSpace,
+ registers, 0);
+ assert(0 && "getCFA(): unknown location");
+- __builtin_unreachable();
++ // __builtin_unreachable() is more appropriate but is only available on gcc-4.5 and newer.
++ // __builtin_trap() is better than an ifdef mess for something that will never run anyways.
++ __builtin_trap();
+ }
+ };
+
+--
+2.6.2
+
Deleted: trunk/dports/devel/libunwind/files/0003-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0003-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/0003-libunwind-Add-missing-include-of-libunwind_ext.h-to-.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,55 +0,0 @@
-From 54e1764c41242c4a343edfdb92b0d8d88ddd5462 Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Sun, 11 Jan 2015 14:28:08 -0800
-Subject: [PATCH 3/8] libunwind: Add missing include of libunwind_ext.h to
- CompactUnwinder.hpp, DwarfInstructions.hpp, and UnwindCursor.hpp
-
-http://www.llvm.org/bugs/show_bug.cgi?id=22202
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
----
- src/Unwind/CompactUnwinder.hpp | 1 +
- src/Unwind/DwarfInstructions.hpp | 2 +-
- src/Unwind/UnwindCursor.hpp | 1 +
- 3 files changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/Unwind/CompactUnwinder.hpp b/src/Unwind/CompactUnwinder.hpp
-index 0dc187f..e4a4327 100644
---- a/src/Unwind/CompactUnwinder.hpp
-+++ b/src/Unwind/CompactUnwinder.hpp
-@@ -21,6 +21,7 @@
-
- #include "AddressSpace.hpp"
- #include "Registers.hpp"
-+#include "libunwind_ext.h"
-
- #define EXTRACT_BITS(value, mask) \
- ((value >> __builtin_ctz(mask)) & (((1 << __builtin_popcount(mask))) - 1))
-diff --git a/src/Unwind/DwarfInstructions.hpp b/src/Unwind/DwarfInstructions.hpp
-index 4fbd53c..7a22283 100644
---- a/src/Unwind/DwarfInstructions.hpp
-+++ b/src/Unwind/DwarfInstructions.hpp
-@@ -22,7 +22,7 @@
- #include "Registers.hpp"
- #include "DwarfParser.hpp"
- #include "config.h"
--
-+#include "libunwind_ext.h"
-
- namespace libunwind {
-
-diff --git a/src/Unwind/UnwindCursor.hpp b/src/Unwind/UnwindCursor.hpp
-index 0350dfd..309c105 100644
---- a/src/Unwind/UnwindCursor.hpp
-+++ b/src/Unwind/UnwindCursor.hpp
-@@ -24,6 +24,7 @@
- #endif
-
- #include "libunwind.h"
-+#include "libunwind_ext.h"
-
- #include "AddressSpace.hpp"
- #include "Registers.hpp"
---
-2.2.1
-
Added: trunk/dports/devel/libunwind/files/0003-libunwind-ppc-build-fix.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0003-libunwind-ppc-build-fix.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0003-libunwind-ppc-build-fix.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,52 @@
+From 318ae788721a364c2da33562ceb18dc7038b8fc2 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Sun, 11 Jan 2015 14:35:08 -0800
+Subject: [PATCH 3/8] libunwind: ppc build fix
+
+http://www.llvm.org/bugs/show_bug.cgi?id=22200
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+(cherry picked from commit 04f8bc664c2ef42d9d7e31c917bc3d0e0a54578c)
+---
+ src/config.h | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/src/config.h b/src/config.h
+index c9ec087..123eef1 100644
+--- a/src/config.h
++++ b/src/config.h
+@@ -41,10 +41,14 @@
+
+ #define _LIBUNWIND_BUILD_ZERO_COST_APIS (defined(__i386__) || \
+ defined(__x86_64__) || \
++ defined(__ppc__) || \
++ defined(__ppc64__) || \
+ defined(__arm64__))
+ #define _LIBUNWIND_BUILD_SJLJ_APIS defined(__arm__)
+ #define _LIBUNWIND_SUPPORT_FRAME_APIS (defined(__i386__) || \
+- defined(__x86_64__))
++ defined(__x86_64__) || \
++ defined(__ppc__) || \
++ defined(__ppc64__))
+ #define _LIBUNWIND_EXPORT __attribute__((visibility("default")))
+ #define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden")))
+ #define _LIBUNWIND_LOG(msg, ...) fprintf(stderr, "libuwind: " msg, __VA_ARGS__)
+@@ -72,10 +76,14 @@
+
+ #define _LIBUNWIND_BUILD_ZERO_COST_APIS (defined(__i386__) || \
+ defined(__x86_64__) || \
++ defined(__ppc__) || \
++ defined(__ppc64__) || \
+ defined(__arm__))
+ #define _LIBUNWIND_BUILD_SJLJ_APIS 0
+ #define _LIBUNWIND_SUPPORT_FRAME_APIS (defined(__i386__) || \
+- defined(__x86_64__))
++ defined(__x86_64__) || \
++ defined(__ppc__) || \
++ defined(__ppc64__))
+ #define _LIBUNWIND_EXPORT __attribute__((visibility("default")))
+ #define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden")))
+ #define _LIBUNWIND_LOG(msg, ...) fprintf(stderr, "libuwind: " msg, __VA_ARGS__)
+--
+2.6.2
+
Added: trunk/dports/devel/libunwind/files/0004-libunwind-Only-include-Availability.h-on-Leopard-and.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0004-libunwind-Only-include-Availability.h-on-Leopard-and.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0004-libunwind-Only-include-Availability.h-on-Leopard-and.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,73 @@
+From 47c5147e57318333ea446f2cb568a992b23f082f Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Sun, 11 Jan 2015 19:24:43 -0800
+Subject: [PATCH 4/8] libunwind: Only include <Availability.h> on Leopard and
+ newer OS X versions
+
+http://www.llvm.org/bugs/show_bug.cgi?id=22203
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+(cherry picked from commit 15cc2c11afe656d450cfd6f80266491aaf096960)
+---
+ include/libunwind.h | 22 ++++++++++++++++++----
+ src/config.h | 9 ++++++++-
+ 2 files changed, 26 insertions(+), 5 deletions(-)
+
+diff --git a/include/libunwind.h b/include/libunwind.h
+index 4a75a7b..315a802 100644
+--- a/include/libunwind.h
++++ b/include/libunwind.h
+@@ -20,12 +20,26 @@
+ #include <stddef.h>
+
+ #ifdef __APPLE__
+- #include <Availability.h>
+- #ifdef __arm__
+- #define LIBUNWIND_AVAIL __attribute__((unavailable))
++ #if __clang__
++ #if __has_include(<Availability.h>)
++ #include <Availability.h>
++ #endif
++ #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
++ #include <Availability.h>
++ #endif
++
++ #if __arm__
++ #define LIBUNWIND_AVAIL __attribute__((unavailable))
++ #elif defined(__OSX_AVAILABLE_STARTING)
++ #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
++ #else
++ #include <AvailabilityMacros.h>
++ #ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
++ #define LIBUNWIND_AVAIL AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
+ #else
+- #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
++ #define LIBUNWIND_AVAIL __attribute__((unavailable))
+ #endif
++ #endif
+ #else
+ #define LIBUNWIND_AVAIL
+ #endif
+diff --git a/src/config.h b/src/config.h
+index 123eef1..1cbf057 100644
+--- a/src/config.h
++++ b/src/config.h
+@@ -29,7 +29,14 @@
+
+ // Platform specific configuration defines.
+ #ifdef __APPLE__
+- #include <Availability.h>
++ #if __clang__
++ #if __has_include(<Availability.h>)
++ #include <Availability.h>
++ #endif
++ #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
++ #include <Availability.h>
++ #endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+--
+2.6.2
+
Deleted: trunk/dports/devel/libunwind/files/0004-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0004-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/0004-libunwind-Use-__builtin_trap-rather-than-__builtin_u.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,31 +0,0 @@
-From f3daa24749c2b01d82172487a64cbc353b0d4424 Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Sun, 11 Jan 2015 14:34:13 -0800
-Subject: [PATCH 4/8] libunwind: Use __builtin_trap rather than
- __builtin_unreachable for older toolchains
-
-http://www.llvm.org/bugs/show_bug.cgi?id=22198
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
----
- src/Unwind/DwarfInstructions.hpp | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/Unwind/DwarfInstructions.hpp b/src/Unwind/DwarfInstructions.hpp
-index 7a22283..8a6e375 100644
---- a/src/Unwind/DwarfInstructions.hpp
-+++ b/src/Unwind/DwarfInstructions.hpp
-@@ -72,7 +72,9 @@ private:
- return evaluateExpression((pint_t)prolog.cfaExpression, addressSpace,
- registers, 0);
- assert(0 && "getCFA(): unknown location");
-- __builtin_unreachable();
-+ // __builtin_unreachable() is more appropriate but is only available on gcc-4.5 and newer.
-+ // __builtin_trap() is better than an ifdef mess for something that will never run anyways.
-+ __builtin_trap();
- }
- };
-
---
-2.2.1
-
Added: trunk/dports/devel/libunwind/files/0005-libunwind-MacPorts-availability.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0005-libunwind-MacPorts-availability.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0005-libunwind-MacPorts-availability.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,74 @@
+From b95b54d6cc96c0585d82a3787fbfbd8223400f73 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Sun, 4 Jan 2015 13:21:39 -0800
+Subject: [PATCH 5/8] libunwind: MacPorts availability
+
+(cherry picked from commit 7400dc78d11961f50fd3f4af7fc13a7ac5555776)
+---
+ include/libunwind.h | 2 +-
+ src/Unwind_AppleExtras.cpp | 36 ++----------------------------------
+ 2 files changed, 3 insertions(+), 35 deletions(-)
+
+diff --git a/include/libunwind.h b/include/libunwind.h
+index 315a802..0d6f584 100644
+--- a/include/libunwind.h
++++ b/include/libunwind.h
+@@ -19,7 +19,7 @@
+ #include <stdint.h>
+ #include <stddef.h>
+
+-#ifdef __APPLE__
++#if defined(__APPLE__) && !defined(USE_MACPORTS_LIBUNWIND)
+ #if __clang__
+ #if __has_include(<Availability.h>)
+ #include <Availability.h>
+diff --git a/src/Unwind_AppleExtras.cpp b/src/Unwind_AppleExtras.cpp
+index b8baef5..078aa86 100644
+--- a/src/Unwind_AppleExtras.cpp
++++ b/src/Unwind_AppleExtras.cpp
+@@ -41,40 +41,8 @@ struct libgcc_object_info {
+
+
+ // static linker symbols to prevent wrong two level namespace for _Unwind symbols
+-#if defined(__arm__)
+- #define NOT_HERE_BEFORE_5_0(sym) \
+- extern const char sym##_tmp30 __asm("$ld$hide$os3.0$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp30 = 0; \
+- extern const char sym##_tmp31 __asm("$ld$hide$os3.1$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp31 = 0; \
+- extern const char sym##_tmp32 __asm("$ld$hide$os3.2$_" #sym );\
+- __attribute__((visibility("default"))) const char sym##_tmp32 = 0; \
+- extern const char sym##_tmp40 __asm("$ld$hide$os4.0$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp40 = 0; \
+- extern const char sym##_tmp41 __asm("$ld$hide$os4.1$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp41 = 0; \
+- extern const char sym##_tmp42 __asm("$ld$hide$os4.2$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp42 = 0; \
+- extern const char sym##_tmp43 __asm("$ld$hide$os4.3$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp43 = 0;
+-#elif defined(__arm64__)
+- #define NOT_HERE_BEFORE_10_6(sym)
+- #define NEVER_HERE(sym)
+-#else
+- #define NOT_HERE_BEFORE_10_6(sym) \
+- extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \
+- extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp5 = 0;
+- #define NEVER_HERE(sym) \
+- extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \
+- extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp5 = 0; \
+- extern const char sym##_tmp6 __asm("$ld$hide$os10.6$_" #sym ); \
+- __attribute__((visibility("default"))) const char sym##_tmp6 = 0;
+-#endif
+-
++#define NOT_HERE_BEFORE_10_6(sym)
++#define NEVER_HERE(sym)
+
+ #if _LIBUNWIND_BUILD_ZERO_COST_APIS
+
+--
+2.6.2
+
Deleted: trunk/dports/devel/libunwind/files/0005-libunwind-ppc-build-fix.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0005-libunwind-ppc-build-fix.patch 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/0005-libunwind-ppc-build-fix.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,43 +0,0 @@
-From f9b3d797e4899e235142d1171f18796830cbcd49 Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Sun, 11 Jan 2015 14:35:08 -0800
-Subject: [PATCH 5/8] libunwind: ppc build fix
-
-http://www.llvm.org/bugs/show_bug.cgi?id=22200
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
----
- src/Unwind/config.h | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/Unwind/config.h b/src/Unwind/config.h
-index 6b459ee..80c476c 100644
---- a/src/Unwind/config.h
-+++ b/src/Unwind/config.h
-@@ -39,9 +39,9 @@
- }
- #endif
-
-- #define _LIBUNWIND_BUILD_ZERO_COST_APIS (__i386__ || __x86_64__ || __arm64__)
-+ #define _LIBUNWIND_BUILD_ZERO_COST_APIS (__ppc__ || __ppc64__ || __i386__ || __x86_64__ || __arm64__)
- #define _LIBUNWIND_BUILD_SJLJ_APIS (__arm__)
-- #define _LIBUNWIND_SUPPORT_FRAME_APIS (__i386__ || __x86_64__)
-+ #define _LIBUNWIND_SUPPORT_FRAME_APIS (__ppc__ || __ppc64__ || __i386__ || __x86_64__)
- #define _LIBUNWIND_EXPORT __attribute__((visibility("default")))
- #define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden")))
- #define _LIBUNWIND_LOG(msg, ...) fprintf(stderr, "libuwind: " msg, __VA_ARGS__)
-@@ -67,9 +67,9 @@
- abort();
- }
-
-- #define _LIBUNWIND_BUILD_ZERO_COST_APIS (__i386__ || __x86_64__ || __arm64__ || __arm__)
-+ #define _LIBUNWIND_BUILD_ZERO_COST_APIS (__ppc__ || __ppc64__ || __i386__ || __x86_64__ || __arm64__ || __arm__)
- #define _LIBUNWIND_BUILD_SJLJ_APIS 0
-- #define _LIBUNWIND_SUPPORT_FRAME_APIS (__i386__ || __x86_64__)
-+ #define _LIBUNWIND_SUPPORT_FRAME_APIS (__ppc__ || __ppc64__ || __i386__ || __x86_64__)
- #define _LIBUNWIND_EXPORT __attribute__((visibility("default")))
- #define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden")))
- #define _LIBUNWIND_LOG(msg, ...) fprintf(stderr, "libuwind: " msg, __VA_ARGS__)
---
-2.2.1
-
Added: trunk/dports/devel/libunwind/files/0006-MacPorts-Makefile.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0006-MacPorts-Makefile.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0006-MacPorts-Makefile.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,153 @@
+From b39cdf54c1df4358d2883336c6926a0dd48d543d Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Tue, 20 Jan 2015 10:23:13 -0800
+Subject: [PATCH 6/8] MacPorts Makefile
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+(cherry picked from commit 4501b3591276ceb3e88099ad653d727eb83f4789)
+---
+ src/Makefile | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 132 insertions(+)
+ create mode 100644 src/Makefile
+
+diff --git a/src/Makefile b/src/Makefile
+new file mode 100644
+index 0000000..8fa9bf6
+--- /dev/null
++++ b/src/Makefile
+@@ -0,0 +1,132 @@
++# Default locations for the build
++ifdef DESTDIR
++DSTROOT = $(DESTDIR)
++endif
++OBJROOT = .
++
++# Default install locations for the library
++PREFIX = /usr
++INCDIR = $(PREFIX)/include
++LIBDIR = $(PREFIX)/lib
++LIBUNWIND_INCDIR = $(INCDIR)/libunwind
++MACHO_INCDIR = $(INCDIR)/mach-o
++LIBUNWIND_FILENAME = libunwind.1.dylib
++LIBUNWIND_SYMLINKNAME = libunwind.dylib
++LIBUNWIND_FILENAME_STATIC = libunwind.a
++LIBUNWIND_COMPAT_VERSION = 1.0.0
++LIBUNWIND_CURRENT_VERSION = 1.0.0
++
++# Default toolchain
++AR = $(shell xcrun -find ar)
++RANLIB = $(shell xcrun -find ranlib)
++CC = $(shell xcrun -find cc)
++CXX = $(shell xcrun -find c++)
++STRIP = $(shell xcrun -find strip)
++STRIP_LIB_FLAGS = -S
++DSYMUTIL = $(shell xcrun -find dsymutil)
++INCLUDES = -I../include
++
++# Default archs
++RC_ARCHS = i386 x86_64
++ARCH_FLAGS := $(foreach arch,$(RC_ARCHS),-arch $(arch))
++
++# Use an SDK?
++ifdef SDKROOT
++SYSROOT_FLAGS = -isysroot $(SDKROOT)
++endif
++
++C_SRCS = \
++ UnwindLevel1.c \
++ UnwindLevel1-gcc-ext.c \
++ Unwind-sjlj.c
++
++CXX_SRCS = \
++ Unwind_AppleExtras.cpp \
++ libunwind.cpp \
++ Unwind-EHABI.cpp
++
++ASM_SRCS = \
++ UnwindRegistersRestore.S \
++ UnwindRegistersSave.S
++
++HEADERS = \
++ ../include/libunwind.h \
++ ../include/unwind.h
++
++LIBUNWIND_HEADERS = \
++ AddressSpace.hpp \
++ assembly.h \
++ CompactUnwinder.hpp \
++ config.h \
++ dwarf2.h \
++ DwarfInstructions.hpp \
++ DwarfParser.hpp \
++ libunwind_ext.h \
++ Registers.hpp \
++ UnwindCursor.hpp \
++ unwind_ext.h
++
++MACHO_HEADERS = \
++ ../include/mach-o/compact_unwind_encoding.h
++
++OBJS = $(C_SRCS:%.c=$(OBJROOT)/%.o) $(CXX_SRCS:%.cpp=$(OBJROOT)/%.o) $(ASM_SRCS:%.S=$(OBJROOT)/%.o)
++
++$(OBJROOT)/%.o : %.c
++ $(CC) $(ARCH_FLAGS) $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
++
++$(OBJROOT)/%.o : %.cpp
++ $(CXX) $(ARCH_FLAGS) $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
++
++$(OBJROOT)/%.o : %.S
++ $(CC) $(ARCH_FLAGS) -force_cpusubtype_ALL $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(ASFLAGS) -c -o $@ $<
++
++$(OBJROOT)/$(LIBUNWIND_FILENAME): $(OBJS)
++ $(CXX) -o $@ $(ARCH_FLAGS) $(SYSROOT_FLAGS) $(LDFLAGS) \
++ -dynamiclib -install_name $(LIBDIR)/$(LIBUNWIND_FILENAME) \
++ -compatibility_version $(LIBUNWIND_COMPAT_VERSION) -current_version $(LIBUNWIND_CURRENT_VERSION) \
++ $(OBJS)
++
++$(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC): $(OBJS)
++ $(AR) cru $@ $(OBJS)
++ $(RANLIB) $@
++
++all: $(OBJROOT)/$(LIBUNWIND_FILENAME) $(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC)
++
++installhdrs:
++ install -d -m 755 $(DSTROOT)$(INCDIR)
++ install -d -m 755 $(DSTROOT)$(LIBUNWIND_INCDIR)
++ install -d -m 755 $(DSTROOT)$(MACHO_INCDIR)
++
++ for f in $(HEADERS); do \
++ install -m 644 $$f $(DSTROOT)$(INCDIR); \
++ done
++
++ for f in $(LIBUNWIND_HEADERS); do \
++ install -m 644 $$f $(DSTROOT)$(LIBUNWIND_INCDIR); \
++ done
++
++ for f in $(MACHO_HEADERS); do \
++ install -m 644 $$f $(DSTROOT)$(MACHO_INCDIR); \
++ done
++
++installdylib: $(OBJROOT)/$(LIBUNWIND_FILENAME)
++ifdef SYMROOT
++ install -m 755 $(OBJROOT)/$(LIBUNWIND_FILENAME) $(SYMROOT)
++ $(DSYMUTIL) --out $(SYMROOT)/$(LIBUNWIND_FILENAME).dSYM $(OBJROOT)/$(LIBUNWIND_FILENAME)
++endif
++ install -d -m 755 $(DSTROOT)$(LIBDIR)
++ install -m 755 $(OBJROOT)/$(LIBUNWIND_FILENAME) $(DSTROOT)$(LIBDIR)
++ifneq "NO" "$(STRIP_ON_INSTALL)"
++ $(STRIP) $(STRIP_LIB_FLAGS) $(DSTROOT)$(LIBDIR)/$(LIBUNWIND_FILENAME)
++endif
++ ln -s $(LIBUNWIND_FILENAME) $(DSTROOT)$(LIBDIR)/$(LIBUNWIND_SYMLINKNAME)
++
++installstatic: $(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC)
++ install -d -m 755 $(DSTROOT)$(LIBDIR)
++ install -m 644 $(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC) $(DSTROOT)$(LIBDIR)
++
++installlibs: installdylib installstatic
++install: installhdrs installlibs
++
++clean:
++ rm -f $(OBJROOT)/*.o $(OBJROOT)/*.a $(OBJROOT)/*.dylib
+--
+2.6.2
+
Deleted: trunk/dports/devel/libunwind/files/0006-libunwind-Only-include-Availability.h-on-Leopard-and.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0006-libunwind-Only-include-Availability.h-on-Leopard-and.patch 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/0006-libunwind-Only-include-Availability.h-on-Leopard-and.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,72 +0,0 @@
-From 297eec69dc89073213afdb29cccfa68ea63428dd Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Sun, 11 Jan 2015 19:24:43 -0800
-Subject: [PATCH 6/8] libunwind: Only include <Availability.h> on Leopard and
- newer OS X versions
-
-http://www.llvm.org/bugs/show_bug.cgi?id=22203
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
----
- include/libunwind.h | 22 ++++++++++++++++++----
- src/Unwind/config.h | 9 ++++++++-
- 2 files changed, 26 insertions(+), 5 deletions(-)
-
-diff --git a/include/libunwind.h b/include/libunwind.h
-index 448d86a..a5630a5 100644
---- a/include/libunwind.h
-+++ b/include/libunwind.h
-@@ -26,12 +26,26 @@
- #endif
-
- #if __APPLE__
-- #include <Availability.h>
-- #if __arm__
-- #define LIBUNWIND_AVAIL __attribute__((unavailable))
-+ #if __clang__
-+ #if __has_include(<Availability.h>)
-+ #include <Availability.h>
-+ #endif
-+ #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
-+ #include <Availability.h>
-+ #endif
-+
-+ #if __arm__
-+ #define LIBUNWIND_AVAIL __attribute__((unavailable))
-+ #elif defined(__OSX_AVAILABLE_STARTING)
-+ #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
-+ #else
-+ #include <AvailabilityMacros.h>
-+ #ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
-+ #define LIBUNWIND_AVAIL AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
- #else
-- #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
-+ #define LIBUNWIND_AVAIL __attribute__((unavailable))
- #endif
-+ #endif
- #else
- #define LIBUNWIND_AVAIL
- #endif
-diff --git a/src/Unwind/config.h b/src/Unwind/config.h
-index 80c476c..5f5c4fb 100644
---- a/src/Unwind/config.h
-+++ b/src/Unwind/config.h
-@@ -29,7 +29,14 @@
-
- // Platform specific configuration defines.
- #if __APPLE__
-- #include <Availability.h>
-+ #if __clang__
-+ #if __has_include(<Availability.h>)
-+ #include <Availability.h>
-+ #endif
-+ #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
-+ #include <Availability.h>
-+ #endif
-+
- #ifdef __cplusplus
- extern "C" {
- #endif
---
-2.2.1
-
Added: trunk/dports/devel/libunwind/files/0007-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0007-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0007-libunwind-Fix-fallback-implementation-of-_dyld_find_.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,54 @@
+From b5d128f0bd152254de0d357e938421ea51acdc13 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Sun, 4 Jan 2015 13:30:53 -0800
+Subject: [PATCH 7/8] libunwind: Fix fallback implementation of
+ _dyld_find_unwind_sections for x86_64 and document dependency on a newer
+ libmacho
+
+http://www.llvm.org/bugs/show_bug.cgi?id=22270
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+(cherry picked from commit 4d644e4bfc1b3b430cb5edec884f1a24a9b8de80)
+---
+ src/AddressSpace.hpp | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/src/AddressSpace.hpp b/src/AddressSpace.hpp
+index 567cbda..2554e11 100644
+--- a/src/AddressSpace.hpp
++++ b/src/AddressSpace.hpp
+@@ -316,14 +316,20 @@ LocalAddressSpace::getEncodedP(pint_t &addr, pint_t end, uint8_t encoding,
+ // In 10.7.0 or later, libSystem.dylib implements this function.
+ extern "C" bool _dyld_find_unwind_sections(void *, dyld_unwind_sections *);
+ #else
+- // In 10.6.x and earlier, we need to implement this functionality.
++ // In 10.6.x and earlier, we need to implement this functionality. Note
++ // that this requires a newer version of libmacho (from cctools) than is
++ // present in libSystem on 10.6.x (for getsectiondata).
+ static inline bool _dyld_find_unwind_sections(void* addr,
+ dyld_unwind_sections* info) {
+ // Find mach-o image containing address.
+ Dl_info dlinfo;
+ if (!dladdr(addr, &dlinfo))
+ return false;
+- const mach_header *mh = (const mach_header *)dlinfo.dli_saddr;
++#if __LP64__
++ const struct mach_header_64 *mh = (const struct mach_header_64 *)dlinfo.dli_saddr;
++#else
++ const struct mach_header *mh = (const struct mach_header *)dlinfo.dli_saddr;
++#endif
+
+ // Find dwarf unwind section in that image.
+ unsigned long size;
+@@ -332,7 +338,7 @@ LocalAddressSpace::getEncodedP(pint_t &addr, pint_t end, uint8_t encoding,
+ return false;
+
+ // Fill in return struct.
+- info->mh = mh;
++ info->mh = (const struct mach_header *)mh;
+ info->dwarf_section = p;
+ info->dwarf_section_length = size;
+ info->compact_unwind_section = 0;
+--
+2.6.2
+
Added: trunk/dports/devel/libunwind/files/0008-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0008-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch (rev 0)
+++ trunk/dports/devel/libunwind/files/0008-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -0,0 +1,30 @@
+From fa6c5bb5bcf432c1839909365c7fc11dda172b15 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Sat, 7 Mar 2015 19:58:56 -0800
+Subject: [PATCH 8/8] Define __STDC_FORMAT_MACROS to bring in format macros
+ when including <inttypes.h> in C++ code
+
+Fixes regression from: 1f22bd54e8565959c1d2c3ed7384cb77e18d0807
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+CC: Dan Albert <danalbert at google.com>
+(cherry picked from commit e02479718191c6aa63a23b2a5029a69906ba3d76)
+---
+ src/DwarfParser.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/DwarfParser.hpp b/src/DwarfParser.hpp
+index f6ef738..0c24dc6 100644
+--- a/src/DwarfParser.hpp
++++ b/src/DwarfParser.hpp
+@@ -13,6 +13,7 @@
+ #ifndef __DWARF_PARSER_HPP__
+ #define __DWARF_PARSER_HPP__
+
++#define __STDC_FORMAT_MACROS 1
+ #include <inttypes.h>
+ #include <stdint.h>
+ #include <stdio.h>
+--
+2.6.2
+
Deleted: trunk/dports/devel/libunwind/files/0008-libunwind-MacPorts-availability.patch
===================================================================
--- trunk/dports/devel/libunwind/files/0008-libunwind-MacPorts-availability.patch 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/0008-libunwind-MacPorts-availability.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,70 +0,0 @@
-From 1691346de5361741a1b661d62da7e05e844e702f Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Sun, 4 Jan 2015 13:21:39 -0800
-Subject: [PATCH 8/8] libunwind: MacPorts availability
-
----
- include/libunwind.h | 2 +-
- src/Unwind/Unwind_AppleExtras.cpp | 31 -------------------------------
- 2 files changed, 1 insertion(+), 32 deletions(-)
-
-diff --git a/include/libunwind.h b/include/libunwind.h
-index fbfc19b..64029e0 100644
---- a/include/libunwind.h
-+++ b/include/libunwind.h
-@@ -25,7 +25,7 @@
- #define LIBCXXABI_ARM_EHABI 0
- #endif
-
--#if __APPLE__
-+#if defined(__APPLE__) && !defined(USE_MACPORTS_LIBUNWIND)
- #if __clang__
- #if __has_include(<Availability.h>)
- #include <Availability.h>
-diff --git a/src/Unwind/Unwind_AppleExtras.cpp b/src/Unwind/Unwind_AppleExtras.cpp
-index 6d02a66..8f1d4ef 100644
---- a/src/Unwind/Unwind_AppleExtras.cpp
-+++ b/src/Unwind/Unwind_AppleExtras.cpp
-@@ -41,39 +41,8 @@ struct libgcc_object_info {
-
-
- // static linker symbols to prevent wrong two level namespace for _Unwind symbols
--#if __arm__
-- #define NOT_HERE_BEFORE_5_0(sym) \
-- extern const char sym##_tmp30 __asm("$ld$hide$os3.0$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp30 = 0; \
-- extern const char sym##_tmp31 __asm("$ld$hide$os3.1$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp31 = 0; \
-- extern const char sym##_tmp32 __asm("$ld$hide$os3.2$_" #sym );\
-- __attribute__((visibility("default"))) const char sym##_tmp32 = 0; \
-- extern const char sym##_tmp40 __asm("$ld$hide$os4.0$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp40 = 0; \
-- extern const char sym##_tmp41 __asm("$ld$hide$os4.1$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp41 = 0; \
-- extern const char sym##_tmp42 __asm("$ld$hide$os4.2$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp42 = 0; \
-- extern const char sym##_tmp43 __asm("$ld$hide$os4.3$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp43 = 0;
--#elif __arm64__
- #define NOT_HERE_BEFORE_10_6(sym)
- #define NEVER_HERE(sym)
--#else
-- #define NOT_HERE_BEFORE_10_6(sym) \
-- extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \
-- extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp5 = 0;
-- #define NEVER_HERE(sym) \
-- extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \
-- extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp5 = 0; \
-- extern const char sym##_tmp6 __asm("$ld$hide$os10.6$_" #sym ); \
-- __attribute__((visibility("default"))) const char sym##_tmp6 = 0;
--#endif
-
-
- #if _LIBUNWIND_BUILD_ZERO_COST_APIS
---
-2.2.1
-
Deleted: trunk/dports/devel/libunwind/files/1001-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch
===================================================================
--- trunk/dports/devel/libunwind/files/1001-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/1001-Define-__STDC_FORMAT_MACROS-to-bring-in-format-macro.patch 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,29 +0,0 @@
-From 60bbc7ef1f64c92c0a6819fd2c5558d266d5063d Mon Sep 17 00:00:00 2001
-From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-Date: Sat, 7 Mar 2015 19:58:56 -0800
-Subject: [PATCH] Define __STDC_FORMAT_MACROS to bring in format macros when
- including <inttypes.h> in C++ code
-
-Fixes regression from: 1f22bd54e8565959c1d2c3ed7384cb77e18d0807
-
-Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
-CC: Dan Albert <danalbert at google.com>
----
- src/Unwind/DwarfParser.hpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/Unwind/DwarfParser.hpp b/src/Unwind/DwarfParser.hpp
-index f6ef738..0c24dc6 100644
---- a/src/Unwind/DwarfParser.hpp
-+++ b/src/Unwind/DwarfParser.hpp
-@@ -13,6 +13,7 @@
- #ifndef __DWARF_PARSER_HPP__
- #define __DWARF_PARSER_HPP__
-
-+#define __STDC_FORMAT_MACROS 1
- #include <inttypes.h>
- #include <stdint.h>
- #include <stdio.h>
---
-2.3.1
-
Deleted: trunk/dports/devel/libunwind/files/Makefile
===================================================================
--- trunk/dports/devel/libunwind/files/Makefile 2015-11-23 02:21:45 UTC (rev 142776)
+++ trunk/dports/devel/libunwind/files/Makefile 2015-11-23 04:53:39 UTC (rev 142777)
@@ -1,129 +0,0 @@
-# Default locations for the build
-ifdef DESTDIR
-DSTROOT = $(DESTDIR)
-endif
-OBJROOT = .
-
-# Default install locations for the library
-PREFIX = /usr
-INCDIR = $(PREFIX)/include
-LIBDIR = $(PREFIX)/lib
-LIBUNWIND_INCDIR = $(INCDIR)/libunwind
-MACHO_INCDIR = $(INCDIR)/mach-o
-LIBUNWIND_FILENAME = libunwind.1.dylib
-LIBUNWIND_SYMLINKNAME = libunwind.dylib
-LIBUNWIND_FILENAME_STATIC = libunwind.a
-LIBUNWIND_COMPAT_VERSION = 1.0.0
-LIBUNWIND_CURRENT_VERSION = 1.0.0
-
-# Default toolchain
-AR = $(shell xcrun -find ar)
-RANLIB = $(shell xcrun -find ranlib)
-CC = $(shell xcrun -find cc)
-CXX = $(shell xcrun -find c++)
-STRIP = $(shell xcrun -find strip)
-STRIP_LIB_FLAGS = -S
-DSYMUTIL = $(shell xcrun -find dsymutil)
-INCLUDES = -I../../include
-
-# Default archs
-RC_ARCHS = i386 x86_64
-ARCH_FLAGS := $(foreach arch,$(RC_ARCHS),-arch $(arch))
-
-# Use an SDK?
-ifdef SDKROOT
-SYSROOT_FLAGS = -isysroot $(SDKROOT)
-endif
-
-C_SRCS = \
- UnwindLevel1.c \
- UnwindLevel1-gcc-ext.c \
- Unwind-sjlj.c
-
-CXX_SRCS = \
- Unwind_AppleExtras.cpp \
- libunwind.cpp \
- Unwind-EHABI.cpp
-
-ASM_SRCS = \
- UnwindRegistersRestore.S \
- UnwindRegistersSave.S
-
-HEADERS = \
- ../../include/libunwind.h \
- ../../include/unwind.h
-
-LIBUNWIND_HEADERS = \
- AddressSpace.hpp \
- assembly.h \
- CompactUnwinder.hpp \
- config.h \
- dwarf2.h \
- DwarfInstructions.hpp \
- DwarfParser.hpp \
- libunwind_ext.h \
- Registers.hpp \
- UnwindCursor.hpp \
- unwind_ext.h
-
-MACHO_HEADERS = \
- ../../include/mach-o/compact_unwind_encoding.h
-
-OBJS = $(C_SRCS:%.c=$(OBJROOT)/%.o) $(CXX_SRCS:%.cpp=$(OBJROOT)/%.o) $(ASM_SRCS:%.S=$(OBJROOT)/%.o)
-
-$(OBJROOT)/%.o : %.c
- $(CC) $(ARCH_FLAGS) $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
-
-$(OBJROOT)/%.o : %.cpp
- $(CXX) $(ARCH_FLAGS) $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
-
-$(OBJROOT)/%.o : %.S
- $(CC) $(ARCH_FLAGS) -force_cpusubtype_ALL $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(ASFLAGS) -c -o $@ $<
-
-$(OBJROOT)/$(LIBUNWIND_FILENAME): $(OBJS)
- $(CXX) -o $@ $(ARC_FLAGS) $(SYSROOT_FLAGS) $(LDFLAGS) \
- -dynamiclib -install_name $(LIBDIR)/$(LIBUNWIND_FILENAME) \
- -compatibility_version $(LIBUNWIND_COMPAT_VERSION) -current_version $(LIBUNWIND_CURRENT_VERSION) \
- $(OBJS)
-
-$(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC): $(OBJS)
- $(AR) cru $@ $(OBJS)
- $(RANLIB) $@
-
-all: $(OBJROOT)/$(LIBUNWIND_FILENAME) $(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC)
-
-installhdrs:
- install -d -m 755 $(DSTROOT)$(INCDIR)
- install -d -m 755 $(DSTROOT)$(LIBUNWIND_INCDIR)
- install -d -m 755 $(DSTROOT)$(MACHO_INCDIR)
-
- for f in $(HEADERS); do \
- install -m 644 $$f $(DSTROOT)$(INCDIR); \
- done
-
- for f in $(LIBUNWIND_HEADERS); do \
- install -m 644 $$f $(DSTROOT)$(LIBUNWIND_INCDIR); \
- done
-
- for f in $(MACHO_HEADERS); do \
- install -m 644 $$f $(DSTROOT)$(MACHO_INCDIR); \
- done
-
-installdylib: $(OBJROOT)/$(LIBUNWIND_FILENAME)
-ifdef SYMROOT
- install -m 755 $(OBJROOT)/$(LIBUNWIND_FILENAME) $(SYMROOT)
- $(DSYMUTIL) --out $(SYMROOT)/$(LIBUNWIND_FILENAME).dSYM $(OBJROOT)/$(LIBUNWIND_FILENAME)
-endif
- install -d -m 755 $(DSTROOT)$(LIBDIR)
- install -m 755 $(OBJROOT)/$(LIBUNWIND_FILENAME) $(DSTROOT)$(LIBDIR)
-ifneq "NO" "$(STRIP_ON_INSTALL)"
- $(STRIP) $(STRIP_LIB_FLAGS) $(DSTROOT)$(LIBDIR)/$(LIBUNWIND_FILENAME)
-endif
- ln -s $(LIBUNWIND_FILENAME) $(DSTROOT)$(LIBDIR)/$(LIBUNWIND_SYMLINKNAME)
-
-installstatic: $(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC)
- install -d -m 755 $(DSTROOT)$(LIBDIR)
- install -m 644 $(OBJROOT)/$(LIBUNWIND_FILENAME_STATIC) $(DSTROOT)$(LIBDIR)
-
-installlibs: installdylib installstatic
-install: installhdrs installlibs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/0f063d12/attachment-0001.html>
More information about the macports-changes
mailing list