Package: src:virtualbox
Version: 5.0.20-dfsg-2
Severity: serious
Tags: patch

Hi,

On build in sid virtualbox return FTBFS because configure cannot detect gcc-5.4. The same problem is with 6.1.

Checking for gcc:
** gcc version 5.4 found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<10 or gcc 5.3!
Check /<<PKGBUILDDIR>>/out/configure.log for details
debian/rules:39: recipe for target 'override_dh_auto_configure' failed

For 6.1 is upstream fixed, but 5.4 not.

I attach patch for fix that bug.


--
 .''`.  Mateusz Łukasik
: :' :  http://mati75.eu
`. `'   Debian Member - [email protected]
  `-    GPG: D93B 0C12 C8D0 4D7A AFBC  FA27 CCD9 1D61 11A0 6851
Description: Fix detect version of gcc. Update to gcc 5.4 and 6.1.
Author: Mateusz Łukasik <[email protected]>
Bug-Debian: https://bugs.debian.org/[put number here]

--- a/configure
+++ b/configure
@@ -430,10 +430,10 @@ check_gcc()
              -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 3 \) \
-             -o \( $cc_maj -eq 6 -a $cc_min -gt 0 \) \
+             -o \( $cc_maj -eq 5 -a $cc_min -gt 4 \) \
+             -o \( $cc_maj -eq 6 -a $cc_min -gt 1 \) \
              -o $cc_maj -gt 6 ]; 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.3"
+        log_failure "gcc version $cc_maj.$cc_min found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<10, gcc 5.x with x<10 or gcc 6.x with x<2"
         fail really
       else
         log_success "found version $cc_ver"

Reply via email to