1
0
forked from pool/virtualbox
virtualbox/gcc5-real-support.patch
Larry Finger badf2901f4 - Version bump to 5.1.10 (released 2016-11-21 by Oracle)
This is a maintenance release. The following items were fixed and/or added:
    GUI: the USB filter settings dialog should allow to specify the USB revision in hexadecimal format (bug #15400)
    GUI: fixed crash on certain hosts when pressing certain key combinations (Windows hosts only; bug #15719)
    GUI: fixed issue with updating the available-geometry on host-screen work-area resize
    GUI: don't crash / hang on certain environments if accessibility support is enabled
    GUI: fixed various issues in Unscaled HiDPI Output mode (bug #15707)
    GUI: extend the VM Input menu with Print Screen-related actions
    GUI: improved handling of inserting the Guest Additions ISO image by trying all available optical drives rather than only the first one and by not asking the user if he wants to force unmounting (which doesn't work in most cases anyway)
    API: default to RTC using UTC for Solaris 11 guests
    Settings: be less restrictive when reading a VM configuration containing a host-only adapter without an interface name
    Storage: fixed resizing VDI images resulting in an unbootable image under certain circumstances (bug #15983)
    NAT: fixed several 5.1.8 regressions on Mac OS X and Windows hosts (bug #16084)
    Audio: fixed a few 5.1.x regressions by using the audio code from 5.0.x until the audio overhaul is completed
    VBoxManage: fixed documentation of the storagectl command (bug #15971)
    Build system: another fix for building VirtualBox on systems which default to Python 3
    Windows hosts: hardening fix for Windows 10 build 14971 (bug #16202)
    Windows Additions: properly start the VirtualBox guest services even if the guest user name contains special characters (bug #15982)
    Solaris Additions: fixed preemptible mouse notification callback being executed under a spinlock for Solaris guests
    Linux hosts / guests: Linux 4.9 fixes (bugs #16155 and #16064)
    Linux Additions: fixed Linux kernel module override rule (thanks Mark Furneaux)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=293
2016-11-21 22:50:08 +00:00

34 lines
1.6 KiB
Diff

Index: VirtualBox-5.1.10/Config.kmk
===================================================================
--- VirtualBox-5.1.10.orig/Config.kmk
+++ VirtualBox-5.1.10/Config.kmk
@@ -2479,7 +2479,7 @@ else
# 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) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\{0,1\}\([0-9]\{0,1\}\)\.\{0,1\}\([0-9]\{0,1\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)), $$(firstword \3 0))|' )
+ $(1) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\{0,1\}\([0-9]\{0,1\}\)\.\{0,1\}\([0-9]\{0,1\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)), $$(firstword \3 0))|' )
endif
# Find MinGW cross compilers for EFI on non-windows systems. We need to probe
Index: VirtualBox-5.1.10/configure
===================================================================
--- VirtualBox-5.1.10.orig/configure
+++ VirtualBox-5.1.10/configure
@@ -433,8 +433,13 @@ check_gcc()
log_failure "cannot execute '$CXX -dumpversion'"
fail really
fi
- cc_maj=`echo $cc_ver|cut -d. -f1`
- cc_min=`echo $cc_ver|cut -d. -f2`
+ if echo $cc_ver | grep -q '\.'; then
+ cc_maj=`echo $cc_ver|cut -d. -f1`
+ cc_min=`echo $cc_ver|cut -d. -f2`
+ else
+ cc_maj=$cc_ver
+ cc_min=0
+ fi
if [ "x$cc_ver" != "x$cxx_ver" ]; then
log_failure "gcc version $cc_ver does not match g++ version $cxx_ver"
fail really