pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler-rt-netbsd: Enable more code for sanitizers



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Jun 4 12:29:39 2017 +0200
Changeset:	1680b642df78440b2e2bd378deb858d5ff03a039

Modified Files:
	compiler-rt-netbsd/distinfo
Added Files:
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_CMakeLists.txt
	compiler-rt-netbsd/patches/patch-test_asan_lit.cfg
	compiler-rt-netbsd/patches/patch-test_sanitizer__common_CMakeLists.txt
	compiler-rt-netbsd/patches/patch-test_ubsan_lit.common.cfg

Log Message:
compiler-rt-netbsd: Enable more code for sanitizers

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=1680b642df78440b2e2bd378deb858d5ff03a039

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt-netbsd/distinfo                        |  4 ++++
 .../patch-lib_sanitizer__common_CMakeLists.txt     | 12 +++++++++++
 compiler-rt-netbsd/patches/patch-test_asan_lit.cfg | 24 ++++++++++++++++++++++
 .../patch-test_sanitizer__common_CMakeLists.txt    | 13 ++++++++++++
 .../patches/patch-test_ubsan_lit.common.cfg        | 13 ++++++++++++
 5 files changed, 66 insertions(+)

diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index 8c2cc9fb95..cc02e1b39e 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -15,3 +15,7 @@ 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
+SHA1 (patch-lib_sanitizer__common_CMakeLists.txt) = 45b18179c5d1d9f284ccfe4670a989ac30d05e92
+SHA1 (patch-test_asan_lit.cfg) = 259b0e262b5975b862a51f015ec6b646ce2af10a
+SHA1 (patch-test_sanitizer__common_CMakeLists.txt) = 6af4c5ca42f17bb09823c36bf32d5576fbc0b4c8
+SHA1 (patch-test_ubsan_lit.common.cfg) = d60d738aaf8525cf3f5f028dc2fc2fe54a7d691b
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_CMakeLists.txt b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_CMakeLists.txt
new file mode 100644
index 0000000000..bbde6992e0
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_CMakeLists.txt
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- lib/sanitizer_common/CMakeLists.txt.orig	2017-06-03 23:53:58.000000000 +0000
++++ lib/sanitizer_common/CMakeLists.txt
+@@ -22,6 +22,7 @@ set(SANITIZER_SOURCES_NOTERMINATION
+   sanitizer_procmaps_freebsd.cc
+   sanitizer_procmaps_linux.cc
+   sanitizer_procmaps_mac.cc
++  sanitizer_procmaps_netbsd.cc
+   sanitizer_stackdepot.cc
+   sanitizer_stacktrace.cc
+   sanitizer_stacktrace_printer.cc
diff --git a/compiler-rt-netbsd/patches/patch-test_asan_lit.cfg b/compiler-rt-netbsd/patches/patch-test_asan_lit.cfg
new file mode 100644
index 0000000000..92bf2e30d2
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-test_asan_lit.cfg
@@ -0,0 +1,24 @@
+$NetBSD$
+
+--- test/asan/lit.cfg.orig	2017-06-03 23:53:55.000000000 +0000
++++ test/asan/lit.cfg
+@@ -58,8 +58,8 @@ config.substitutions.append(('%env_asan_
+ # Setup source root.
+ config.test_source_root = os.path.dirname(__file__)
+ 
+-# There is no libdl on FreeBSD.
+-if config.host_os != 'FreeBSD':
++# There is no libdl on FreeBSD and NetBSD.
++if config.host_os != 'FreeBSD' and config.host_os != 'NetBSD':
+   libdl_flag = "-ldl"
+ else:
+   libdl_flag = ""
+@@ -256,7 +256,7 @@ else:
+   config.substitutions.append(('%pie', '-pie'))
+ 
+ # Only run the tests on supported OSs.
+-if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'Windows']:
++if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'NetBSD', 'Windows']:
+   config.unsupported = True
+ 
+ if config.host_os == 'Darwin' and config.target_arch in ["x86_64", "x86_64h"]:
diff --git a/compiler-rt-netbsd/patches/patch-test_sanitizer__common_CMakeLists.txt b/compiler-rt-netbsd/patches/patch-test_sanitizer__common_CMakeLists.txt
new file mode 100644
index 0000000000..73decb1958
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-test_sanitizer__common_CMakeLists.txt
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- test/sanitizer_common/CMakeLists.txt.orig	2017-06-03 23:53:55.000000000 +0000
++++ test/sanitizer_common/CMakeLists.txt
+@@ -4,7 +4,7 @@ set(SANITIZER_COMMON_TEST_DEPS ${SANITIZ
+ set(SANITIZER_COMMON_TESTSUITES)
+ 
+ set(SUPPORTED_TOOLS)
+-if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux|FreeBSD" AND NOT ANDROID)
++if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD" AND NOT ANDROID)
+   list(APPEND SUPPORTED_TOOLS asan)
+ endif()
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT ANDROID)
diff --git a/compiler-rt-netbsd/patches/patch-test_ubsan_lit.common.cfg b/compiler-rt-netbsd/patches/patch-test_ubsan_lit.common.cfg
new file mode 100644
index 0000000000..f17988d9b8
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-test_ubsan_lit.common.cfg
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- test/ubsan/lit.common.cfg.orig	2017-06-03 23:53:55.000000000 +0000
++++ test/ubsan/lit.common.cfg
+@@ -70,7 +70,7 @@ config.substitutions.append( ("%gmlt ", 
+ config.suffixes = ['.c', '.cc', '.cpp']
+ 
+ # Check that the host supports UndefinedBehaviorSanitizer tests
+-if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'Windows']:
++if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'NetBSD', 'Windows']:
+   config.unsupported = True
+ 
+ # Allow tests to use REQUIRES=stable-runtime.  For use when you cannot use XFAIL


Home | Main Index | Thread Index | Old Index