]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
upstream patch to fix build with gcc8; rel 3 auto/th/VirtualBox-5.2.16-3
authorJan Palus <atler@pld-linux.org>
Wed, 15 Aug 2018 15:39:18 +0000 (17:39 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 15 Aug 2018 15:39:18 +0000 (17:39 +0200)
VirtualBox.spec
gcc8.patch [new file with mode: 0644]

index 0de66fdb3f631f79f9668d1a85c530fbc639830e..4426efa57b0353f7410f39ba855296e89eacd9c7 100644 (file)
@@ -42,7 +42,7 @@ exit 1
 
 %define                qtver   5.6.0
 
 
 %define                qtver   5.6.0
 
-%define                rel             2
+%define                rel             3
 %define                pname           VirtualBox
 Summary:       VirtualBox - x86 hardware virtualizer
 Summary(pl.UTF-8):     VirtualBox - wirtualizator sprzętu x86
 %define                pname           VirtualBox
 Summary:       VirtualBox - x86 hardware virtualizer
 Summary(pl.UTF-8):     VirtualBox - wirtualizator sprzętu x86
@@ -83,6 +83,7 @@ Patch15:      %{pname}-lightdm-1.19.2.patch
 Patch16:       %{pname}-no-vboxvideo.patch
 Patch17:       %{pname}-kerndir.patch
 Patch18:       kernel-4.18.patch
 Patch16:       %{pname}-no-vboxvideo.patch
 Patch17:       %{pname}-kerndir.patch
 Patch18:       kernel-4.18.patch
+Patch19:       gcc8.patch
 URL:           http://www.virtualbox.org/
 %if %{with userspace}
 %ifarch %{x8664}
 URL:           http://www.virtualbox.org/
 %if %{with userspace}
 %ifarch %{x8664}
@@ -553,6 +554,7 @@ cd ../..\
 %patch16 -p0
 %patch17 -p1
 %patch18 -p1
 %patch16 -p0
 %patch17 -p1
 %patch18 -p1
+%patch19 -p0
 
 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
        -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
 
 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
        -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
diff --git a/gcc8.patch b/gcc8.patch
new file mode 100644 (file)
index 0000000..9f3d19e
--- /dev/null
@@ -0,0 +1,27 @@
+------------------------------------------------------------------------
+r73343 | vboxsync | 2018-07-25 08:39:58 +0200 (śro, 25 lip 2018) | 3 lines
+Changed paths:
+   M /trunk/configure
+
+configure: remove the upper version limit in the gcc test and plan to
+blacklist if necessary in future.
+Thank you Gianfranco Costamagna.
+
+Index: configure
+===================================================================
+--- configure  (revision 73342)
++++ configure  (revision 73343)
+@@ -446,9 +446,8 @@
+       # gcc-4.0 is allowed for Darwin only
+       elif [ $cc_maj -lt 4 \
+              -o \( $cc_maj -eq 4 -a $cc_min -lt 4 -a "$OS" != "darwin" \) \
+-             -o \( $cc_maj -eq 4 -a $cc_min -lt 2 -a "$OS"  = "darwin" \) \
+-             -o $cc_maj -gt 7 ]; then
+-        log_failure "gcc version $cc_maj.$cc_min found, expected gcc 4.x...7.x"
++             -o \( $cc_maj -eq 4 -a $cc_min -lt 2 -a "$OS"  = "darwin" \) ]; then
++        log_failure "gcc version $cc_maj.$cc_min found, expected gcc 4.x or later"
+         fail really
+       else
+         log_success "found version $cc_ver"
+
+------------------------------------------------------------------------
This page took 0.033547 seconds and 4 git commands to generate.