1
0
forked from pool/virtualbox
virtualbox/fixes_for_gcc10.patch
Larry Finger 07cacafec6 Accepting request 805962 from home:lwfinger:branches:Virtualization
- Version bump to 6.1.8 (released May 15 2020 by Oracle)
  This is a maintenance release. The following items were fixed and/or added:
  File "fixes_for_5.7.patch" is removed as the issue was fixed upstream.
  GUI: Fix several layout and mouse position handling bugs with soft keyboard
  GUI: Fixed crash on last VM removed (6.1.4 regression; bug #19568, #19525, #19506, #19490, #19481, #19397)
  GUI and API: Allow renaming VMs which are in saved state
  Serial: Fixed slow guest output when using the TCP server mode without anyone being connected
  Guest Additions: Restored 'VBoxClient--checkhostversion' functionality (6.1.0 regression; bug #19470)
  Guest Additions: Fixed resizing and multi monitor handling for X11 guests. (6.1.0 regression; bug #19496)
  Guest Additions: Build problems fix with Oracle Linux 8.2 (Red Hat compatible kernel) / Red Hat Enterprise Linux 8.2 / CentOS 8.2 (bug #19391)
  Guest Control/VBoxManage: Fixed handling of multiple environment variables supplied to 'VBoxManage guestcontrol VM run' (6.1.6/6.0.20 regression; bug #19518)
  Guest Control: Implemented support for long(er) command lines
  Guest Control: Various stability improvements

OBS-URL: https://build.opensuse.org/request/show/805962
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=550
2020-05-16 16:36:53 +00:00

37 lines
1.9 KiB
Diff

Index: VirtualBox-6.1.8/Config.kmk
===================================================================
--- VirtualBox-6.1.8.orig/Config.kmk
+++ VirtualBox-6.1.8/Config.kmk
@@ -2684,8 +2684,16 @@ else
# The reason for this hack is that the windows kmk_ash cannot deal with $((1+1)).
# Some versions of gcc (e.g. openSUSE11) return only major.minor on `gcc -dumpversion`.
# gcc-5 of openSUSE42.1 only returns the major version on `gcc -dumpversion`!
- VBOX_GCC_VERSION = $(shell ($(1) -dumpfullversion 2>/dev/null || $(1) -dumpversion) | \
- $(SED_EXT) 's|\([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)), $$(firstword \3 0))|' )
+ #
+ # Check to make sure that the compiler has either -dumpfullversion or -dumpversion. gcc-10 has neither
+ RC = $(shell ($(1) -dumpfullversion 2>/dev/null || $(1) -dumpversion 2>/dev/null) ; echo $$?)
+ ifneq ($(RC),0)
+ # dump version commands not available - hardcode 10.0.1 for the moment
+ VBOX_GCC_VERSION = 100001
+ else
+ VBOX_GCC_VERSION = $(shell ($(1) -dumpfullversion 2>/dev/null || $(1) -dumpversion 2>/dev/null) | \
+ $(SED_EXT) 's|\([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)), $$(firstword \3 0))|' )
+ endif
endif
# YASM macros
Index: VirtualBox-6.1.8/src/VBox/Debugger/DBGCDumpImage.cpp
===================================================================
--- VirtualBox-6.1.8.orig/src/VBox/Debugger/DBGCDumpImage.cpp
+++ VirtualBox-6.1.8/src/VBox/Debugger/DBGCDumpImage.cpp
@@ -468,7 +468,7 @@ static const char *dbgcMachoCpuType(uint
{
switch (uType)
{
- case CPU_TYPE_ANY: return "CPU_TYPE_ANY";
+ default: return "CPU_TYPE_ANY";
case CPU_TYPE_VAX: return "VAX";
case CPU_TYPE_MC680x0: return "MC680x0";
case CPU_TYPE_X86: return "X86";