pkgsrc-WIP-changes archive

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

compiler-rt-commonsan: Add NetBSD support in tests



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Jul 9 18:12:32 2017 +0200
Changeset:	8fd1992516ac007af1088883b03a583bf1bd45f8

Modified Files:
	compiler-rt-commonsan/distinfo
Added Files:
	compiler-rt-commonsan/patches/patch-lib_sanitizer__common_tests_sanitizer__test__utils.h

Log Message:
compiler-rt-commonsan: Add NetBSD support in tests

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=8fd1992516ac007af1088883b03a583bf1bd45f8

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

diffstat:
 compiler-rt-commonsan/distinfo                     |  1 +
 ...anitizer__common_tests_sanitizer__test__utils.h | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diffs:
diff --git a/compiler-rt-commonsan/distinfo b/compiler-rt-commonsan/distinfo
index 16c50678a4..4f56ff6b5f 100644
--- a/compiler-rt-commonsan/distinfo
+++ b/compiler-rt-commonsan/distinfo
@@ -32,3 +32,4 @@ SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__common.cc) = 5a407e496f92
 SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__netbsd.cc) = 67e12a7c98a520f9fca9c6970a1e009d726aa5d6
 SHA1 (patch-lib_sanitizer__common_sanitizer__syscall__generic.inc) = a38e0d01a26de55092af30840be7577f83d90917
 SHA1 (patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc) = cf7e016fff0f57e7bcae93696ec05e5cff7b7093
+SHA1 (patch-lib_sanitizer__common_tests_sanitizer__test__utils.h) = a4b073c5390a147536849592e34db0d9439d4cd3
diff --git a/compiler-rt-commonsan/patches/patch-lib_sanitizer__common_tests_sanitizer__test__utils.h b/compiler-rt-commonsan/patches/patch-lib_sanitizer__common_tests_sanitizer__test__utils.h
new file mode 100644
index 0000000000..2b326b21a6
--- /dev/null
+++ b/compiler-rt-commonsan/patches/patch-lib_sanitizer__common_tests_sanitizer__test__utils.h
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- lib/sanitizer_common/tests/sanitizer_test_utils.h.orig	2017-07-03 15:33:06.000000000 +0000
++++ lib/sanitizer_common/tests/sanitizer_test_utils.h
+@@ -101,7 +101,7 @@ static inline uint32_t my_rand() {
+ # define SANITIZER_TEST_HAS_POSIX_MEMALIGN 0
+ #endif
+ 
+-#if !defined(__APPLE__) && !defined(__FreeBSD__) && \
++#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && \
+     !defined(__ANDROID__) && !defined(_WIN32)
+ # define SANITIZER_TEST_HAS_MEMALIGN 1
+ # define SANITIZER_TEST_HAS_PVALLOC 1
+@@ -118,7 +118,7 @@ static inline uint32_t my_rand() {
+ # define SANITIZER_TEST_HAS_STRNLEN 0
+ #endif
+ 
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ # define SANITIZER_TEST_HAS_PRINTF_L 1
+ #else
+ # define SANITIZER_TEST_HAS_PRINTF_L 0


Home | Main Index | Thread Index | Old Index