pkgsrc-WIP-changes archive

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

compiler-rt-netbsd: Make a test portable to NetBSD



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Oct 19 00:53:05 2017 +0200
Changeset:	076feff6aa327ac1b6ff4d8db493b1d6fa1b2a47

Modified Files:
	compiler-rt-netbsd/distinfo
Added Files:
	compiler-rt-netbsd/patches/patch-test_tsan_strerror__r.cc

Log Message:
compiler-rt-netbsd: Make a test portable to NetBSD

Use strerror_r(3) in a more portable way.

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=076feff6aa327ac1b6ff4d8db493b1d6fa1b2a47

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

diffstat:
 compiler-rt-netbsd/distinfo                               |  1 +
 compiler-rt-netbsd/patches/patch-test_tsan_strerror__r.cc | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index 9d6a95aa2b..d0f4b3aa38 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -13,5 +13,6 @@ SHA1 (patch-lib_tsan_rtl_tsan__rtl.cc) = 8d5938bb27f9d238ceeb09ac1e6e8090b196fdc
 SHA1 (patch-lib_tsan_rtl_tsan__rtl__amd64.S) = 95591667c23372ceb72334b2ceae800d32574ac6
 SHA1 (patch-lib_tsan_tests_rtl_tsan__test__util__posix.cc) = 302c72dab4fe5a0c94d7de0d728033e616811e5e
 SHA1 (patch-test_tsan_lit.cfg) = 001a4025f0542998da209df933359cf929d7631e
+SHA1 (patch-test_tsan_strerror__r.cc) = 6f157012b8a3ca80f11380b76c433bddea16c86b
 SHA1 (patch-test_tsan_tls__race.cc) = 7447ee161c27deb7196151f56ea739904bec8c1c
 SHA1 (patch-test_tsan_tls__race2.cc) = da9b3298b8e882db111b01ac10a5ae6dbeaa88dc
diff --git a/compiler-rt-netbsd/patches/patch-test_tsan_strerror__r.cc b/compiler-rt-netbsd/patches/patch-test_tsan_strerror__r.cc
new file mode 100644
index 0000000000..b4d738c588
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-test_tsan_strerror__r.cc
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- test/tsan/strerror_r.cc.orig	2017-10-17 18:35:29.000000000 +0000
++++ test/tsan/strerror_r.cc
+@@ -11,7 +11,8 @@
+ char buffer[1000];
+ 
+ void *Thread(void *p) {
+-  return strerror_r(TEST_ERROR, buffer, sizeof(buffer));
++  strerror_r(TEST_ERROR, buffer, sizeof(buffer));
++  return buffer;
+ }
+ 
+ int main() {


Home | Main Index | Thread Index | Old Index