pkgsrc-WIP-changes archive

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

coreclr-git: Add more draft patches, they will be cleaned up and sent upstream



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Jan 31 10:33:52 2016 +0100
Changeset:	4858152590121bf86f73365cdd713adc90891d09

Modified Files:
	coreclr-git/distinfo
	coreclr-git/patches/patch-src_pal_src_config.h.in
	coreclr-git/patches/patch-src_pal_src_configure.cmake
Added Files:
	coreclr-git/patches/patch-src_pal_src_safecrt_output.inl
	coreclr-git/patches/patch-src_pal_src_thread_context.cpp
	coreclr-git/patches/patch-src_pal_src_thread_thread.cpp

Log Message:
coreclr-git: Add more draft patches, they will be cleaned up and sent upstream

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4858152590121bf86f73365cdd713adc90891d09

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

diffstat:
 coreclr-git/distinfo                                 |  6 ++++--
 coreclr-git/patches/patch-src_pal_src_config.h.in    | 19 ++++++++++++++++++-
 .../patches/patch-src_pal_src_configure.cmake        | 20 ++++++++++++++++++--
 .../patches/patch-src_pal_src_safecrt_output.inl     | 18 ++++++++++++++++++
 .../patches/patch-src_pal_src_thread_context.cpp     | 19 +++++++++++++++++++
 .../patches/patch-src_pal_src_thread_thread.cpp      | 19 +++++++++++++++++++
 6 files changed, 96 insertions(+), 5 deletions(-)

diffs:
diff --git a/coreclr-git/distinfo b/coreclr-git/distinfo
index 5d2f1cf..6b087d4 100644
--- a/coreclr-git/distinfo
+++ b/coreclr-git/distinfo
@@ -1,11 +1,13 @@
 $NetBSD$
 
 SHA1 (patch-src_pal_inc_pal__char16.h) = 205f6a8533838c192b36bbb00155da1b02e0f629
-SHA1 (patch-src_pal_src_config.h.in) = ac9fc055756c004a6dc195adf214de46d5bb2c01
-SHA1 (patch-src_pal_src_configure.cmake) = 6e348ee93672e5cd70abe189f7d621352bbfc065
+SHA1 (patch-src_pal_src_config.h.in) = 12da500cf1ec5ac8c448fd5cd8af9554bb235fc9
+SHA1 (patch-src_pal_src_configure.cmake) = d3e75eeaedc255297e6e0169a02d9445dbe922d5
 SHA1 (patch-src_pal_src_cruntime_file.cpp) = 315ad5db53ef2b893a77aa131ce97999214e0e11
 SHA1 (patch-src_pal_src_exception_seh-unwind.cpp) = ffb395a23d66e33e5cf1b0f3f4ff5feff52a56fc
 SHA1 (patch-src_pal_src_exception_signal.cpp) = 1bcb47f927a0c8037876b47ca4d15afb24cbd410
 SHA1 (patch-src_pal_src_include_pal_context.h) = 962cf83ef0ba0a4e2e57e344809a566f12f2e01d
 SHA1 (patch-src_pal_src_misc_sysinfo.cpp) = 03c2d6be0d186edb5434d4d2e22301d68b90b643
 SHA1 (patch-src_pal_src_safecrt_output.inl) = 302598cb271fab7e3582dd19bf24e243f2a14879
+SHA1 (patch-src_pal_src_thread_context.cpp) = af5a6e47dc45f7f14065b02c2cdbab58bfd9d09f
+SHA1 (patch-src_pal_src_thread_thread.cpp) = 26b0dd23ffa6669db1d245ba9ec12378b46c9ad3
diff --git a/coreclr-git/patches/patch-src_pal_src_config.h.in b/coreclr-git/patches/patch-src_pal_src_config.h.in
index d29ce8f..499e928 100644
--- a/coreclr-git/patches/patch-src_pal_src_config.h.in
+++ b/coreclr-git/patches/patch-src_pal_src_config.h.in
@@ -2,7 +2,24 @@ $NetBSD$
 
 --- src/pal/src/config.h.in.orig	2016-01-31 00:59:14.000000000 +0000
 +++ src/pal/src/config.h.in
-@@ -58,6 +58,7 @@
+@@ -6,6 +6,8 @@
+ #cmakedefine01 HAVE_SYS_VMPARAM_H
+ #cmakedefine01 HAVE_MACH_VM_TYPES_H
+ #cmakedefine01 HAVE_MACH_VM_PARAM_H
++#cmakedefine01 HAVE_MACHINE_NPX_H
++#cmakedefine01 HAVE_MACHINE_REG_H
+ #cmakedefine01 HAVE_MACHINE_VMPARAM_H
+ #cmakedefine01 HAVE_PROCFS_H
+ #cmakedefine01 HAVE_CRT_EXTERNS_H
+@@ -14,6 +16,7 @@
+ #cmakedefine01 HAVE_SYS_LWP_H
+ #cmakedefine01 HAVE_LIBUNWIND_H
+ #cmakedefine01 HAVE_LIBUUID_H
++#cmakedefine01 HAVE_LWP_H
+ #cmakedefine01 HAVE_BSD_UUID_H
+ #cmakedefine01 HAVE_RUNETYPE_H
+ 
+@@ -58,6 +61,7 @@
  #cmakedefine01 HAVE_BSD_REGS_T
  #cmakedefine01 HAVE_PT_REGS
  #cmakedefine01 HAVE_GREGSET_T
diff --git a/coreclr-git/patches/patch-src_pal_src_configure.cmake b/coreclr-git/patches/patch-src_pal_src_configure.cmake
index 07d4e6e..fb7a10e 100644
--- a/coreclr-git/patches/patch-src_pal_src_configure.cmake
+++ b/coreclr-git/patches/patch-src_pal_src_configure.cmake
@@ -2,7 +2,23 @@ $NetBSD$
 
 --- src/pal/src/configure.cmake.orig	2016-01-31 00:59:14.000000000 +0000
 +++ src/pal/src/configure.cmake
-@@ -76,6 +76,7 @@ check_struct_has_member ("struct stat" s
+@@ -23,12 +23,15 @@ check_include_files(alloca.h HAVE_ALLOCA
+ check_include_files(sys/vmparam.h HAVE_SYS_VMPARAM_H)
+ check_include_files(mach/vm_types.h HAVE_MACH_VM_TYPES_H)
+ check_include_files(mach/vm_param.h HAVE_MACH_VM_PARAM_H)
++check_include_files(machine/npx.h HAVE_MACHINE_NPX_H)
++check_include_files(machine/reg.h HAVE_MACHINE_REG_H)
+ check_include_files(machine/vmparam.h HAVE_MACHINE_VMPARAM_H)
+ check_include_files(procfs.h HAVE_PROCFS_H)
+ check_include_files(crt_externs.h HAVE_CRT_EXTERNS_H)
+ check_include_files(sys/time.h HAVE_SYS_TIME_H)
+ check_include_files(pthread_np.h HAVE_PTHREAD_NP_H)
+ check_include_files(sys/lwp.h HAVE_SYS_LWP_H)
++check_include_files(lwp.h HAVE_LWP_H)
+ check_include_files(libunwind.h HAVE_LIBUNWIND_H)
+ check_include_files(runetype.h HAVE_RUNETYPE_H)
+ check_include_files(lttng/tracepoint.h HAVE_LTTNG_TRACEPOINT_H)
+@@ -76,6 +79,7 @@ check_struct_has_member ("struct stat" s
  check_struct_has_member ("struct stat" st_atimensec "sys/types.h;sys/stat.h" HAVE_STAT_NSEC)
  check_struct_has_member ("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF)
  check_struct_has_member ("ucontext_t" uc_mcontext.gregs[0] ucontext.h HAVE_GREGSET_T)
@@ -10,7 +26,7 @@ $NetBSD$
  
  set(CMAKE_EXTRA_INCLUDE_FILES machine/reg.h)
  check_type_size("struct reg" BSD_REGS_T)
-@@ -86,7 +87,7 @@ set(CMAKE_EXTRA_INCLUDE_FILES)
+@@ -86,7 +90,7 @@ set(CMAKE_EXTRA_INCLUDE_FILES)
  set(CMAKE_EXTRA_INCLUDE_FILES signal.h)
  check_type_size(siginfo_t SIGINFO_T)
  set(CMAKE_EXTRA_INCLUDE_FILES)
diff --git a/coreclr-git/patches/patch-src_pal_src_safecrt_output.inl b/coreclr-git/patches/patch-src_pal_src_safecrt_output.inl
new file mode 100644
index 0000000..0437667
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_safecrt_output.inl
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- src/pal/src/safecrt/output.inl.orig	2016-01-28 19:04:13.000000000 +0000
++++ src/pal/src/safecrt/output.inl
+@@ -50,7 +50,7 @@ Buffer size required to be passed to _gc
+ //#include <stddef.h>
+ //#include <crtdefs.h>
+ //#include <stdio.h>
+-//#include <stdarg.h>
++#include <stdarg.h>
+ //#include <cvt.h>
+ //#include <conio.h>
+ //#include <internal.h>
+@@ -1738,4 +1738,3 @@ __inline __int64 __cdecl get_int64_arg (
+ #endif  /* _UNICODE */
+ 
+ #endif // __GNUC_VA_LIST
+-
diff --git a/coreclr-git/patches/patch-src_pal_src_thread_context.cpp b/coreclr-git/patches/patch-src_pal_src_thread_context.cpp
new file mode 100644
index 0000000..4bb4e9c
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_thread_context.cpp
@@ -0,0 +1,19 @@
+$NetBSD$
+
+--- src/pal/src/thread/context.cpp.orig	2016-01-28 19:04:13.000000000 +0000
++++ src/pal/src/thread/context.cpp
+@@ -51,9 +51,14 @@ extern void CONTEXT_CaptureContext(LPCON
+ #if !HAVE_MACH_EXCEPTIONS
+ 
+ #if HAVE_BSD_REGS_T
++#if HAVE_MACHINE_REG_H
+ #include <machine/reg.h>
++#endif
++#if HAVE_MACHINE_NPX_H
+ #include <machine/npx.h>
++#endif
+ #endif  // HAVE_BSD_REGS_T
++
+ #if HAVE_PT_REGS
+ #include <asm/ptrace.h>
+ #endif  // HAVE_PT_REGS
diff --git a/coreclr-git/patches/patch-src_pal_src_thread_thread.cpp b/coreclr-git/patches/patch-src_pal_src_thread_thread.cpp
new file mode 100644
index 0000000..b1cdccf
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_thread_thread.cpp
@@ -0,0 +1,19 @@
+$NetBSD$
+
+--- src/pal/src/thread/thread.cpp.orig	2016-01-28 19:04:13.000000000 +0000
++++ src/pal/src/thread/thread.cpp
+@@ -53,8 +53,12 @@ Abstract:
+ #include <limits.h>
+ #if HAVE_SYS_LWP_H
+ #include <sys/lwp.h>
+-// If we don't have sys/lwp.h but do expect to use _lwp_self, declare it to silence compiler warnings
+-#elif HAVE__LWP_SELF
++#endif
++#if HAVE_LWP_H
++#include <lwp.h>
++#endif
++// If we don't have lwp.h, sys/lwp.h but do expect to use _lwp_self, declare it to silence compiler warnings
++#if !HAVE_SYS_LWP_H && !HAVE_LWP_H && HAVE__LWP_SELF
+ extern "C" int _lwp_self ();
+ #endif // HAVE_LWP_H
+ 


Home | Main Index | Thread Index | Old Index