pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compiler-rt-netbsd: Initial scratch for sanitizers/NetBSD
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sun Jun 4 03:12:19 2017 +0200
Changeset: 5c4894074359e86ef79f78b85d3728dbc17b7fb6
Modified Files:
compiler-rt-netbsd/distinfo
Added Files:
compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake
compiler-rt-netbsd/patches/patch-lib_asan_scripts_asan__symbolize.py
Log Message:
compiler-rt-netbsd: Initial scratch for sanitizers/NetBSD
Sponsored by <The NetBSD Foundation>
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5c4894074359e86ef79f78b85d3728dbc17b7fb6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
compiler-rt-netbsd/distinfo | 2 ++
.../patches/patch-cmake_config-ix.cmake | 31 ++++++++++++++++++++++
.../patch-lib_asan_scripts_asan__symbolize.py | 22 +++++++++++++++
3 files changed, 55 insertions(+)
diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index 5d25ab1939..8c2cc9fb95 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -12,4 +12,6 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
+SHA1 (patch-cmake_config-ix.cmake) = 6b0644c422eaf3e2721398c2575e31e07b535984
+SHA1 (patch-lib_asan_scripts_asan__symbolize.py) = d6c079e7092b22b5379293dbb8d1e2445e077932
SHA1 (patch-lib_builtins_gcc__personality__v0.c) = 0a48656e68614730ea05e8fb2588434e774b3c45
diff --git a/compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake b/compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake
new file mode 100644
index 0000000000..d77b1d0d71
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake
@@ -0,0 +1,31 @@
+$NetBSD$
+
+--- cmake/config-ix.cmake.orig 2017-06-03 23:53:56.000000000 +0000
++++ cmake/config-ix.cmake
+@@ -441,7 +441,7 @@ set(COMPILER_RT_SANITIZERS_TO_BUILD ${AL
+ list_replace(COMPILER_RT_SANITIZERS_TO_BUILD all "${ALL_SANITIZERS}")
+
+ if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
+- (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD" OR
++ (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD" OR
+ (OS_NAME MATCHES "Windows" AND (NOT MINGW AND NOT CYGWIN))))
+ set(COMPILER_RT_HAS_SANITIZER_COMMON TRUE)
+ else()
+@@ -460,7 +460,7 @@ else()
+ set(COMPILER_RT_HAS_ASAN FALSE)
+ endif()
+
+-if (OS_NAME MATCHES "Linux|FreeBSD|Windows")
++if (OS_NAME MATCHES "Linux|FreeBSD|NetBSD|Windows")
+ set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME TRUE)
+ else()
+ set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME FALSE)
+@@ -504,7 +504,7 @@ else()
+ endif()
+
+ if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
+- OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android")
++ OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|Android")
+ set(COMPILER_RT_HAS_UBSAN TRUE)
+ else()
+ set(COMPILER_RT_HAS_UBSAN FALSE)
diff --git a/compiler-rt-netbsd/patches/patch-lib_asan_scripts_asan__symbolize.py b/compiler-rt-netbsd/patches/patch-lib_asan_scripts_asan__symbolize.py
new file mode 100644
index 0000000000..235c15e4f5
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_asan_scripts_asan__symbolize.py
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- lib/asan/scripts/asan_symbolize.py.orig 2017-06-03 23:53:58.000000000 +0000
++++ lib/asan/scripts/asan_symbolize.py
+@@ -280,7 +280,7 @@ def BreakpadSymbolizerFactory(binary):
+ def SystemSymbolizerFactory(system, addr, binary, arch):
+ if system == 'Darwin':
+ return DarwinSymbolizer(addr, binary, arch)
+- elif system == 'Linux' or system == 'FreeBSD':
++ elif system == 'Linux' or system == 'FreeBSD' or system == 'NetBSD':
+ return Addr2LineSymbolizer(binary)
+
+
+@@ -370,7 +370,7 @@ class SymbolizationLoop(object):
+ self.binary_name_filter = binary_name_filter
+ self.dsym_hint_producer = dsym_hint_producer
+ self.system = os.uname()[0]
+- if self.system not in ['Linux', 'Darwin', 'FreeBSD']:
++ if self.system not in ['Linux', 'Darwin', 'FreeBSD', 'NetBSD']:
+ raise Exception('Unknown system')
+ self.llvm_symbolizers = {}
+ self.last_llvm_symbolizer = None
Home |
Main Index |
Thread Index |
Old Index