From 09d8bc174fde6dfdc2fb71eb265d96de5c31d6b3 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Feb 14 2018 07:56:03 +0000 Subject: Fix build with gcc8 --- diff --git a/VirtualBox-5.2.6-gcc8.patch b/VirtualBox-5.2.6-gcc8.patch new file mode 100644 index 0000000..37a0348 --- /dev/null +++ b/VirtualBox-5.2.6-gcc8.patch @@ -0,0 +1,14 @@ +diff -up VirtualBox-5.2.6/configure~ VirtualBox-5.2.6/configure +--- VirtualBox-5.2.6/configure~ 2018-01-15 15:49:37.000000000 +0100 ++++ VirtualBox-5.2.6/configure 2018-02-14 08:53:25.602712747 +0100 +@@ -440,8 +440,8 @@ check_gcc() + 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 -gt 8 ]; then ++ log_failure "gcc version $cc_maj.$cc_min found, expected gcc 4.x...8.x" + fail really + else + log_success "found version $cc_ver" diff --git a/virtualbox-guest-additions.spec b/virtualbox-guest-additions.spec index 01f7c09..c1b44d8 100644 --- a/virtualbox-guest-additions.spec +++ b/virtualbox-guest-additions.spec @@ -19,6 +19,8 @@ Patch1: VirtualBox-5.0.18-xserver_guest.patch Patch2: 0001-VBoxServiceAutoMount-Change-Linux-mount-code-to-use-.patch # Do not show an error dialog when not running under vbox Patch3: VirtualBox-5.2.6-xclient.patch +# Fix build with gcc8 +Patch4: VirtualBox-5.2.6-gcc8.patch BuildRequires: kBuild >= 0.1.9998 BuildRequires: desktop-file-utils