app-emulation/wine: move compilation checks to src_configure, #610752
authorNP-Hardass <NP-Hardass@gentoo.org>
Sun, 12 Mar 2017 21:26:04 +0000 (17:26 -0400)
committerNP-Hardass <NP-Hardass@gentoo.org>
Sun, 12 Mar 2017 21:26:33 +0000 (17:26 -0400)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

29 files changed:
app-emulation/wine/wine-1.8-r3.ebuild
app-emulation/wine/wine-1.8.1-r3.ebuild
app-emulation/wine/wine-1.8.2-r2.ebuild
app-emulation/wine/wine-1.8.3-r1.ebuild
app-emulation/wine/wine-1.8.4.ebuild
app-emulation/wine/wine-1.8.5.ebuild
app-emulation/wine/wine-1.8.6.ebuild
app-emulation/wine/wine-1.9.10-r3.ebuild
app-emulation/wine/wine-1.9.11-r3.ebuild
app-emulation/wine/wine-1.9.12-r2.ebuild
app-emulation/wine/wine-1.9.13-r2.ebuild
app-emulation/wine/wine-1.9.14-r2.ebuild
app-emulation/wine/wine-1.9.15-r1.ebuild
app-emulation/wine/wine-1.9.16.ebuild
app-emulation/wine/wine-1.9.17.ebuild
app-emulation/wine/wine-1.9.18.ebuild
app-emulation/wine/wine-1.9.19-r1.ebuild
app-emulation/wine/wine-1.9.20.ebuild
app-emulation/wine/wine-1.9.21.ebuild
app-emulation/wine/wine-1.9.22.ebuild
app-emulation/wine/wine-1.9.23.ebuild
app-emulation/wine/wine-1.9.4-r3.ebuild
app-emulation/wine/wine-1.9.5-r3.ebuild
app-emulation/wine/wine-1.9.6-r3.ebuild
app-emulation/wine/wine-1.9.7-r3.ebuild
app-emulation/wine/wine-1.9.8-r2.ebuild
app-emulation/wine/wine-1.9.9-r3.ebuild
app-emulation/wine/wine-2.0.ebuild
app-emulation/wine/wine-9999.ebuild

index adddb01d828121a7029b4116806fc376fa97c82e..84c02fd07a0bd5666ff65b89d97d7ae4da17b0f8 100644 (file)
@@ -237,6 +237,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -267,7 +282,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -368,6 +382,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index ee88d61ac5569b6b4a7604281842accec4c1faba..1890e53d58e8f5f5635c5129e3195b002a40ec25 100644 (file)
@@ -238,6 +238,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -268,7 +283,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -374,6 +388,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index c98ce9ec4edab48e7d4758f0b14bdfd2f0553f96..439357f482451eb38d1a0bdb09c1f6d9186f6269 100644 (file)
@@ -238,6 +238,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -268,7 +283,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -374,6 +388,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 2e8cc42575e7babdaa64ea28f86fc9cd687e50ce..36ff7973f9e301a497db67723be7aa3abaac0af1 100644 (file)
@@ -238,6 +238,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -268,7 +283,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -373,6 +387,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 6b20bb4b20398e13c65eeed27de383f27e8e12bf..dfe2d26d2afe3d6c8234652a4016885f69122c18 100644 (file)
@@ -238,6 +238,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -268,7 +283,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -372,6 +386,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 6b20bb4b20398e13c65eeed27de383f27e8e12bf..dfe2d26d2afe3d6c8234652a4016885f69122c18 100644 (file)
@@ -238,6 +238,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -268,7 +283,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -372,6 +386,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 6b20bb4b20398e13c65eeed27de383f27e8e12bf..dfe2d26d2afe3d6c8234652a4016885f69122c18 100644 (file)
@@ -238,6 +238,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -268,7 +283,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -372,6 +386,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 334cfd5730a2b7fa10768afbe96f2f54e80a7a26..793bd05e09a64b7e8dca354a793008c6a7eb8fb2 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 334cfd5730a2b7fa10768afbe96f2f54e80a7a26..793bd05e09a64b7e8dca354a793008c6a7eb8fb2 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 2ab196a6fd7c68175f7d7acd7b104d6cf62c8aa6..79f97032617e068a6cbb2a8d13d88c64b41822b9 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index ebe150c8d8648429beee70e548f2ef21347b7691..2b842b75ab8333ad94a1ff5fc9e50bdf6b63d44a 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -390,6 +404,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index ebe150c8d8648429beee70e548f2ef21347b7691..2b842b75ab8333ad94a1ff5fc9e50bdf6b63d44a 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -390,6 +404,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index ebe150c8d8648429beee70e548f2ef21347b7691..2b842b75ab8333ad94a1ff5fc9e50bdf6b63d44a 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -390,6 +404,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index ebe150c8d8648429beee70e548f2ef21347b7691..2b842b75ab8333ad94a1ff5fc9e50bdf6b63d44a 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -390,6 +404,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index c8b84c8e19456ea8a029d87ec2551d23079a95ea..9c7d5a204eed7a505dbf710586c54d045bbb4f2e 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -390,6 +404,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index c557311c9b9a650c468d11eae30520218bceacca..9cb4e1c37d7d1219b32b88e56e98577a7aafbb2f 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -390,6 +404,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 223d8d23678827aa03652435a549e492ee80fd95..38e05484dbf40ff9dbd7c35f356add89ab9e0a80 100644 (file)
@@ -246,6 +246,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -276,7 +291,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 223d8d23678827aa03652435a549e492ee80fd95..38e05484dbf40ff9dbd7c35f356add89ab9e0a80 100644 (file)
@@ -246,6 +246,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -276,7 +291,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 223d8d23678827aa03652435a549e492ee80fd95..38e05484dbf40ff9dbd7c35f356add89ab9e0a80 100644 (file)
@@ -246,6 +246,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -276,7 +291,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 223d8d23678827aa03652435a549e492ee80fd95..38e05484dbf40ff9dbd7c35f356add89ab9e0a80 100644 (file)
@@ -246,6 +246,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -276,7 +291,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 223d8d23678827aa03652435a549e492ee80fd95..38e05484dbf40ff9dbd7c35f356add89ab9e0a80 100644 (file)
@@ -246,6 +246,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -276,7 +291,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index ae588db33d14c3d9816e78458b278ca2f8f293b0..9b7e4922de6ce00bac481b7b8db0ea8483937bd3 100644 (file)
@@ -236,6 +236,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -266,7 +281,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -371,6 +385,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index fbbcf25a79c3babd2f670446657c4c14af9acf1e..5cf8714a80b6770483bccc5275280a949a97d7e3 100644 (file)
@@ -235,6 +235,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -265,7 +280,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -373,6 +387,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index f7eabfb28addb19b1d084f40d9121d87a390d2cf..3107acebf177dc830716eafaf1cf2a748c9173a8 100644 (file)
@@ -235,6 +235,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -265,7 +280,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -370,6 +384,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index f7eabfb28addb19b1d084f40d9121d87a390d2cf..3107acebf177dc830716eafaf1cf2a748c9173a8 100644 (file)
@@ -235,6 +235,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -265,7 +280,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -370,6 +384,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index cf70abfc84cc1af7b9e8ef29e44fe1b6d90c8f8e..bc6aca23377465910618c7c2e438f47c555affed 100644 (file)
@@ -235,6 +235,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -265,7 +280,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -370,6 +384,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index 4708e4a5553d66f879b38d20fa9bb733010845b2..31c8c34c66cd82514099d6037990c8e6b4802bb6 100644 (file)
@@ -245,6 +245,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -275,7 +290,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -391,6 +405,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index a5e69c16bff3b2cd6afeb95ac924744f710da1d4..e037d416acfa79b5bcf85d8861a3d848ae5b9b26 100644 (file)
@@ -199,6 +199,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -208,7 +223,6 @@ wine_build_environment_check() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -270,6 +284,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags
 
index dde1b9ec0f9535f69e133d63ce4844dfc04a7884..d17608967fea4ad3d03976398995842d987f30a2 100644 (file)
@@ -246,6 +246,21 @@ wine_compiler_check() {
 wine_build_environment_check() {
        [[ ${MERGE_TYPE} = "binary" ]] && return 0
 
+       if use abi_x86_64; then
+               if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
+                       eerror "You need gcc-4.4+ to compile 64-bit wine"
+                       die
+               elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
+                       eerror "You need clang-3.8+ to compile 64-bit wine"
+                       die
+               fi
+       fi
+       if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
+               ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
+               ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
+               ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
+       fi
+
        if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
                eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
                eerror "See https://bugs.gentoo.org/487864 for more details."
@@ -276,7 +291,6 @@ wine_env_vcs_vars() {
 }
 
 pkg_pretend() {
-       wine_compiler_check || die
        wine_build_environment_check || die
 
        # Verify OSS support
@@ -392,6 +406,8 @@ src_prepare() {
 }
 
 src_configure() {
+       wine_compiler_check || die
+
        export LDCONFIG=/bin/true
        use custom-cflags || strip-flags