forked from pool/virtualbox
Accepting request 311789 from Virtualization
1 OBS-URL: https://build.opensuse.org/request/show/311789 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtualbox?expand=0&rev=100
This commit is contained in:
commit
46a4c0560c
34
gcc5-real-support.patch
Normal file
34
gcc5-real-support.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
Config.kmk | 2 +-
|
||||||
|
configure | 9 +++++++--
|
||||||
|
2 files changed, 8 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
--- a/Config.kmk
|
||||||
|
+++ b/Config.kmk
|
||||||
|
@@ -2292,7 +2292,7 @@ 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`.
|
||||||
|
VBOX_GCC_VERSION = $(shell \
|
||||||
|
- $(1) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\([0-9]\)\.\{0,1\}\([0-9]\{0,1\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, \2), $$(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
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -409,8 +409,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
|
16
gcc5-support.patch
Normal file
16
gcc5-support.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Index: configure
|
||||||
|
===================================================================
|
||||||
|
--- configure (revision 55371)
|
||||||
|
+++ configure (revision 55372)
|
||||||
|
@@ -422,8 +422,9 @@
|
||||||
|
-o \( $cc_maj -eq 3 -a $cc_min -lt 2 \) \
|
||||||
|
-o \( $cc_maj -eq 4 -a $cc_min -lt 1 -a "$OS" != "darwin" \) \
|
||||||
|
-o \( $cc_maj -eq 4 -a $cc_min -gt 9 \) \
|
||||||
|
- -o $cc_maj -gt 4 ]; then
|
||||||
|
- log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<10"
|
||||||
|
+ -o \( $cc_maj -eq 5 -a $cc_min -gt 0 \) \
|
||||||
|
+ -o $cc_maj -gt 5 ]; then
|
||||||
|
+ log_failure "gcc version $cc_maj.$cc_min found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<10 or gcc 5.0"
|
||||||
|
fail really
|
||||||
|
else
|
||||||
|
log_success "found version $cc_ver"
|
16
gcc51-support.patch
Normal file
16
gcc51-support.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Index: configure
|
||||||
|
===================================================================
|
||||||
|
--- configure (revision 55388)
|
||||||
|
+++ configure (revision 55389)
|
||||||
|
@@ -422,9 +422,9 @@
|
||||||
|
-o \( $cc_maj -eq 3 -a $cc_min -lt 2 \) \
|
||||||
|
-o \( $cc_maj -eq 4 -a $cc_min -lt 1 -a "$OS" != "darwin" \) \
|
||||||
|
-o \( $cc_maj -eq 4 -a $cc_min -gt 9 \) \
|
||||||
|
- -o \( $cc_maj -eq 5 -a $cc_min -gt 0 \) \
|
||||||
|
+ -o \( $cc_maj -eq 5 -a $cc_min -gt 1 \) \
|
||||||
|
-o $cc_maj -gt 5 ]; then
|
||||||
|
- log_failure "gcc version $cc_maj.$cc_min found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<10 or gcc 5.0"
|
||||||
|
+ log_failure "gcc version $cc_maj.$cc_min found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<10 or gcc 5.1"
|
||||||
|
fail really
|
||||||
|
else
|
||||||
|
log_success "found version $cc_ver"
|
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 12 10:33:55 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Enable building of for all supported kernel flavours
|
||||||
|
* exclude also pv flavour
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 9 11:36:42 UTC 2015 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Disable multiversion_kernel support, taken from nvidia driver spec,
|
||||||
|
should fix bnc#925663.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 27 10:22:22 UTC 2015 - jslaby@suse.com
|
||||||
|
|
||||||
|
- initial gcc5 support (it builds at least)
|
||||||
|
* added: gcc5-support.patch (upstream)
|
||||||
|
* added: gcc51-support.patch (upstream)
|
||||||
|
* added: gcc5-real-support.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 19 15:09:12 UTC 2015 - mpluskal@suse.com
|
Tue May 19 15:09:12 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
@ -50,13 +50,13 @@ Source99: %{name}-patch-source.sh
|
|||||||
Patch1: vbox-vboxdrv-init-script.diff
|
Patch1: vbox-vboxdrv-init-script.diff
|
||||||
Patch2: vbox-vboxadd-init-script.diff
|
Patch2: vbox-vboxadd-init-script.diff
|
||||||
Patch3: vbox-vboxweb-init-script.diff
|
Patch3: vbox-vboxweb-init-script.diff
|
||||||
|
#PATCH-FIX-OPENSUSE: Use system X libraries and do not build local things
|
||||||
|
Patch4: virtualbox-system-x.patch
|
||||||
#fix build : "Error 4001 - String must be entirely alphanumeric"
|
#fix build : "Error 4001 - String must be entirely alphanumeric"
|
||||||
#with renaming we probably break some macosx functionality however ths is just quick fix
|
#with renaming we probably break some macosx functionality however ths is just quick fix
|
||||||
#file :http://www.virtualbox.org/browser/trunk/src/VBox/Devices/PC/vbox.ds
|
#file :http://www.virtualbox.org/browser/trunk/src/VBox/Devices/PC/vbox.ds
|
||||||
#see thread : http://lists.freebsd.org/pipermail/freebsd-acpi/2010-October/006795.html
|
#see thread : http://lists.freebsd.org/pipermail/freebsd-acpi/2010-October/006795.html
|
||||||
Patch6: vbox-smc-napa.diff
|
Patch6: vbox-smc-napa.diff
|
||||||
#PATCH-FIX-OPENSUSE: Use system X libraries and do not build local things
|
|
||||||
Patch4: virtualbox-system-x.patch
|
|
||||||
#fix build of Python and dev package on openSUSE 11.3
|
#fix build of Python and dev package on openSUSE 11.3
|
||||||
Patch8: vbox-python-detection.diff
|
Patch8: vbox-python-detection.diff
|
||||||
#deprecated old-style C++ service proxies and objects,we have to use soapcpp2 -z1 flag
|
#deprecated old-style C++ service proxies and objects,we have to use soapcpp2 -z1 flag
|
||||||
@ -75,6 +75,9 @@ Patch103: vbox-disable-updates.diff
|
|||||||
Patch104: vbox-fpie.diff
|
Patch104: vbox-fpie.diff
|
||||||
#smap issues on Haswell or Broadwell (boo#931461)
|
#smap issues on Haswell or Broadwell (boo#931461)
|
||||||
Patch105: smap.diff
|
Patch105: smap.diff
|
||||||
|
Patch106: gcc5-support.patch
|
||||||
|
Patch107: gcc51-support.patch
|
||||||
|
Patch108: gcc5-real-support.patch
|
||||||
BuildRequires: LibVNCServer-devel
|
BuildRequires: LibVNCServer-devel
|
||||||
BuildRequires: SDL-devel
|
BuildRequires: SDL-devel
|
||||||
BuildRequires: acpica
|
BuildRequires: acpica
|
||||||
@ -139,6 +142,7 @@ Recommends: %{name}-gui = %{version}
|
|||||||
Provides: %{name}-ose = %{version}
|
Provides: %{name}-ose = %{version}
|
||||||
Obsoletes: %{name}-ose < %{version}
|
Obsoletes: %{name}-ose < %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%(sed -e '/^Provides: multiversion(kernel)/d' %{_libexecdir}/rpm/kernel-module-subpackage > %{_builddir}/virtualbox-kmp-template)
|
||||||
ExclusiveArch: %ix86 x86_64
|
ExclusiveArch: %ix86 x86_64
|
||||||
%ifarch amd64 x86_64 ia32e em64t
|
%ifarch amd64 x86_64 ia32e em64t
|
||||||
BuildRequires: gcc-32bit
|
BuildRequires: gcc-32bit
|
||||||
@ -186,8 +190,7 @@ websrv GUI part for %{name}.
|
|||||||
%package host-KMP
|
%package host-KMP
|
||||||
Summary: Host kernel module for VirtualBox
|
Summary: Host kernel module for VirtualBox
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
# SUSE specify macro to define host kmp package
|
%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %{SOURCE7} -n %{name}-host -f %{SOURCE5} -x kdump um xen xenpae pv
|
||||||
%{?suse_kernel_module_package:%suse_kernel_module_package -p %{SOURCE7} -n %{name}-host -f %{SOURCE5} kdump um xen xenpae}
|
|
||||||
|
|
||||||
%description host-KMP
|
%description host-KMP
|
||||||
This package contains the kernel-module for VirtualBox.
|
This package contains the kernel-module for VirtualBox.
|
||||||
@ -196,8 +199,7 @@ This package contains the kernel-module for VirtualBox.
|
|||||||
%package guest-KMP
|
%package guest-KMP
|
||||||
Summary: Guest kernel modules for VirtualBox
|
Summary: Guest kernel modules for VirtualBox
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
#SUSE specify macro to define guest kmp package
|
%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %{SOURCE8} -n %{name}-guest -f %{SOURCE6} -x kdump um xen xenpae pv
|
||||||
%{?suse_kernel_module_package:%suse_kernel_module_package -p %{SOURCE8} -n %{name}-guest -f %{SOURCE6} kdump um xen xenpae}
|
|
||||||
|
|
||||||
%description guest-KMP
|
%description guest-KMP
|
||||||
This package contains the kernel-module for VirtualBox.
|
This package contains the kernel-module for VirtualBox.
|
||||||
@ -259,14 +261,14 @@ Development file for %{name}
|
|||||||
Summary: Source files for %{name} kernel modules
|
Summary: Source files for %{name} kernel modules
|
||||||
Group: Development/Sources
|
Group: Development/Sources
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
BuildArch: noarch
|
|
||||||
Requires: gcc
|
Requires: gcc
|
||||||
Requires: make
|
Requires: make
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description host-source
|
%description host-source
|
||||||
Source files for %{name} kernel modules
|
Source files for %{name} kernel modules
|
||||||
These can be built for custom kernels using
|
These can be built for custom kernels using
|
||||||
cd /usr/src/kernel-modules/virtualbox ; make ; make install
|
cd %{_prefix}/src/kernel-modules/virtualbox ; make ; make install
|
||||||
###########################################
|
###########################################
|
||||||
|
|
||||||
%package guest-desktop-icons
|
%package guest-desktop-icons
|
||||||
@ -296,6 +298,9 @@ This package contains icons for guest desktop files that were created on the des
|
|||||||
%patch103
|
%patch103
|
||||||
%patch104 -p1
|
%patch104 -p1
|
||||||
%patch105 -p1
|
%patch105 -p1
|
||||||
|
%patch106
|
||||||
|
%patch107
|
||||||
|
%patch108 -p1
|
||||||
#copy user manual
|
#copy user manual
|
||||||
cp %{SOURCE1} UserManual.pdf
|
cp %{SOURCE1} UserManual.pdf
|
||||||
#copy kbuild config
|
#copy kbuild config
|
||||||
|
Loading…
Reference in New Issue
Block a user