From owner-svn-ports-all@FreeBSD.ORG Fri Mar 28 23:35:37 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04C7E6C5; Fri, 28 Mar 2014 23:35:37 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1EF1329; Fri, 28 Mar 2014 23:35:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2SNZal0039282; Fri, 28 Mar 2014 23:35:36 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2SNZWdZ039254; Fri, 28 Mar 2014 23:35:32 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201403282335.s2SNZWdZ039254@svn.freebsd.org> From: Jung-uk Kim Date: Fri, 28 Mar 2014 23:35:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349473 - in head/emulators: virtualbox-ose virtualbox-ose-additions virtualbox-ose-kmod virtualbox-ose/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2014 23:35:37 -0000 Author: jkim Date: Fri Mar 28 23:35:31 2014 New Revision: 349473 URL: http://svnweb.freebsd.org/changeset/ports/349473 QAT: https://qat.redports.org/buildarchive/r349473/ Log: - Update to 4.3.10. - Build with base C/C++ compiler, i.e., clang on 10.0+, as much as we can to remove GCC run-time dependency and to reduce possible C++ ABI conflicts. Added: head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Additions-x11-VBoxClient-Makefile.kmk (contents, props changed) head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Additions-x11-vboxvideo-Makefile.kmk (contents, props changed) head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk (contents, props changed) head/emulators/virtualbox-ose/files/extrapatch-src-recompiler-Makefile.kmk (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Devices-Storage-DevAHCI.cpp (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-client-ConsoleImpl2.cpp (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-MachineImpl.cpp (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-VirtualBoxImpl.cpp (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-fileaio-freebsd.cpp (contents, props changed) head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-mp-freebsd.cpp (contents, props changed) Deleted: head/emulators/virtualbox-ose/files/patch-src-VBox-Additions-common-VBoxGuest-freebsd-Makefile head/emulators/virtualbox-ose/files/patch-src-VBox-Additions-freebsd-Makefile head/emulators/virtualbox-ose/files/patch-src-VBox-NetworkServices-NAT-VBoxNetLwipNAT.cpp Modified: head/emulators/virtualbox-ose-additions/Makefile head/emulators/virtualbox-ose-additions/distinfo head/emulators/virtualbox-ose-additions/pkg-plist head/emulators/virtualbox-ose-kmod/Makefile head/emulators/virtualbox-ose-kmod/distinfo head/emulators/virtualbox-ose-kmod/pkg-plist head/emulators/virtualbox-ose/Makefile head/emulators/virtualbox-ose/distinfo head/emulators/virtualbox-ose/files/extrapatch-Config.kmk head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-Makefile.kmk Modified: head/emulators/virtualbox-ose-additions/Makefile ============================================================================== --- head/emulators/virtualbox-ose-additions/Makefile Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose-additions/Makefile Fri Mar 28 23:35:31 2014 (r349473) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= virtualbox-ose -DISTVERSION= 4.3.8 -PORTREVISION= 1 +DISTVERSION= 4.3.10 CATEGORIES= emulators MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \ http://tmp.chruetertee.ch/ \ @@ -24,8 +23,7 @@ UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX} PATCHDIR= ${.CURDIR}/../${PORTNAME}/files WRKSRC= ${WRKDIR}/VirtualBox-${PORTVERSION} USE_RC_SUBR= vboxguest vboxservice -USES= iconv kmod tar:bzip2 -USE_GCC= any +USES= compiler:features iconv kmod tar:bzip2 ONLY_FOR_ARCHS= i386 amd64 USE_PYTHON_BUILD= yes MAKE_JOBS_UNSAFE= yes @@ -93,6 +91,14 @@ XSERVER_ABI:= ${XSERVER_VER:S/.//:R} .include +.if ${COMPILER_TYPE} == clang +EXTRA_PATCHES= ${PATCHDIR}/extrapatch-Config.kmk \ + ${PATCHDIR}/extrapatch-src-VBox-Additions-x11-vboxvideo-Makefile.kmk +.if ${COMPILER_FEATURES:Mlibc++} +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Additions-x11-VBoxClient-Makefile.kmk +.endif +.endif + pre-everything:: .if ${ARCH} == "amd64" .if !exists(/usr/lib32/libc.so) @@ -105,6 +111,12 @@ pre-everything:: post-patch: @${ECHO} 'VBOX_ONLY_ADDITIONS = 1' > ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_X11_ADDITIONS = ${VBOX_WITH_X11}' >> ${WRKSRC}/LocalConfig.kmk +.if ${COMPILER_TYPE} == clang + @${REINPLACE_CMD} -e 's| -finline-limit=8000||' \ + -e 's| -fno-merge-constants||' \ + -e 's| -mpreferred-stack-boundary=2||' ${WRKSRC}/Config.kmk + @${ECHO} 'VBOX_GCC_Wno-unused-parameter = -Wno-unused-parameter' >> ${WRKSRC}/LocalConfig.kmk +.endif @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/Config.kmk \ ${WRKSRC}/configure \ Modified: head/emulators/virtualbox-ose-additions/distinfo ============================================================================== --- head/emulators/virtualbox-ose-additions/distinfo Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose-additions/distinfo Fri Mar 28 23:35:31 2014 (r349473) @@ -1,2 +1,2 @@ -SHA256 (VirtualBox-4.3.8.tar.bz2) = ffabd8735bdc80753cec29d01b499769f41e083f37a3f58b3055f19d3b1b9641 -SIZE (VirtualBox-4.3.8.tar.bz2) = 90224116 +SHA256 (VirtualBox-4.3.10.tar.bz2) = 739835aee3274a663b23eeb748bd0430e8a5d8ba2f4d0eae5dc47ff2c485e23b +SIZE (VirtualBox-4.3.10.tar.bz2) = 90333712 Modified: head/emulators/virtualbox-ose-additions/pkg-plist ============================================================================== --- head/emulators/virtualbox-ose-additions/pkg-plist Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose-additions/pkg-plist Fri Mar 28 23:35:31 2014 (r349473) @@ -1,4 +1,3 @@ -@comment $FreeBSD: ports/emulators/virtualbox-ose-additions/pkg-plist,v 1.6 2012/11/17 05:57:24 svnexp Exp $ %%X11%%bin/VBoxClient %%X11%%bin/VBoxClient-all %%X11%%etc/xdg/autostart/vboxclient.desktop Modified: head/emulators/virtualbox-ose-kmod/Makefile ============================================================================== --- head/emulators/virtualbox-ose-kmod/Makefile Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose-kmod/Makefile Fri Mar 28 23:35:31 2014 (r349473) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= virtualbox-ose -DISTVERSION= 4.3.8 -PORTREVISION= 1 +DISTVERSION= 4.3.10 CATEGORIES= emulators MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \ http://tmp.chruetertee.ch/ \ Modified: head/emulators/virtualbox-ose-kmod/distinfo ============================================================================== --- head/emulators/virtualbox-ose-kmod/distinfo Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose-kmod/distinfo Fri Mar 28 23:35:31 2014 (r349473) @@ -1,2 +1,2 @@ -SHA256 (VirtualBox-4.3.8.tar.bz2) = ffabd8735bdc80753cec29d01b499769f41e083f37a3f58b3055f19d3b1b9641 -SIZE (VirtualBox-4.3.8.tar.bz2) = 90224116 +SHA256 (VirtualBox-4.3.10.tar.bz2) = 739835aee3274a663b23eeb748bd0430e8a5d8ba2f4d0eae5dc47ff2c485e23b +SIZE (VirtualBox-4.3.10.tar.bz2) = 90333712 Modified: head/emulators/virtualbox-ose-kmod/pkg-plist ============================================================================== --- head/emulators/virtualbox-ose-kmod/pkg-plist Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose-kmod/pkg-plist Fri Mar 28 23:35:31 2014 (r349473) @@ -1,4 +1,3 @@ -@comment $FreeBSD$ @cwd / %%KMODDIR%%/vboxdrv.ko %%DEBUG%%%%KMODDIR%%/vboxdrv.ko.symbols Modified: head/emulators/virtualbox-ose/Makefile ============================================================================== --- head/emulators/virtualbox-ose/Makefile Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose/Makefile Fri Mar 28 23:35:31 2014 (r349473) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= virtualbox-ose -DISTVERSION= 4.3.8 +DISTVERSION= 4.3.10 CATEGORIES= emulators MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \ http://tmp.chruetertee.ch/ \ @@ -30,8 +30,7 @@ RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/vboxn WRKSRC= ${WRKDIR}/VirtualBox-${PORTVERSION} ONLY_FOR_ARCHS= i386 amd64 -USES= iconv pkgconfig tar:bzip2 -USE_GCC= any +USES= compiler iconv pkgconfig tar:bzip2 USE_GNOME= libidl USE_PYTHON_BUILD= yes @@ -169,6 +168,13 @@ EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-s ${PATCHDIR}/extrapatch-src-VBox-Main-src-server-generic-NetIf-generic.cpp .endif +.if ${COMPILER_TYPE} == clang +PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:${PORTSDIR}/devel/kBuild +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Config.kmk \ + ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk \ + ${PATCHDIR}/extrapatch-src-recompiler-Makefile.kmk +.endif + pre-everything:: .if ${ARCH} == "amd64" .if !exists(/usr/lib32/libc.so) @@ -181,7 +187,7 @@ pre-everything:: post-patch: @${ECHO} 'VBOX_PATH_APP_PRIVATE_ARCH = ${PREFIX}/lib/virtualbox' > ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_PATH_SHARED_LIBS = ${PREFIX}/lib/virtualbox' >> ${WRKSRC}/LocalConfig.kmk - @var=${_GCC_RUNTIME}; ${ECHO} "VBOX_WITH_RUNPATH = $${var:+$${var}:}${PREFIX}/lib/virtualbox" >> ${WRKSRC}/LocalConfig.kmk + @${ECHO} 'VBOX_WITH_RUNPATH = ${PREFIX}/lib/virtualbox' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_PATH_APP_PRIVATE = ${DATADIR}' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_PATH_APP_DOCS = ${DOCSDIR}' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_INSTALLER = 1' >> ${WRKSRC}/LocalConfig.kmk @@ -208,6 +214,14 @@ post-patch: @${ECHO} 'VBOX_PATH_GSOAP_IMPORT = ${PREFIX}/share/gsoap/import' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_GCC_PEDANTIC_CXX = -Wshadow $(VBOX_GCC_WARN) -Wno-long-long' >> ${WRKSRC}/LocalConfig.kmk .endif +.if ${COMPILER_TYPE} == clang + @${REINPLACE_CMD} -e 's| -finline-limit=8000||' \ + -e 's| -mpreferred-stack-boundary=2||' ${WRKSRC}/Config.kmk + @${REINPLACE_CMD} -e 's| -fpermissive||' ${WRKSRC}/Config.kmk ${WRKSRC}/src/VBox/Main/webservice/Makefile.kmk + @${ECHO} 'VBOX_GCC_Wno-unused-parameter = -Wno-unused-parameter' >> ${WRKSRC}/LocalConfig.kmk + @${ECHO} 'TOOL_VBoxGccFreeBSD_LD = ${CXX}' >> ${WRKSRC}/LocalConfig.kmk + @${SED} -e 's|GXX3|VBoxGccFreeBSD|g' ${LOCALBASE}/share/kBuild/tools/GXX3.kmk > ${WRKSRC}/tools/kBuildTools/VBoxGccFreeBSD.kmk +.endif @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/Config.kmk ${WRKSRC}/configure \ ${WRKSRC}/kBuild/units/qt3.kmk ${WRKSRC}/kBuild/units/qt4.kmk \ Modified: head/emulators/virtualbox-ose/distinfo ============================================================================== --- head/emulators/virtualbox-ose/distinfo Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose/distinfo Fri Mar 28 23:35:31 2014 (r349473) @@ -1,4 +1,4 @@ -SHA256 (VirtualBox-4.3.8.tar.bz2) = ffabd8735bdc80753cec29d01b499769f41e083f37a3f58b3055f19d3b1b9641 -SIZE (VirtualBox-4.3.8.tar.bz2) = 90224116 -SHA256 (VBoxGuestAdditions_4.3.8.iso) = a1e58f3a15cab81b82424c6382a490bb02377d78d537a57538692fa83ce448c7 -SIZE (VBoxGuestAdditions_4.3.8.iso) = 64540672 +SHA256 (VirtualBox-4.3.10.tar.bz2) = 739835aee3274a663b23eeb748bd0430e8a5d8ba2f4d0eae5dc47ff2c485e23b +SIZE (VirtualBox-4.3.10.tar.bz2) = 90333712 +SHA256 (VBoxGuestAdditions_4.3.10.iso) = 247e15e9a205dcd4761f6cb547ceca2a61e8d6905c1930870939fd323f4cd1ae +SIZE (VBoxGuestAdditions_4.3.10.iso) = 64647168 Modified: head/emulators/virtualbox-ose/files/extrapatch-Config.kmk ============================================================================== --- head/emulators/virtualbox-ose/files/extrapatch-Config.kmk Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose/files/extrapatch-Config.kmk Fri Mar 28 23:35:31 2014 (r349473) @@ -1,6 +1,22 @@ ---- Config.kmk.orig 2012-05-24 01:15:53.393052000 +0200 -+++ Config.kmk 2012-05-24 01:16:15.883067161 +0200 -@@ -3188,7 +3188,7 @@ +--- Config.kmk.orig 2013-11-29 14:20:04.000000000 -0500 ++++ Config.kmk 2013-12-18 18:40:34.000000000 -0500 +@@ -3036,6 +3036,7 @@ + ifeq ($(VBOX_LDR_FMT32),elf) + TEMPLATE_VBoxRc_TOOL = $(VBOX_GCC32_TOOL) + TEMPLATE_VBoxRc_CXXFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) -fno-rtti ++ TEMPLATE_VBoxRc_CXXFLAGS.freebsd = -fno-builtin + TEMPLATE_VBoxRc_CFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) + ifeq ($(KBUILD_TARGET),solaris) + TEMPLATE_VBoxRc_LDFLAGS = -r +@@ -3167,6 +3168,7 @@ + TEMPLATE_VBoxR0_TOOL = $(VBOX_GCC_TOOL) + TEMPLATE_VBoxR0_CFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-hidden) -std=gnu99 + TEMPLATE_VBoxR0_CXXFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) -fno-rtti ++TEMPLATE_VBoxR0_CXXFLAGS.freebsd = -fno-builtin + TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding + TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables + ifeq ($(KBUILD_TARGET),solaris) +@@ -3188,7 +3190,7 @@ | xargs -J% objcopy % $(out) ## Strip debug info (comment out if debugging or something). Added: head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Additions-x11-VBoxClient-Makefile.kmk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Additions-x11-VBoxClient-Makefile.kmk Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,11 @@ +--- src/VBox/Additions/x11/VBoxClient/Makefile.kmk.orig 2013-11-29 14:20:43.000000000 -0500 ++++ src/VBox/Additions/x11/VBoxClient/Makefile.kmk 2013-12-16 14:03:08.000000000 -0500 +@@ -50,7 +50,7 @@ + # Xtst + # These are static replacements for gcc-specific parts of libstdc++ + VBoxClient_LIBS += \ +- supc++ \ ++ cxxrt \ + gcc_eh + ifdef VBOX_X11_SEAMLESS_GUEST + VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE Added: head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Additions-x11-vboxvideo-Makefile.kmk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Additions-x11-vboxvideo-Makefile.kmk Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,12 @@ +--- src/VBox/Additions/x11/vboxvideo/Makefile.kmk.orig 2013-11-29 14:20:43.000000000 -0500 ++++ src/VBox/Additions/x11/vboxvideo/Makefile.kmk 2013-12-16 13:47:34.000000000 -0500 +@@ -27,6 +27,9 @@ + + vboxvideo_70_DEFS := \ + IN_MODULE XORG_7X RENDER=1 IN_RT_STATIC ++ifeq ($(KBUILD_TARGET),freebsd) # don't use .freebsd or anything here. ++ vboxvideo_70_DEFS += GCCUSESGAS ++endif + ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here. + vboxvideo_70_DEFS += __EXTENSIONS__ ## @todo Why this? + endif Added: head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,11 @@ +--- src/VBox/Devices/PC/ipxe/Makefile.kmk.orig 2013-11-29 14:23:32.000000000 -0500 ++++ src/VBox/Devices/PC/ipxe/Makefile.kmk 2013-12-13 15:06:45.000000000 -0500 +@@ -35,7 +35,7 @@ + iPxeBiosBin_CLEAN = \ + $(iPxeBiosBin_0_OUTDIR)/iPxeBiosBin.c \ + +-if1of ($(KBUILD_TARGET), darwin os2 solaris win) ++if1of ($(KBUILD_TARGET), darwin freebsd os2 solaris win) + $$(iPxeBiosBin_0_OUTDIR)/iPxeBiosBin.c: $(PATH_SUB_CURRENT)/iPxeBiosBin.rom $(VBOX_BIN2C) | $$(dir $$@) + $(call MSG_TOOL,bin2c,iPxeBiosBin,$<,$@) + $(QUIET)$(VBOX_BIN2C) -min 32 -max 56 -mask 0x1ff -export NetBiosBinary $< $@ Added: head/emulators/virtualbox-ose/files/extrapatch-src-recompiler-Makefile.kmk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/extrapatch-src-recompiler-Makefile.kmk Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,10 @@ +--- src/recompiler/Makefile.kmk.orig 2013-11-29 14:25:09.000000000 -0500 ++++ src/recompiler/Makefile.kmk 2013-12-13 14:23:11.000000000 -0500 +@@ -41,6 +41,7 @@ + # + ifneq ($(KBUILD_TARGET),win) + VBoxRemPrimary_TEMPLATE = VBOXR3NP ++ VBoxRemPrimary_TOOL.freebsd = VBoxGccFreeBSD + # workaround the regparm bug in gcc <= 3.3 + VBoxRemPrimary_DEFS = $(if $(VBOX_GCC_BUGGY_REGPARM),GCC_WITH_BUGGY_REGPARM,) + else Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,29 @@ +--- src/VBox/Devices/PC/DrvACPI.cpp.orig 2013-11-29 14:23:31.000000000 -0500 ++++ src/VBox/Devices/PC/DrvACPI.cpp 2013-12-13 17:36:50.000000000 -0500 +@@ -204,7 +204,7 @@ + int fAcLine = 0; + size_t cbParameter = sizeof(fAcLine); + +- int rc = sysctlbyname("hw.acpi.acline", &fAcLine, &cbParameter, NULL, NULL); ++ int rc = sysctlbyname("hw.acpi.acline", &fAcLine, &cbParameter, NULL, 0); + + if (!rc) + { +@@ -463,7 +463,7 @@ + int fBatteryState = 0; + size_t cbParameter = sizeof(fBatteryState); + +- rc = sysctlbyname("hw.acpi.battery.state", &fBatteryState, &cbParameter, NULL, NULL); ++ rc = sysctlbyname("hw.acpi.battery.state", &fBatteryState, &cbParameter, NULL, 0); + if (!rc) + { + if ((fBatteryState & ACPI_BATT_STAT_NOT_PRESENT) == ACPI_BATT_STAT_NOT_PRESENT) +@@ -485,7 +485,7 @@ + /* Get battery level. */ + int curCapacity = 0; + cbParameter = sizeof(curCapacity); +- rc = sysctlbyname("hw.acpi.battery.life", &curCapacity, &cbParameter, NULL, NULL); ++ rc = sysctlbyname("hw.acpi.battery.life", &curCapacity, &cbParameter, NULL, 0); + if (!rc && curCapacity >= 0) + *penmRemainingCapacity = (PDMACPIBATCAPACITY)curCapacity; + Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Devices-Storage-DevAHCI.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Devices-Storage-DevAHCI.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,11 @@ +--- src/VBox/Devices/Storage/DevAHCI.cpp.orig 2013-11-29 14:23:47.000000000 -0500 ++++ src/VBox/Devices/Storage/DevAHCI.cpp 2013-12-13 20:05:56.000000000 -0500 +@@ -3242,7 +3242,7 @@ + return 0; + + ataH2BE_U16(pbBuf, 0x0); /* feature 0: list of profiles supported */ +- pbBuf[2] = (0 << 2) | (1 << 1) | (1 || 0); /* version 0, persistent, current */ ++ pbBuf[2] = (0 << 2) | (1 << 1) | (1 << 0); /* version 0, persistent, current */ + pbBuf[3] = 8; /* additional bytes for profiles */ + /* The MMC-3 spec says that DVD-ROM read capability should be reported + * before CD-ROM read capability. */ Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-client-ConsoleImpl2.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-client-ConsoleImpl2.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,36 @@ +--- src/VBox/Main/src-client/ConsoleImpl2.cpp.orig 2013-09-06 08:30:10.000000000 -0400 ++++ src/VBox/Main/src-client/ConsoleImpl2.cpp 2013-09-12 13:03:34.000000000 -0400 +@@ -4031,12 +4031,13 @@ + } + } + +- Assert((int)maTapFD[uInstance] >= 0); +- if ((int)maTapFD[uInstance] >= 0) ++ const int fd = (int)(uintptr_t)maTapFD[uInstance]; ++ Assert(fd >= 0); ++ if (fd >= 0) + { + InsertConfigString(pLunL0, "Driver", "HostInterface"); + InsertConfigNode(pLunL0, "Config", &pCfg); +- InsertConfigInteger(pCfg, "FileHandle", maTapFD[uInstance]); ++ InsertConfigInteger(pCfg, "FileHandle", fd); + } + + #elif defined(VBOX_WITH_NETFLT) +@@ -4230,12 +4231,13 @@ + } + } + +- Assert((int)maTapFD[uInstance] >= 0); +- if ((int)maTapFD[uInstance] >= 0) ++ const int fd = (int)(uintptr_t)maTapFD[uInstance]; ++ Assert(fd >= 0); ++ if (fd >= 0) + { + InsertConfigString(pLunL0, "Driver", "HostInterface"); + InsertConfigNode(pLunL0, "Config", &pCfg); +- InsertConfigInteger(pCfg, "FileHandle", maTapFD[uInstance]); ++ InsertConfigInteger(pCfg, "FileHandle", fd); + } + break; + } Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-MachineImpl.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-MachineImpl.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,47 @@ +--- src/VBox/Main/src-server/MachineImpl.cpp.orig 2013-12-18 11:10:25.000000000 -0500 ++++ src/VBox/Main/src-server/MachineImpl.cpp 2014-02-20 19:17:10.000000000 -0500 +@@ -2374,7 +2374,7 @@ + case 0x8: + case 0x9: + case 0xA: +- AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xB); ++ // AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xB); + AssertRelease(aId < RT_ELEMENTS(mHWData->mCpuIdStdLeafs)); + setModified(IsModified_MachineData); + mHWData.backup(); +@@ -2396,7 +2396,7 @@ + case 0x80000008: + case 0x80000009: + case 0x8000000A: +- AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xB); ++ // AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xB); + AssertRelease(aId - 0x80000000 < RT_ELEMENTS(mHWData->mCpuIdExtLeafs)); + setModified(IsModified_MachineData); + mHWData.backup(); +@@ -2436,7 +2436,7 @@ + case 0x8: + case 0x9: + case 0xA: +- AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xB); ++ // AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xB); + AssertRelease(aId < RT_ELEMENTS(mHWData->mCpuIdStdLeafs)); + setModified(IsModified_MachineData); + mHWData.backup(); +@@ -2455,7 +2455,7 @@ + case 0x80000008: + case 0x80000009: + case 0x8000000A: +- AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xB); ++ // AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xB); + AssertRelease(aId - 0x80000000 < RT_ELEMENTS(mHWData->mCpuIdExtLeafs)); + setModified(IsModified_MachineData); + mHWData.backup(); +@@ -9322,7 +9322,7 @@ + mHWData->mVideoCaptureEnabled = data.fVideoCaptureEnabled; + for (unsigned i = 0; i < RT_ELEMENTS(mHWData->maVideoCaptureScreens); i++) + mHWData->maVideoCaptureScreens[i] = ASMBitTest(&data.u64VideoCaptureScreens, i); +- AssertCompile(RT_ELEMENTS(mHWData->maVideoCaptureScreens) == sizeof(data.u64VideoCaptureScreens) * 8); ++ // AssertCompile(RT_ELEMENTS(mHWData->maVideoCaptureScreens) == sizeof(data.u64VideoCaptureScreens) * 8); + mHWData->mVideoCaptureRate = data.ulVideoCaptureRate; + mHWData->mVideoCaptureFPS = data.ulVideoCaptureFPS; + if (!data.strVideoCaptureFile.isEmpty()) Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-VirtualBoxImpl.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-VirtualBoxImpl.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,11 @@ +--- src/VBox/Main/src-server/VirtualBoxImpl.cpp.orig 2013-12-18 11:10:25.000000000 -0500 ++++ src/VBox/Main/src-server/VirtualBoxImpl.cpp 2014-02-20 19:51:23.000000000 -0500 +@@ -2355,7 +2355,7 @@ + if (aCiphertextSize < 32) + return VERR_INVALID_PARAMETER; + +- AssertCompile(sizeof(m->SettingsCipherKey) >= 32); ++ // AssertCompile(sizeof(m->SettingsCipherKey) >= 32); + + /* store the first 8 bytes of the cipherkey for verification */ + for (i = 0, j = 0; i < 8; i++, j++) Modified: head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp ============================================================================== --- head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -1,6 +1,6 @@ ---- src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp.orig 2012-12-19 19:27:17.000000000 +0100 -+++ src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp 2012-12-20 14:55:59.501850255 +0100 -@@ -40,6 +40,7 @@ +--- src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp.orig 2013-11-29 14:24:12.000000000 -0500 ++++ src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp 2013-12-13 18:03:02.000000000 -0500 +@@ -39,6 +39,7 @@ # include # include # include @@ -8,3 +8,12 @@ # include # include # include +@@ -250,7 +251,7 @@ + PeriphMatchPattern.pattern.periph_pattern.path_id = paMatches[i].result.device_result.path_id; + PeriphMatchPattern.pattern.periph_pattern.target_id = paMatches[i].result.device_result.target_id; + PeriphMatchPattern.pattern.periph_pattern.target_lun = paMatches[i].result.device_result.target_lun; +- PeriphMatchPattern.pattern.periph_pattern.flags = PERIPH_MATCH_PATH | PERIPH_MATCH_TARGET | PERIPH_MATCH_LUN; ++ PeriphMatchPattern.pattern.periph_pattern.flags = static_cast(PERIPH_MATCH_PATH | PERIPH_MATCH_TARGET | PERIPH_MATCH_LUN); + PeriphCCB.cdm.num_patterns = 1; + PeriphCCB.cdm.pattern_buf_len = sizeof(struct dev_match_result); + PeriphCCB.cdm.patterns = &PeriphMatchPattern; Modified: head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-Makefile.kmk ============================================================================== --- head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-Makefile.kmk Fri Mar 28 23:19:30 2014 (r349472) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-Makefile.kmk Fri Mar 28 23:35:31 2014 (r349473) @@ -1,5 +1,5 @@ --- src/VBox/Runtime/Makefile.kmk.orig 2013-12-18 11:10:31.000000000 -0500 -+++ src/VBox/Runtime/Makefile.kmk 2014-02-20 18:14:28.000000000 -0500 ++++ src/VBox/Runtime/Makefile.kmk 2014-02-21 13:45:17.000000000 -0500 @@ -157,6 +157,11 @@ IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\" Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,14 @@ +--- src/VBox/Runtime/common/misc/uri.cpp.orig 2013-12-18 11:10:34.000000000 -0500 ++++ src/VBox/Runtime/common/misc/uri.cpp 2013-12-19 20:57:32.000000000 -0500 +@@ -132,7 +132,10 @@ + /* % encoding means the percent sign and exactly 2 hexadecimal + * digits describing the ASCII number of the character. */ + ++iIn; +- char szNum[] = { pszString[iIn++], pszString[iIn++], '\0' }; ++ char szNum[3]; ++ szNum[0] = pszString[iIn++]; ++ szNum[1] = pszString[iIn++]; ++ szNum[2] = '\0'; + uint8_t u8; + rc = RTStrToUInt8Ex(szNum, NULL, 16, &u8); + if (RT_FAILURE(rc)) Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-fileaio-freebsd.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-fileaio-freebsd.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,11 @@ +--- src/VBox/Runtime/r3/freebsd/fileaio-freebsd.cpp.orig 2013-11-29 14:24:23.000000000 -0500 ++++ src/VBox/Runtime/r3/freebsd/fileaio-freebsd.cpp 2013-12-13 17:32:50.000000000 -0500 +@@ -124,7 +124,7 @@ + &cReqsOutstandingMax, /* Where to store the old value. */ + &cbParameter, /* Size of the memory pointed to. */ + NULL, /* Where the new value is located. */ +- NULL); /* Where the size of the new value is stored. */ ++ 0); /* Where the size of the new value is stored. */ + if (rcBSD == -1) + { + /* ENOENT means the value is unknown thus the module is not loaded. */ Added: head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-mp-freebsd.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-r3-freebsd-mp-freebsd.cpp Fri Mar 28 23:35:31 2014 (r349473) @@ -0,0 +1,29 @@ +--- src/VBox/Runtime/r3/freebsd/mp-freebsd.cpp.orig 2013-11-29 14:24:23.000000000 -0500 ++++ src/VBox/Runtime/r3/freebsd/mp-freebsd.cpp 2013-12-13 16:25:44.000000000 -0500 +@@ -93,7 +93,7 @@ + char szDriver[10]; + size_t cbDriver = sizeof(szDriver); + RT_ZERO(szDriver); /* this shouldn't be necessary. */ +- int rcBsd = sysctlbyname(szName, szDriver, &cbDriver, NULL, NULL); ++ int rcBsd = sysctlbyname(szName, szDriver, &cbDriver, NULL, 0); + if (rcBsd == 0) + return true; + +@@ -154,7 +154,7 @@ + return 0; + + /* CPU's have a common frequency. */ +- int rc = sysctlbyname("dev.cpu.0.freq", &uFreqCurr, &cbParameter, NULL, NULL); ++ int rc = sysctlbyname("dev.cpu.0.freq", &uFreqCurr, &cbParameter, NULL, 0); + if (rc) + return 0; + +@@ -176,7 +176,7 @@ + * CPU 0 has the freq levels entry. ENOMEM is ok as we don't need all supported + * levels but only the first one. + */ +- int rc = sysctlbyname("dev.cpu.0.freq_levels", szFreqLevels, &cbFreqLevels, NULL, NULL); ++ int rc = sysctlbyname("dev.cpu.0.freq_levels", szFreqLevels, &cbFreqLevels, NULL, 0); + if ( (rc && (errno != ENOMEM)) + || (cbFreqLevels == 0)) + return 0;