pkgsrc-WIP-changes archive

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

compiler-rt-netbsd: Start splitting posix and netbsd code



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Aug 27 08:10:08 2017 +0200
Changeset:	c728d2aaf46c96a9809966cc3aa8c406cb030ee6

Modified Files:
	compiler-rt-netbsd/distinfo
Added Files:
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix.h
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix__libcdep.cc

Log Message:
compiler-rt-netbsd: Start splitting posix and netbsd code

On demand from upstream split NetBSD from sanitizer_platform_limits_posix.h.

Part 2.

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=c728d2aaf46c96a9809966cc3aa8c406cb030ee6

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

diffstat:
 compiler-rt-netbsd/distinfo                            |  3 +++
 ...nitizer__common_sanitizer__platform__interceptors.h | 17 +++++++++++++++++
 .../patch-lib_sanitizer__common_sanitizer__posix.h     | 16 ++++++++++++++++
 ...-lib_sanitizer__common_sanitizer__posix__libcdep.cc | 18 ++++++++++++++++++
 4 files changed, 54 insertions(+)

diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index 97e4d1a99d..832716b0e2 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -21,9 +21,12 @@ SHA1 (patch-lib_fuzzer_FuzzerUtilLinux.cpp) = 30e0ead2deb98ac0a7f67403c47044ef6e
 SHA1 (patch-lib_fuzzer_afl_afl__driver.cpp) = a114e28152558b7147d0931eb638109c3d2f32a2
 SHA1 (patch-lib_fuzzer_tests_CMakeLists.txt) = eaffd9f8f2621ad465b5c734a764bdff0243af3d
 SHA1 (patch-lib_sanitizer__common_CMakeLists.txt) = 41b67281e9c9498c0be923f8aca05e93ef92db35
+SHA1 (patch-lib_sanitizer__common_sanitizer__platform__interceptors.h) = 5cfe5b2217deb84703c6385c11a243b15b035256
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc) = 04812bc64ed53e6e1da764b70678d85252c28d5a
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.h) = 89ce6c77523b479fda2a52ba65e1513dc048f6db
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__posix.h) = 86d872c585bfde552276a5f3e3d198338663bafd
+SHA1 (patch-lib_sanitizer__common_sanitizer__posix.h) = e3c6e3f438dbc0911ec54f24bb5a325afe07fbe1
+SHA1 (patch-lib_sanitizer__common_sanitizer__posix__libcdep.cc) = 24be4a422f108c24fd095ef725a3b3b582553e66
 SHA1 (patch-lib_tsan_go_buildgo.sh) = fe64b3389bbf6ae2ddf187df3e0600b2f817f51d
 SHA1 (patch-lib_tsan_rtl_tsan__interceptors.cc) = 557018c2dce673756215ebf9f1564866df555444
 SHA1 (patch-lib_tsan_rtl_tsan__platform__linux.cc) = 4269acd5ea1d1f448fb9a7a31def2f84a03b27da
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
new file mode 100644
index 0000000000..bfbda48c7b
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- lib/sanitizer_common/sanitizer_platform_interceptors.h.orig	2017-08-03 21:24:37.000000000 +0000
++++ lib/sanitizer_common/sanitizer_platform_interceptors.h
+@@ -33,7 +33,11 @@
+ #endif
+ 
+ #if SI_POSIX
+-# include "sanitizer_platform_limits_posix.h"
++# if SANITIZER_NETBSD
++#  include "sanitizer_platform_limits_netbsd.h"
++# else
++#  include "sanitizer_platform_limits_posix.h"
++# endif
+ #endif
+ 
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix.h b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix.h
new file mode 100644
index 0000000000..981ef1708c
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix.h
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- lib/sanitizer_common/sanitizer_posix.h.orig	2017-07-04 05:53:22.000000000 +0000
++++ lib/sanitizer_common/sanitizer_posix.h
+@@ -16,7 +16,11 @@
+ // ----------- ATTENTION -------------
+ // This header should NOT include any other headers from sanitizer runtime.
+ #include "sanitizer_internal_defs.h"
++#if SANITIZER_NETBSD
++#include "sanitizer_platform_limits_netbsd.h"
++#else
+ #include "sanitizer_platform_limits_posix.h"
++#endif
+ 
+ #if !SANITIZER_POSIX
+ // Make it hard to accidentally use any of functions declared in this file:
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix__libcdep.cc b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix__libcdep.cc
new file mode 100644
index 0000000000..db0c4de5f1
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__posix__libcdep.cc
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- lib/sanitizer_common/sanitizer_posix_libcdep.cc.orig	2017-07-07 06:32:45.000000000 +0000
++++ lib/sanitizer_common/sanitizer_posix_libcdep.cc
+@@ -18,7 +18,13 @@
+ 
+ #include "sanitizer_common.h"
+ #include "sanitizer_flags.h"
++
++#if SANITIZER_NETBSD
++#include "sanitizer_platform_limits_netbsd.h"
++#else
+ #include "sanitizer_platform_limits_posix.h"
++#endif
++
+ #include "sanitizer_posix.h"
+ #include "sanitizer_procmaps.h"
+ #include "sanitizer_stacktrace.h"


Home | Main Index | Thread Index | Old Index