pkgsrc-WIP-changes archive

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

virtualbox-svn: Add draft patches



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Fri Aug 12 21:05:59 2016 +0200
Changeset:	26ba70e0b83754a5edfe743d70606dcf698eb964

Modified Files:
	virtualbox-svn/distinfo
Added Files:
	virtualbox-svn/patches/patch-include_iprt_types.h
	virtualbox-svn/patches/patch-src_VBox_Main_cbinding_VBoxCAPIGlue.c
	virtualbox-svn/patches/patch-src_VBox_Main_glue_NativeEventQueue.cpp
	virtualbox-svn/patches/patch-src_VBox_Runtime_Makefile.kmk

Log Message:
virtualbox-svn: Add draft patches

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

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

diffstat:
 virtualbox-svn/distinfo                            |  4 +++
 virtualbox-svn/patches/patch-include_iprt_types.h  | 32 ++++++++++++++++++++++
 .../patch-src_VBox_Main_cbinding_VBoxCAPIGlue.c    | 27 ++++++++++++++++++
 .../patch-src_VBox_Main_glue_NativeEventQueue.cpp  | 15 ++++++++++
 .../patches/patch-src_VBox_Runtime_Makefile.kmk    | 18 ++++++++++++
 5 files changed, 96 insertions(+)

diffs:
diff --git a/virtualbox-svn/distinfo b/virtualbox-svn/distinfo
index 6049966..20cccbe 100644
--- a/virtualbox-svn/distinfo
+++ b/virtualbox-svn/distinfo
@@ -5,6 +5,10 @@ RMD160 (VirtualBox-5.0.16.tar.bz2) = 6d7a5d6cae5367d26a015895c09294ff0282d062
 SHA512 (VirtualBox-5.0.16.tar.bz2) = 3da3a227360fb50d299e99770378f65e8cb99525377343fa8faff2360be66643d46f68323d6a8b8d4d26182082f171bb35ab2497167bf6df18827a5ea7742074
 Size (VirtualBox-5.0.16.tar.bz2) = 111062984 bytes
 SHA1 (patch-configure) = 32a205a07cacf12300cd718131153d7a601e48c1
+SHA1 (patch-include_iprt_types.h) = 33af52ca41f7d9555c45cc7dbf5bdc4b33384757
 SHA1 (patch-src_VBox_Installer_darwin_VirtualBox_postflight) = d073de54d5de4f61e154003e8e2acc039b6e059b
 SHA1 (patch-src_VBox_Installer_darwin_VirtualBox_preflight) = f24f7d6dd449e6ad664b8e5a8f5861dd7e0f13e8
+SHA1 (patch-src_VBox_Main_cbinding_VBoxCAPIGlue.c) = 03d23375afaf4448751141bedb7771abc7635f3c
+SHA1 (patch-src_VBox_Main_glue_NativeEventQueue.cpp) = 58ff96858e861b03a495323fd5d6141044ac36f5
+SHA1 (patch-src_VBox_Runtime_Makefile.kmk) = 8f16051a163fed59fe088b523c0e965142e6914b
 SHA1 (patch-src_VBox_VMM_testcase_mkdsk.sh) = d949a78be396466636aa2c8d92e6ecf76725f336
diff --git a/virtualbox-svn/patches/patch-include_iprt_types.h b/virtualbox-svn/patches/patch-include_iprt_types.h
new file mode 100644
index 0000000..129274c
--- /dev/null
+++ b/virtualbox-svn/patches/patch-include_iprt_types.h
@@ -0,0 +1,32 @@
+$NetBSD$
+
+--- include/iprt/types.h.orig	2016-08-12 18:06:06.000000000 +0000
++++ include/iprt/types.h
+@@ -222,13 +222,16 @@ typedef uint8_t bool;
+ typedef _Bool bool;
+ #   endif
+ #  elif defined(RT_OS_NETBSD)
+-#   if !defined(_KERNEL)
+-     /*
+-      * For the kernel code <stdbool.h> is not available, but bool is
+-      * provided by <sys/types.h> included above.
+-      */
+-#    include <stdbool.h>
++#   ifndef __bool_true_false_are_defined
++typedef _Bool bool;
+ #   endif
++//#   if !defined(_KERNEL)
++//     *
++//      * For the kernel code <stdbool.h> is not available, but bool is
++//      * provided by <sys/types.h> included above.
++//      *
++//#    include <stdbool.h>
++//#   endif
+ #  else
+ #   if (defined(RT_OS_DARWIN) || defined(RT_OS_HAIKU)) && (defined(_STDBOOL_H) || defined(__STDBOOL_H))
+ #    undef bool
+@@ -2796,4 +2799,3 @@ public:
+ /** @} */
+ 
+ #endif
+-
diff --git a/virtualbox-svn/patches/patch-src_VBox_Main_cbinding_VBoxCAPIGlue.c b/virtualbox-svn/patches/patch-src_VBox_Main_cbinding_VBoxCAPIGlue.c
new file mode 100644
index 0000000..7c2878e
--- /dev/null
+++ b/virtualbox-svn/patches/patch-src_VBox_Main_cbinding_VBoxCAPIGlue.c
@@ -0,0 +1,27 @@
+$NetBSD$
+
+--- src/VBox/Main/cbinding/VBoxCAPIGlue.c.orig	2016-08-12 18:06:18.000000000 +0000
++++ src/VBox/Main/cbinding/VBoxCAPIGlue.c
+@@ -51,7 +51,7 @@
+ /*********************************************************************************************************************************
+ *   Defined Constants And Macros                                                                                                 *
+ *********************************************************************************************************************************/
+-#if defined(__linux__) || defined(__linux_gnu__) || defined(__sun__) || defined(__FreeBSD__)
++#if defined(__linux__) || defined(__linux_gnu__) || defined(__sun__) || defined(__FreeBSD__) || defined(__NetBSD__)
+ # define DYNLIB_NAME        "VBoxXPCOMC.so"
+ #elif defined(__APPLE__)
+ # define DYNLIB_NAME        "VBoxXPCOMC.dylib"
+@@ -278,7 +278,7 @@ int VBoxCGlueInit(void)
+ #elif defined(__APPLE__)
+     if (tryLoadLibrary("/Applications/VirtualBox.app/Contents/MacOS", 1) == 0)
+         return 0;
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
+     if (tryLoadLibrary("/usr/local/lib/virtualbox", 1) == 0)
+         return 0;
+ #elif defined(__OS2__)
+@@ -337,4 +337,3 @@ void VBoxCGlueTerm(void)
+     g_pfnGetFunctions = NULL;
+     memset(g_szVBoxErrMsg, 0, sizeof(g_szVBoxErrMsg));
+ }
+-
diff --git a/virtualbox-svn/patches/patch-src_VBox_Main_glue_NativeEventQueue.cpp b/virtualbox-svn/patches/patch-src_VBox_Main_glue_NativeEventQueue.cpp
new file mode 100644
index 0000000..bd56969
--- /dev/null
+++ b/virtualbox-svn/patches/patch-src_VBox_Main_glue_NativeEventQueue.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- src/VBox/Main/glue/NativeEventQueue.cpp.orig	2016-08-12 18:06:16.000000000 +0000
++++ src/VBox/Main/glue/NativeEventQueue.cpp
+@@ -36,6 +36,10 @@
+ # include <errno.h>
+ #endif
+ 
++#ifdef RT_OS_NETBSD
++# include <sys/select.h>
++#endif
++
+ namespace com
+ {
+ 
diff --git a/virtualbox-svn/patches/patch-src_VBox_Runtime_Makefile.kmk b/virtualbox-svn/patches/patch-src_VBox_Runtime_Makefile.kmk
new file mode 100644
index 0000000..e274bfa
--- /dev/null
+++ b/virtualbox-svn/patches/patch-src_VBox_Runtime_Makefile.kmk
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- src/VBox/Runtime/Makefile.kmk.orig	2016-08-12 18:06:15.000000000 +0000
++++ src/VBox/Runtime/Makefile.kmk
+@@ -1984,6 +1984,8 @@ RuntimeR0Drv_INCS.freebsd = \
+ 	$(PATH_STAGE)/gen-sys-hdrs
+ RuntimeR0Drv_INCS.linux = \
+ 	r0drv/linux
++RuntimeR0Drv_INCS.netbsd  = \
++	/usr/src/sys
+ RuntimeR0Drv_INCS.solaris = \
+ 	r0drv/solaris/vbi/i86pc \
+ 	r0drv/solaris/vbi/i86pc/sys
+@@ -3127,4 +3129,3 @@ taf-template.o taf-template.obj: taf-cor
+ tsp-template.o tsp-template.obj: tsp-core.o tsp-asn1-decoder.o tsp-sanity.o tsp-init.o
+ x509-template.o x509-template.obj: x509-core.o x509-asn1-decoder.o x509-sanity.o x509-init.o
+ pkcs7-template.o pkcs7-template.obj: pkcs7-core.o pkcs7-asn1-decoder.o pkcs7-sanity.o pkcs7-init.o
+-


Home | Main Index | Thread Index | Old Index