summaryrefslogtreecommitdiff
path: root/libre/virtualbox-libre/libre.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/virtualbox-libre/libre.patch')
-rw-r--r--libre/virtualbox-libre/libre.patch526
1 files changed, 391 insertions, 135 deletions
diff --git a/libre/virtualbox-libre/libre.patch b/libre/virtualbox-libre/libre.patch
index 1e91c5b96..c3e2e4ad4 100644
--- a/libre/virtualbox-libre/libre.patch
+++ b/libre/virtualbox-libre/libre.patch
@@ -1,5 +1,5 @@
--- VirtualBox-4.2.12.orig/Config.kmk 2013-04-12 07:33:55.000000000 -0300
-+++ VirtualBox-4.2.12/Config.kmk 2013-05-09 22:45:16.882436950 -0300
++++ VirtualBox-4.2.12/Config.kmk 2013-05-10 15:03:20.817944799 -0300
@@ -56,9 +56,6 @@
PROPS_SYSMODS_ACCUMULATE_L += INTERMEDIATES
PROPS_MISCBINS_ACCUMULATE_L += INTERMEDIATES
@@ -10,23 +10,7 @@
# Install paths
## @todo This will change after 4.1 is branched off!
# What is now 'bin' and 'lib' will be moved down under 'staged/', except on
-@@ -94,7 +91,6 @@
- INST_SYS = $(INST_BIN)
- INST_TESTCASE = $(INST_BIN)testcase/
- INST_ADDITIONS = $(INST_BIN)additions/
-- INST_ADDITIONS_ISO = $(INST_BIN)
-
- # other paths
- INST_TESTSUITE = testsuite/
-@@ -119,7 +115,6 @@
- INST_SYS = $(INST_BIN)
- INST_TESTCASE = $(INST_BIN)testcase/
- INST_ADDITIONS = $(INST_BIN)additions/
-- INST_ADDITIONS_ISO = $(INST_ADDITIONS)
-
- INST_TESTSUITE = testsuite/
- INST_LIB = lib/
-@@ -129,18 +124,13 @@
+@@ -129,9 +126,6 @@
endif
INST_DOC = doc/
@@ -36,16 +20,15 @@
INST_PACKAGES = packages/
VBOX_PATH_SDK = $(patsubst %/,%,$(PATH_STAGE)/$(INST_SDK))
- VBOX_PATH_DIST = $(patsubst %/,%,$(PATH_STAGE)/$(INST_DIST))
- VBOX_PATH_TESTSUITE = $(patsubst %/,%,$(PATH_STAGE)/$(INST_TESTSUITE))
+@@ -140,7 +134,6 @@
VBOX_PATH_ADDITIONS = $(patsubst %/,%,$(PATH_STAGE)/$(INST_ADDITIONS))
--VBOX_PATH_ADDITIONS_ISO = $(patsubst %/,%,$(PATH_STAGE)/$(INST_ADDITIONS_ISO))
+ VBOX_PATH_ADDITIONS_ISO = $(patsubst %/,%,$(PATH_STAGE)/$(INST_ADDITIONS_ISO))
VBOX_PATH_ADDITIONS_LIB = $(patsubst %/,%,$(PATH_STAGE)/$(INST_ADDITIONS_LIB))
-VBOX_PATH_EXTPACK_PUEL= $(patsubst %/,%,$(PATH_STAGE)/$(INST_EXTPACK_PUEL))
VBOX_PATH_PACKAGES = $(patsubst %/,%,$(PATH_STAGE)/$(INST_PACKAGES))
-@@ -215,7 +205,6 @@
+@@ -215,7 +208,6 @@
export VBOX_ADDITIONS_SH_MODE = release
export VBOX_DOCUMENTATION_SH_MODE = release
export VBOX_EFI_SH_MODE = release
@@ -53,16 +36,7 @@
endif
# Some info on the vendor
-@@ -313,7 +302,7 @@
- endif
- # Don't create the additions ISO.
- # (Used by the additions build server, don't invert it.)
--#VBOX_WITHOUT_ADDITIONS_ISO = 1
-+ VBOX_WITHOUT_ADDITIONS_ISO = 1
- ## @}
-
- ## @name Documentation
-@@ -368,8 +357,6 @@
+@@ -368,8 +360,6 @@
VBOX_WITH_USB = 1
# Enable the USB 1.1 controller plus virtual USB HID devices.
VBOX_WITH_VUSB = 1
@@ -71,7 +45,7 @@
# Enable the ISCSI feature.
VBOX_WITH_ISCSI = 1
# Enable INIP support in the ISCSI feature.
-@@ -441,9 +428,6 @@
+@@ -441,9 +431,6 @@
ifdef VBOX_WITH_USB
VBOX_WITH_VUSB = 1
endif
@@ -81,7 +55,7 @@
ifdef VBOX_WITH_PCI_PASSTHROUGH
VBOX_WITH_PCI_PASSTHROUGH_IMPL = 1
endif
-@@ -584,8 +568,6 @@
+@@ -584,8 +571,6 @@
if1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
VBOX_WITH_CROGL = 1
endif
@@ -90,7 +64,7 @@
# Enable S3 support (requires libcurl)
VBOX_WITH_S3 = 1
# Enable Host=>Guest Drag'n'Drop
-@@ -625,17 +607,6 @@
+@@ -625,17 +610,6 @@
endif
## @}
@@ -108,7 +82,7 @@
## @name Misc
## @{
# Enable Seamless mode
-@@ -826,14 +797,6 @@
+@@ -826,14 +800,6 @@
# Skip stuff.
#
@@ -123,7 +97,7 @@
# VBOX_QUICK can be used by core developers to speed to the build
ifdef VBOX_QUICK
# undefine variables by assigning blank.
-@@ -888,7 +851,6 @@
+@@ -888,7 +854,6 @@
VBOX_WITH_TESTSUITE=
VBOX_WITH_QTGUI=
VBOX_WITH_USB=
@@ -131,7 +105,7 @@
VBOX_WITH_DOCS=
VBOX_WITH_PDM_ASYNC_COMPLETION=
VBOX_WITH_KCHMVIEWER=
-@@ -910,7 +872,6 @@
+@@ -910,7 +875,6 @@
VBOX_WITH_CROGL=
VBOX_WITH_DEBUGGER=
VBOX_WITH_DOCS=
@@ -139,7 +113,7 @@
VBOX_WITH_HARDENING=
VBOX_WITH_HEADLESS=
VBOX_WITH_HGCM=
-@@ -983,7 +944,7 @@
+@@ -983,7 +947,7 @@
#
# Indicate VBOX_ONLY build if any of the VBOX_ONLY_* variables are set.
#
@@ -148,7 +122,7 @@
, $(if-expr defined(VBOX_ONLY_$(x)),VBOX_ONLY_$(x))))
if $(words $(VBOX_ONLY_BUILD)) > 1
$(error VBox: More than one VBOX_ONLY build enabled! $(VBOX_ONLY_BUILD))
-@@ -1001,9 +962,6 @@
+@@ -1001,9 +965,6 @@
#
ifdef VBOX_OSE
VBOX_WITH_VRDP=
@@ -158,7 +132,7 @@
VBOX_WITH_PCI_PASSTHROUGH_IMPL=
VBOX_WITH_OS2_ADDITIONS_BIN=
VBOX_WITH_SECURELABEL=
-@@ -1135,10 +1093,6 @@
+@@ -1135,10 +1096,6 @@
VBOX_WITH_KCHMVIEWER=
endif
@@ -169,7 +143,7 @@
#
# Mark OSE builds clearly, helps figuring out limitations more easily.
#
-@@ -1743,9 +1697,6 @@
+@@ -1743,9 +1700,6 @@
# bin2c (convert binary files into C arrays)
VBOX_BIN2C ?= $(PATH_OBJ)/bin2c/bin2c$(HOSTSUFF_EXE)
@@ -179,7 +153,7 @@
# VBoxCmp (simple /bin/cmp with more sensible output)
VBOX_VBOXCMP ?= $(PATH_OBJ)/VBoxCmp/VBoxCmp$(HOSTSUFF_EXE)
-@@ -2633,13 +2584,6 @@
+@@ -2633,13 +2587,6 @@
SDK_VBOX_OPENSSL2_LIBS = $(NO_SUCH_VARIABLE)
endif
@@ -193,7 +167,7 @@
SDK_VBOX_BLD_OPENSSL = .
SDK_VBOX_BLD_OPENSSL_EXTENDS = VBOX_OPENSSL
SDK_VBOX_BLD_OPENSSL_LIBS ?= \
-@@ -4100,99 +4044,6 @@
+@@ -4100,99 +4047,6 @@
TEMPLATE_VBOXMAINCLIENTDLL_LDFLAGS.darwin = $(filter-out -bind_at_load,$(TEMPLATE_VBOXMAINCLIENTEXE_LDFLAGS.darwin))
@@ -419,68 +393,8 @@
echo
echo "Successfully generated '$CNF' and '$ENV'."
--- VirtualBox-4.2.12.orig/Makefile.kmk 2013-04-12 07:33:55.000000000 -0300
-+++ VirtualBox-4.2.12/Makefile.kmk 2013-05-09 23:09:45.756804164 -0300
-@@ -177,40 +177,6 @@
- INSTALLS += buildserver-additions
- endif
-
--#
--# Install additions iso from the build server.
--# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
--# been added to kBuild.
--#
--buildserver-additions_INST = $(INST_ADDITIONS_ISO)
--buildserver-additions_MODE = 0644
--buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
--buildserver-additions_CLEANS = \
-- $(buildserver-additions_0_OUTDIR)/unpacked.ts \
-- $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
-- $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
-- $(PATH_TARGET)/VBoxGuestAdditions.iso
--
--$$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
-- $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
-- $(call MSG_L1,Unpacking additions archive)
-- $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
-- $(APPEND) -t $@ "done"
--
--$$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
-- $(RM) -f $@ $@.tmp
-- ifneq ($(KBUILD_HOST),win)
-- $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $@.tmp
-- else
-- $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
-- endif
-- $(CP) -f $@.tmp $@
-- $(RM) -f $@.tmp
--
-- ifeq ($(KBUILD_HOST),win)
--buildserver-additions-affinity-hack:
-- $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp
-- endif
- endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
-
-
-@@ -327,18 +293,6 @@
- ifn1of ($(KBUILD_TARGET), l4 linux win)
- VBOX_PATH_STAGED ?= .
-
-- # Additions.
-- ifndef VBOX_WITH_LINUX_ADDITIONS
-- ifndef VBOX_WITH_WIN32_ADDITIONS
-- ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
-- INSTALLS += staged-additions
-- staged-additions_INST = $(INST_ADDITIONS_ISO)
-- staged-additions_MODE = 0644
-- staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
-- endif
-- endif
-- endif
--
- # guesttool.exe
- ifndef VBOX_WITH_WIN32_ADDITIONS
- ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
-@@ -388,7 +342,6 @@
++++ VirtualBox-4.2.12/Makefile.kmk 2013-05-10 15:04:21.967970195 -0300
+@@ -388,7 +388,6 @@
include/VBox \
include/VBox/vmm \
include/VBox/com \
@@ -488,25 +402,7 @@
include/VBox/HostServices \
include/VBox/GuestHost \
include/VBox/HGSMI \
-@@ -983,17 +936,8 @@
-
- additions-packing:
- + $(KMK) VBOX_ONLY_ADDITIONS=1 \
-- VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
-- VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
-- VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
-- VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
- VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
-- VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
-- VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
-- VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
- VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
-- VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
-- VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
- -C src/VBox/Additions \
- $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
-
-@@ -1010,200 +954,6 @@
+@@ -1010,200 +1009,6 @@
#
@@ -1105,14 +1001,374 @@
else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
#
---- VirtualBox-4.2.12.orig/src/VBox/Additions/Makefile.kmk 2013-04-12 07:34:09.000000000 -0300
-+++ VirtualBox-4.2.12/src/VBox/Additions/Makefile.kmk 2013-05-09 23:06:58.029922668 -0300
-@@ -42,7 +42,7 @@
- #
- # ==> All we have to worry about is what to do on the target we're on.
- #
--VBOX_WITH_ADDITIONS_ISO.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
-+VBOX_WITH_ADDITIONS_ISO.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 0
+--- VirtualBox-4.2.12.orig/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp 2013-04-12 07:37:59.000000000 -0300
++++ VirtualBox-4.2.12/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp 2013-05-10 16:26:44.137679260 -0300
+@@ -1829,166 +1829,12 @@
+ "available on this virtual machine, and shared folders "
+ "cannot be used without them. To use shared folders inside "
+ "the virtual machine, please install the Guest Additions "
+- "if they are not installed, or re-install them if they are "
+- "not working correctly, by selecting <b>Install Guest Additions</b> "
+- "from the <b>Devices</b> menu. "
++ "if they are not installed."
+ "If they are installed but the machine is not yet fully started "
+ "then shared folders will be available once it is.</p>"),
+ "remindAboutGuestAdditionsAreNotActive");
+ }
- # Include sub-makefiles.
- include $(PATH_SUB_CURRENT)/common/Makefile.kmk
+-bool UIMessageCenter::cannotFindGuestAdditions()
+-{
+- return messageYesNo(mainMachineWindowShown(), Question,
+- tr("<p>Could not find the VirtualBox Guest Additions "
+- "CD image file.</nobr></p><p>Do you wish to "
+- "download this CD image from the Internet?</p>"));
+-}
+-
+-void UIMessageCenter::cannotMountGuestAdditions(const QString &strMachineName)
+-{
+- message(mainMachineWindowShown(), Error,
+- tr("<p>Could not insert the VirtualBox Guest Additions "
+- "installer CD image into the virtual machine <b>%1</b>, as the machine "
+- "has no CD/DVD-ROM drives. Please add a drive using the "
+- "storage page of the virtual machine settings dialog.</p>")
+- .arg(strMachineName));
+-}
+-
+-bool UIMessageCenter::confirmDownloadAdditions(const QString &strUrl, qulonglong uSize)
+-{
+- QLocale loc(VBoxGlobal::languageId());
+- return messageOkCancel(networkManagerOrMainMachineWindowShown(), Question,
+- tr("<p>Are you sure you want to download the VirtualBox "
+- "Guest Additions CD image from "
+- "<nobr><a href=\"%1\">%2</a></nobr> "
+- "(size %3 bytes)?</p>").arg(strUrl).arg(strUrl).arg(loc.toString(uSize)),
+- 0, /* pcszAutoConfirmId */
+- tr("Download", "additions"));
+-}
+-
+-bool UIMessageCenter::confirmMountAdditions(const QString &strUrl, const QString &strSrc)
+-{
+- return messageOkCancel(networkManagerOrMainMachineWindowShown(), Question,
+- tr("<p>The VirtualBox Guest Additions CD image has been "
+- "successfully downloaded from "
+- "<nobr><a href=\"%1\">%2</a></nobr> "
+- "and saved locally as <nobr><b>%3</b>.</nobr></p>"
+- "<p>Do you wish to register this CD image and mount it "
+- "on the virtual CD/DVD drive?</p>")
+- .arg(strUrl).arg(strUrl).arg(strSrc),
+- 0, /* pcszAutoConfirmId */
+- tr("Mount", "additions"));
+-}
+-
+-void UIMessageCenter::warnAboutAdditionsCantBeSaved(const QString &strTarget)
+-{
+- message(networkManagerOrMainMachineWindowShown(), Error,
+- tr("<p>Failed to save the downloaded file as <nobr><b>%1</b>.</nobr></p>")
+- .arg(QDir::toNativeSeparators(strTarget)));
+-}
+-
+-bool UIMessageCenter::askAboutUserManualDownload(const QString &strMissedLocation)
+-{
+- return messageOkCancel(mainWindowShown(), Question,
+- tr("<p>Could not find the VirtualBox User Manual "
+- "<nobr><b>%1</b>.</nobr></p><p>Do you wish to "
+- "download this file from the Internet?</p>")
+- .arg(strMissedLocation),
+- 0, /* Auto-confirm Id */
+- tr("Download", "additions"));
+-}
+-
+-bool UIMessageCenter::confirmUserManualDownload(const QString &strURL, qulonglong uSize)
+-{
+- QLocale loc(VBoxGlobal::languageId());
+- return messageOkCancel(networkManagerOrMainWindowShown(), Question,
+- tr("<p>Are you sure you want to download the VirtualBox "
+- "User Manual from "
+- "<nobr><a href=\"%1\">%2</a></nobr> "
+- "(size %3 bytes)?</p>").arg(strURL).arg(strURL).arg(loc.toString(uSize)),
+- 0, /* Auto-confirm Id */
+- tr("Download", "additions"));
+-}
+-
+-void UIMessageCenter::warnAboutUserManualDownloaded(const QString &strURL, const QString &strTarget)
+-{
+- message(networkManagerOrMainWindowShown(), Warning,
+- tr("<p>The VirtualBox User Manual has been "
+- "successfully downloaded from "
+- "<nobr><a href=\"%1\">%2</a></nobr> "
+- "and saved locally as <nobr><b>%3</b>.</nobr></p>")
+- .arg(strURL).arg(strURL).arg(strTarget));
+-}
+-
+-void UIMessageCenter::warnAboutUserManualCantBeSaved(const QString &strURL, const QString &strTarget)
+-{
+- message(networkManagerOrMainWindowShown(), Error,
+- tr("<p>The VirtualBox User Manual has been "
+- "successfully downloaded from "
+- "<nobr><a href=\"%1\">%2</a></nobr> "
+- "but can't be saved locally as <nobr><b>%3</b>.</nobr></p>"
+- "<p>Please choose another location for that file.</p>")
+- .arg(strURL).arg(strURL).arg(strTarget));
+-}
+-
+-bool UIMessageCenter::proposeDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion)
+-{
+- return messageOkCancel(mainWindowShown(),
+- Question,
+- tr("<p>You have an old version (%1) of the <b><nobr>%2</nobr></b> installed.</p>"
+- "<p>Do you wish to download latest one from the Internet?</p>")
+- .arg(strExtPackVersion).arg(strExtPackName),
+- 0, /* Auto-confirm Id */
+- tr("Download", "extension pack"));
+-}
+-
+-bool UIMessageCenter::requestUserDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion, const QString &strVBoxVersion)
+-{
+- return message(mainWindowShown(), Info,
+- tr("<p>You have version %1 of the <b><nobr>%2</nobr></b> installed.</p>"
+- "<p>You should download and install version %3 of this extension pack from Oracle!</p>")
+- .arg(strExtPackVersion).arg(strExtPackName).arg(strVBoxVersion),
+- 0, /* Auto-confirm Id */
+- QIMessageBox::Ok | QIMessageBox::Default,
+- 0,
+- 0,
+- tr("Ok", "extension pack"));
+-}
+-
+-bool UIMessageCenter::confirmDownloadExtensionPack(const QString &strExtPackName, const QString &strURL, qulonglong uSize)
+-{
+- QLocale loc(VBoxGlobal::languageId());
+- return messageOkCancel(networkManagerOrMainWindowShown(), Question,
+- tr("<p>Are you sure you want to download the <b><nobr>%1</nobr></b> "
+- "from <nobr><a href=\"%2\">%2</a></nobr> (size %3 bytes)?</p>")
+- .arg(strExtPackName, strURL, loc.toString(uSize)),
+- 0, /* Auto-confirm Id */
+- tr("Download", "extension pack"));
+-}
+-
+-bool UIMessageCenter::proposeInstallExtentionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo)
+-{
+- return messageOkCancel(networkManagerOrMainWindowShown(), Question,
+- tr("<p>The <b><nobr>%1</nobr></b> has been "
+- "successfully downloaded from <nobr><a href=\"%2\">%2</a></nobr> "
+- "and saved locally as <nobr><b>%3</b>.</nobr></p>"
+- "<p>Do you wish to install this extension pack?</p>")
+- .arg(strExtPackName, strFrom, strTo),
+- 0, /* Auto-confirm Id */
+- tr ("Install", "extension pack"));
+-}
+-
+-void UIMessageCenter::warnAboutExtentionPackCantBeSaved(const QString &strExtPackName, const QString &strFrom, const QString &strTo)
+-{
+- message(networkManagerOrMainWindowShown(), Error,
+- tr("<p>The <b><nobr>%1</nobr></b> has been "
+- "successfully downloaded from <nobr><a href=\"%2\">%2</a></nobr> "
+- "but can't be saved locally as <nobr><b>%3</b>.</nobr></p>"
+- "<p>Please choose another location for that file.</p>")
+- .arg(strExtPackName, strFrom, strTo));
+-}
+-
+ void UIMessageCenter::cannotConnectRegister(QWidget *pParent,
+ const QString &strUrl,
+ const QString &strReason)
+@@ -2572,162 +2418,6 @@
+ formatErrorInfo(progress.GetErrorInfo()));
+ }
+
+-void UIMessageCenter::cannotUpdateGuestAdditions(const CProgress &progress,
+- QWidget *pParent /* = NULL */) const
+-{
+- AssertWrapperOk(progress);
+-
+- message(pParent ? pParent : mainWindowShown(),
+- Error,
+- tr("Failed to update Guest Additions. The Guest Additions installation image will be mounted to provide a manual installation."),
+- formatErrorInfo(progress.GetErrorInfo()));
+-}
+-
+-void UIMessageCenter::cannotOpenExtPack(const QString &strFilename,
+- const CExtPackManager &extPackManager,
+- QWidget *pParent)
+-{
+- message(pParent ? pParent : mainWindowShown(),
+- Error,
+- tr("Failed to open the Extension Pack <b>%1</b>.").arg(strFilename),
+- formatErrorInfo(extPackManager));
+-}
+-
+-void UIMessageCenter::badExtPackFile(const QString &strFilename,
+- const CExtPackFile &extPackFile,
+- QWidget *pParent)
+-{
+- message(pParent ? pParent : mainWindowShown(),
+- Error,
+- tr("Failed to open the Extension Pack <b>%1</b>.").arg(strFilename),
+- "<!--EOM-->" + extPackFile.GetWhyUnusable());
+-}
+-
+-void UIMessageCenter::cannotInstallExtPack(const QString &strFilename,
+- const CExtPackFile &extPackFile,
+- const CProgress &progress,
+- QWidget *pParent)
+-{
+- if (!pParent)
+- pParent = mainWindowShown();
+- QString strErrInfo = !extPackFile.isOk() || progress.isNull()
+- ? formatErrorInfo(extPackFile) : formatErrorInfo(progress.GetErrorInfo());
+- message(pParent,
+- Error,
+- tr("Failed to install the Extension Pack <b>%1</b>.").arg(strFilename),
+- strErrInfo);
+-}
+-
+-void UIMessageCenter::cannotUninstallExtPack(const QString &strPackName, const CExtPackManager &extPackManager,
+- const CProgress &progress, QWidget *pParent)
+-{
+- if (!pParent)
+- pParent = mainWindowShown();
+- QString strErrInfo = !extPackManager.isOk() || progress.isNull()
+- ? formatErrorInfo(extPackManager) : formatErrorInfo(progress.GetErrorInfo());
+- message(pParent,
+- Error,
+- tr("Failed to uninstall the Extension Pack <b>%1</b>.").arg(strPackName),
+- strErrInfo);
+-}
+-
+-bool UIMessageCenter::confirmInstallingPackage(const QString &strPackName, const QString &strPackVersion,
+- const QString &strPackDescription, QWidget *pParent)
+-{
+- return messageOkCancel(pParent ? pParent : mainWindowShown(),
+- Question,
+- tr("<p>You are about to install a VirtualBox extension pack. "
+- "Extension packs complement the functionality of VirtualBox and can contain system level software "
+- "that could be potentially harmful to your system. Please review the description below and only proceed "
+- "if you have obtained the extension pack from a trusted source.</p>"
+- "<p><table cellpadding=0 cellspacing=0>"
+- "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%1</td></tr>"
+- "<tr><td><b>Version:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
+- "<tr><td><b>Description:&nbsp;&nbsp;</b></td><td>%3</td></tr>"
+- "</table></p>")
+- .arg(strPackName).arg(strPackVersion).arg(strPackDescription),
+- 0,
+- tr("&Install"));
+-}
+-
+-bool UIMessageCenter::confirmReplacePackage(const QString &strPackName, const QString &strPackVersionNew,
+- const QString &strPackVersionOld, const QString &strPackDescription,
+- QWidget *pParent)
+-{
+- if (!pParent)
+- pParent = pParent ? pParent : mainWindowShown(); /* this is boring stuff that messageOkCancel should do! */
+-
+- QString strBelehrung = tr("Extension packs complement the functionality of VirtualBox and can contain "
+- "system level software that could be potentially harmful to your system. "
+- "Please review the description below and only proceed if you have obtained "
+- "the extension pack from a trusted source.");
+-
+- QByteArray ba1 = strPackVersionNew.toUtf8();
+- QByteArray ba2 = strPackVersionOld.toUtf8();
+- int iVerCmp = RTStrVersionCompare(ba1.constData(), ba2.constData());
+-
+- bool fRc;
+- if (iVerCmp > 0)
+- fRc = messageOkCancel(pParent,
+- Question,
+- tr("<p>An older version of the extension pack is already installed, would you like to upgrade? "
+- "<p>%1</p>"
+- "<p><table cellpadding=0 cellspacing=0>"
+- "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
+- "<tr><td><b>New Version:&nbsp;&nbsp;</b></td><td>%3</td></tr>"
+- "<tr><td><b>Current Version:&nbsp;&nbsp;</b></td><td>%4</td></tr>"
+- "<tr><td><b>Description:&nbsp;&nbsp;</b></td><td>%5</td></tr>"
+- "</table></p>")
+- .arg(strBelehrung).arg(strPackName).arg(strPackVersionNew).arg(strPackVersionOld).arg(strPackDescription),
+- 0,
+- tr("&Upgrade"));
+- else if (iVerCmp < 0)
+- fRc = messageOkCancel(pParent,
+- Question,
+- tr("<p>An newer version of the extension pack is already installed, would you like to downgrade? "
+- "<p>%1</p>"
+- "<p><table cellpadding=0 cellspacing=0>"
+- "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
+- "<tr><td><b>New Version:&nbsp;&nbsp;</b></td><td>%3</td></tr>"
+- "<tr><td><b>Current Version:&nbsp;&nbsp;</b></td><td>%4</td></tr>"
+- "<tr><td><b>Description:&nbsp;&nbsp;</b></td><td>%5</td></tr>"
+- "</table></p>")
+- .arg(strBelehrung).arg(strPackName).arg(strPackVersionNew).arg(strPackVersionOld).arg(strPackDescription),
+- 0,
+- tr("&Downgrade"));
+- else
+- fRc = messageOkCancel(pParent,
+- Question,
+- tr("<p>The extension pack is already installed with the same version, would you like reinstall it? "
+- "<p>%1</p>"
+- "<p><table cellpadding=0 cellspacing=0>"
+- "<tr><td><b>Name:&nbsp;&nbsp;</b></td><td>%2</td></tr>"
+- "<tr><td><b>Version:&nbsp;&nbsp;</b></td><td>%3</td></tr>"
+- "<tr><td><b>Description:&nbsp;&nbsp;</b></td><td>%4</td></tr>"
+- "</table></p>")
+- .arg(strBelehrung).arg(strPackName).arg(strPackVersionOld).arg(strPackDescription),
+- 0,
+- tr("&Reinstall"));
+- return fRc;
+-}
+-
+-bool UIMessageCenter::confirmRemovingPackage(const QString &strPackName, QWidget *pParent)
+-{
+- return messageOkCancel(pParent ? pParent : mainWindowShown(),
+- Question,
+- tr("<p>You are about to remove the VirtualBox extension pack <b>%1</b>.</p>"
+- "<p>Are you sure you want to proceed?</p>").arg(strPackName),
+- 0,
+- tr("&Remove"));
+-}
+-
+-void UIMessageCenter::notifyAboutExtPackInstalled(const QString &strPackName, QWidget *pParent)
+-{
+- message(pParent ? pParent : mainWindowShown(),
+- Info,
+- tr("The extension pack <br><nobr><b>%1</b><nobr><br> was installed successfully.").arg(strPackName));
+-}
+-
+ void UIMessageCenter::warnAboutIncorrectPort(QWidget *pParent) const
+ {
+ message(pParent, Error,
+--- VirtualBox-4.2.12.orig/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp 2013-04-12 07:38:01.000000000 -0300
++++ VirtualBox-4.2.12/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp 2013-05-10 17:03:11.087825690 -0300
+@@ -650,27 +650,6 @@
+ }
+ };
+
+-class PerformInstallGuestToolsAction : public UIActionSimple
+-{
+- Q_OBJECT;
+-
+-public:
+-
+- PerformInstallGuestToolsAction(QObject *pParent)
+- : UIActionSimple(pParent, ":/guesttools_16px.png", ":/guesttools_disabled_16px.png")
+- {
+- retranslateUi();
+- }
+-
+-protected:
+-
+- void retranslateUi()
+- {
+- setText(vboxGlobal().insertKeyToActionText(menuText(QApplication::translate("UIActionPool", "&Install Guest Additions...")), gMS->shortcut(UIMachineShortcuts::InstallGuestAdditionsShortcut)));
+- setStatusTip(QApplication::translate("UIActionPool", "Mount the Guest Additions installation image"));
+- }
+-};
+-
+ #ifdef VBOX_WITH_DEBUGGER_GUI
+ class MenuDebugAction : public UIActionMenu
+ {
+@@ -889,7 +868,6 @@
+ m_pool[UIActionIndexRuntime_Simple_NetworkAdaptersDialog] = new ShowNetworkAdaptersDialogAction(this);
+ m_pool[UIActionIndexRuntime_Simple_SharedFoldersDialog] = new ShowSharedFoldersDialogAction(this);
+ m_pool[UIActionIndexRuntime_Toggle_VRDEServer] = new ToggleVRDEServerAction(this);
+- m_pool[UIActionIndexRuntime_Simple_InstallGuestTools] = new PerformInstallGuestToolsAction(this);
+
+ #ifdef VBOX_WITH_DEBUGGER_GUI
+ /* 'Debug' actions: */