From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 979AC138827 for ; Sat, 3 Oct 2015 05:43:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92733E0876; Sat, 3 Oct 2015 05:43:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06D55E0876 for ; Sat, 3 Oct 2015 05:43:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5C2833E01A for ; Sat, 3 Oct 2015 05:43:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C3E3E279 for ; Sat, 3 Oct 2015 05:43:33 +0000 (UTC) From: "Alexandre Rostovtsev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexandre Rostovtsev" Message-ID: <1443850882.28604e0c07a3062664926465c294038a9dcdb82f.tetromino@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/wine/, app-emulation/wine/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/wine/files/pr66838.c app-emulation/wine/wine-1.6.2-r1.ebuild app-emulation/wine/wine-1.6.2.ebuild app-emulation/wine/wine-1.7.10-r1.ebuild app-emulation/wine/wine-1.7.11-r1.ebuild app-emulation/wine/wine-1.7.12-r1.ebuild app-emulation/wine/wine-1.7.13-r1.ebuild app-emulation/wine/wine-1.7.14-r1.ebuild app-emulation/wine/wine-1.7.15-r1.ebuild app-emulation/wine/wine-1.7.16-r1.ebuild app-emulation/wine/wine-1.7.17-r1.ebuild app-emulation/wine/wine-1.7.18-r1.ebuild app-emulation/wine/wine-1.7.19-r2.ebuild app-emulation/wine/wine-1.7.20-r1.ebuild app-emulation/wine/wine-1.7.21-r1.ebuild app-emulation/wine/wine-1.7.22-r1.ebuild app-emulation/wine/wine-1.7.28-r1.ebuild app-emulation/wine/wine-1.7.29-r1.ebuild app-emulation/wine/wine-1.7.3-r1.ebuild app-emulation/wine/wine-1.7.33-r1.ebuild app-emulation/wine/wine-1.7.34.ebuild app-emulation/wine/wine-1.7.35.ebuild app-emulation/wine/wine-1.7.36.ebuild app-emulation/wine/wine-1.7.37.ebuild app-emulation/wine/wine-1 .7.38-r1.ebuild app-emulation/wine/wine-1.7.39-r1.ebuild app-emulation/wine/wine-1.7.4-r1.ebuild app-emulation/wine/wine-1.7.40-r1.ebuild app-emulation/wine/wine-1.7.41.ebuild app-emulation/wine/wine-1.7.42.ebuild app-emulation/wine/wine-1.7.43.ebuild app-emulation/wine/wine-1.7.44.ebuild app-emulation/wine/wine-1.7.45.ebuild app-emulation/wine/wine-1.7.46.ebuild app-emulation/wine/wine-1.7.47.ebuild app-emulation/wine/wine-1.7.50.ebuild app-emulation/wine/wine-1.7.51.ebuild app-emulation/wine/wine-1.7.8-r1.ebuild app-emulation/wine/wine-1.7.9-r1.ebuild app-emulation/wine/wine-9999.ebuild X-VCS-Directories: app-emulation/wine/files/ app-emulation/wine/ X-VCS-Committer: tetromino X-VCS-Committer-Name: Alexandre Rostovtsev X-VCS-Revision: 28604e0c07a3062664926465c294038a9dcdb82f X-VCS-Branch: master Date: Sat, 3 Oct 2015 05:43:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b7a0c340-316d-4257-945a-92f204de5021 X-Archives-Hash: 2c06e356779324eda601c8170b6449d7 commit: 28604e0c07a3062664926465c294038a9dcdb82f Author: Alexandre Rostovtsev gentoo org> AuthorDate: Sat Oct 3 05:40:26 2015 +0000 Commit: Alexandre Rostovtsev gentoo org> CommitDate: Sat Oct 3 05:41:22 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28604e0c app-emulation/wine: works with gcc-5.2.0 with latest patchset Instead of a simple version check, run the upstream test case to check whether the installed gcc ebuild has the ms_abi bug or not. Gentoo-Bug: 549768 Package-Manager: portage-2.2.22 app-emulation/wine/files/pr66838.c | 36 ++++++++++++++++++++++++++++++++ app-emulation/wine/wine-1.6.2-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.6.2.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.10-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.11-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.12-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.13-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.14-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.15-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.16-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.17-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.18-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.19-r2.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.20-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.21-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.22-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.28-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.29-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.3-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.33-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.34.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.35.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.36.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.37.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.38-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.39-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.4-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.40-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.41.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.42.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.43.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.44.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.45.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.46.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.47.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.50.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.51.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.8-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-1.7.9-r1.ebuild | 18 ++++++++++------ app-emulation/wine/wine-9999.ebuild | 18 ++++++++++------ 40 files changed, 504 insertions(+), 234 deletions(-) diff --git a/app-emulation/wine/files/pr66838.c b/app-emulation/wine/files/pr66838.c new file mode 100644 index 0000000..cd61685 --- /dev/null +++ b/app-emulation/wine/files/pr66838.c @@ -0,0 +1,36 @@ +/* From gcc svn, /branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr66838.c */ +/* Copyrighted and distributed under the same terms as gcc */ + +void abort (void); + +char global; + +__attribute__((sysv_abi, noinline, noclone)) +void sysv_abi_func(char const *desc, void *local) +{ + register int esi asm ("esi"); + register int edi asm ("edi"); + + if (local != &global) + abort (); + + /* Clobber some of the extra SYSV ABI registers. */ + asm volatile ("movl\t%2, %0\n\tmovl\t%2, %1" + : "=r" (esi), "=r" (edi) + : "i" (0xdeadbeef)); +} + +__attribute__((ms_abi, noinline, noclone)) +void ms_abi_func () +{ + sysv_abi_func ("1st call", &global); + sysv_abi_func ("2nd call", &global); + sysv_abi_func ("3rd call", &global); +} + +int +main(void) +{ + ms_abi_func(); + return 0; +} diff --git a/app-emulation/wine/wine-1.6.2-r1.ebuild b/app-emulation/wine/wine-1.6.2-r1.ebuild index cd806c0..7890da7 100644 --- a/app-emulation/wine/wine-1.6.2-r1.ebuild +++ b/app-emulation/wine/wine-1.6.2-r1.ebuild @@ -145,12 +145,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.6.2.ebuild b/app-emulation/wine/wine-1.6.2.ebuild index 3b620b1..e990228 100644 --- a/app-emulation/wine/wine-1.6.2.ebuild +++ b/app-emulation/wine/wine-1.6.2.ebuild @@ -174,12 +174,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.10-r1.ebuild b/app-emulation/wine/wine-1.7.10-r1.ebuild index 8dd4996..9cd19bd 100644 --- a/app-emulation/wine/wine-1.7.10-r1.ebuild +++ b/app-emulation/wine/wine-1.7.10-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.11-r1.ebuild b/app-emulation/wine/wine-1.7.11-r1.ebuild index 8dd4996..9cd19bd 100644 --- a/app-emulation/wine/wine-1.7.11-r1.ebuild +++ b/app-emulation/wine/wine-1.7.11-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.12-r1.ebuild b/app-emulation/wine/wine-1.7.12-r1.ebuild index a672bc8..16697c5 100644 --- a/app-emulation/wine/wine-1.7.12-r1.ebuild +++ b/app-emulation/wine/wine-1.7.12-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.13-r1.ebuild b/app-emulation/wine/wine-1.7.13-r1.ebuild index a672bc8..16697c5 100644 --- a/app-emulation/wine/wine-1.7.13-r1.ebuild +++ b/app-emulation/wine/wine-1.7.13-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.14-r1.ebuild b/app-emulation/wine/wine-1.7.14-r1.ebuild index a672bc8..16697c5 100644 --- a/app-emulation/wine/wine-1.7.14-r1.ebuild +++ b/app-emulation/wine/wine-1.7.14-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.15-r1.ebuild b/app-emulation/wine/wine-1.7.15-r1.ebuild index a672bc8..16697c5 100644 --- a/app-emulation/wine/wine-1.7.15-r1.ebuild +++ b/app-emulation/wine/wine-1.7.15-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.16-r1.ebuild b/app-emulation/wine/wine-1.7.16-r1.ebuild index a672bc8..16697c5 100644 --- a/app-emulation/wine/wine-1.7.16-r1.ebuild +++ b/app-emulation/wine/wine-1.7.16-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.17-r1.ebuild b/app-emulation/wine/wine-1.7.17-r1.ebuild index a672bc8..16697c5 100644 --- a/app-emulation/wine/wine-1.7.17-r1.ebuild +++ b/app-emulation/wine/wine-1.7.17-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.18-r1.ebuild b/app-emulation/wine/wine-1.7.18-r1.ebuild index a672bc8..16697c5 100644 --- a/app-emulation/wine/wine-1.7.18-r1.ebuild +++ b/app-emulation/wine/wine-1.7.18-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.19-r2.ebuild b/app-emulation/wine/wine-1.7.19-r2.ebuild index 0569dd9..90fb710 100644 --- a/app-emulation/wine/wine-1.7.19-r2.ebuild +++ b/app-emulation/wine/wine-1.7.19-r2.ebuild @@ -159,12 +159,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.20-r1.ebuild b/app-emulation/wine/wine-1.7.20-r1.ebuild index baa882c..39a57ab 100644 --- a/app-emulation/wine/wine-1.7.20-r1.ebuild +++ b/app-emulation/wine/wine-1.7.20-r1.ebuild @@ -161,12 +161,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.21-r1.ebuild b/app-emulation/wine/wine-1.7.21-r1.ebuild index 7343640..3e88454 100644 --- a/app-emulation/wine/wine-1.7.21-r1.ebuild +++ b/app-emulation/wine/wine-1.7.21-r1.ebuild @@ -161,12 +161,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.22-r1.ebuild b/app-emulation/wine/wine-1.7.22-r1.ebuild index 7343640..3e88454 100644 --- a/app-emulation/wine/wine-1.7.22-r1.ebuild +++ b/app-emulation/wine/wine-1.7.22-r1.ebuild @@ -161,12 +161,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.28-r1.ebuild b/app-emulation/wine/wine-1.7.28-r1.ebuild index 54d6481..9963e5b 100644 --- a/app-emulation/wine/wine-1.7.28-r1.ebuild +++ b/app-emulation/wine/wine-1.7.28-r1.ebuild @@ -161,12 +161,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.29-r1.ebuild b/app-emulation/wine/wine-1.7.29-r1.ebuild index 54d6481..9963e5b 100644 --- a/app-emulation/wine/wine-1.7.29-r1.ebuild +++ b/app-emulation/wine/wine-1.7.29-r1.ebuild @@ -161,12 +161,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.3-r1.ebuild b/app-emulation/wine/wine-1.7.3-r1.ebuild index 8ac9a7d..aecbaf3 100644 --- a/app-emulation/wine/wine-1.7.3-r1.ebuild +++ b/app-emulation/wine/wine-1.7.3-r1.ebuild @@ -145,12 +145,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.33-r1.ebuild b/app-emulation/wine/wine-1.7.33-r1.ebuild index f6af727..f38cb49 100644 --- a/app-emulation/wine/wine-1.7.33-r1.ebuild +++ b/app-emulation/wine/wine-1.7.33-r1.ebuild @@ -163,12 +163,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.34.ebuild b/app-emulation/wine/wine-1.7.34.ebuild index 91fbdfa..0968495 100644 --- a/app-emulation/wine/wine-1.7.34.ebuild +++ b/app-emulation/wine/wine-1.7.34.ebuild @@ -163,12 +163,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.35.ebuild b/app-emulation/wine/wine-1.7.35.ebuild index 137912e..8f493b0 100644 --- a/app-emulation/wine/wine-1.7.35.ebuild +++ b/app-emulation/wine/wine-1.7.35.ebuild @@ -163,12 +163,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.36.ebuild b/app-emulation/wine/wine-1.7.36.ebuild index 9c7bba6..3d79ebd 100644 --- a/app-emulation/wine/wine-1.7.36.ebuild +++ b/app-emulation/wine/wine-1.7.36.ebuild @@ -162,12 +162,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.37.ebuild b/app-emulation/wine/wine-1.7.37.ebuild index 2e2c0d0..a537166 100644 --- a/app-emulation/wine/wine-1.7.37.ebuild +++ b/app-emulation/wine/wine-1.7.37.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.38-r1.ebuild b/app-emulation/wine/wine-1.7.38-r1.ebuild index 1ba468d..e8bff65 100644 --- a/app-emulation/wine/wine-1.7.38-r1.ebuild +++ b/app-emulation/wine/wine-1.7.38-r1.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.39-r1.ebuild b/app-emulation/wine/wine-1.7.39-r1.ebuild index 6fd525b..cba7501 100644 --- a/app-emulation/wine/wine-1.7.39-r1.ebuild +++ b/app-emulation/wine/wine-1.7.39-r1.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.4-r1.ebuild b/app-emulation/wine/wine-1.7.4-r1.ebuild index 5ca4da7..e157195 100644 --- a/app-emulation/wine/wine-1.7.4-r1.ebuild +++ b/app-emulation/wine/wine-1.7.4-r1.ebuild @@ -145,12 +145,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.40-r1.ebuild b/app-emulation/wine/wine-1.7.40-r1.ebuild index 6fd525b..cba7501 100644 --- a/app-emulation/wine/wine-1.7.40-r1.ebuild +++ b/app-emulation/wine/wine-1.7.40-r1.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.41.ebuild b/app-emulation/wine/wine-1.7.41.ebuild index 6fd525b..cba7501 100644 --- a/app-emulation/wine/wine-1.7.41.ebuild +++ b/app-emulation/wine/wine-1.7.41.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.42.ebuild b/app-emulation/wine/wine-1.7.42.ebuild index 6fd525b..cba7501 100644 --- a/app-emulation/wine/wine-1.7.42.ebuild +++ b/app-emulation/wine/wine-1.7.42.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.43.ebuild b/app-emulation/wine/wine-1.7.43.ebuild index 6fd525b..cba7501 100644 --- a/app-emulation/wine/wine-1.7.43.ebuild +++ b/app-emulation/wine/wine-1.7.43.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.44.ebuild b/app-emulation/wine/wine-1.7.44.ebuild index 6fd525b..cba7501 100644 --- a/app-emulation/wine/wine-1.7.44.ebuild +++ b/app-emulation/wine/wine-1.7.44.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.45.ebuild b/app-emulation/wine/wine-1.7.45.ebuild index 8930da9..555a7d1 100644 --- a/app-emulation/wine/wine-1.7.45.ebuild +++ b/app-emulation/wine/wine-1.7.45.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.46.ebuild b/app-emulation/wine/wine-1.7.46.ebuild index 6fd525b..cba7501 100644 --- a/app-emulation/wine/wine-1.7.46.ebuild +++ b/app-emulation/wine/wine-1.7.46.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.47.ebuild b/app-emulation/wine/wine-1.7.47.ebuild index 6b89273..4f5cc8e 100644 --- a/app-emulation/wine/wine-1.7.47.ebuild +++ b/app-emulation/wine/wine-1.7.47.ebuild @@ -165,12 +165,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.50.ebuild b/app-emulation/wine/wine-1.7.50.ebuild index d78c249..8a8d5c1 100644 --- a/app-emulation/wine/wine-1.7.50.ebuild +++ b/app-emulation/wine/wine-1.7.50.ebuild @@ -166,12 +166,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.51.ebuild b/app-emulation/wine/wine-1.7.51.ebuild index d78c249..8a8d5c1 100644 --- a/app-emulation/wine/wine-1.7.51.ebuild +++ b/app-emulation/wine/wine-1.7.51.ebuild @@ -166,12 +166,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.8-r1.ebuild b/app-emulation/wine/wine-1.7.8-r1.ebuild index 5015137..090fb1c 100644 --- a/app-emulation/wine/wine-1.7.8-r1.ebuild +++ b/app-emulation/wine/wine-1.7.8-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-1.7.9-r1.ebuild b/app-emulation/wine/wine-1.7.9-r1.ebuild index 5015137..090fb1c 100644 --- a/app-emulation/wine/wine-1.7.9-r1.ebuild +++ b/app-emulation/wine/wine-1.7.9-r1.ebuild @@ -146,12 +146,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then diff --git a/app-emulation/wine/wine-9999.ebuild b/app-emulation/wine/wine-9999.ebuild index d78c249..8a8d5c1 100644 --- a/app-emulation/wine/wine-9999.ebuild +++ b/app-emulation/wine/wine-9999.ebuild @@ -166,12 +166,18 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 ]]; then - eerror "64-bit wine cannot be built with gcc-5.1 or 5.2 due to compiler bugs;" - eerror "you may use gcc-config to select an older compiler version." - eerror "See https://bugs.gentoo.org/549768" - eerror - return 1 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then + einfo "Checking for gcc-5 ms_abi compiler bug ..." + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die + # Run in subshell to prevent "Aborted" message + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," + eerror "or use gcc-config to select a different compiler version." + eerror "See https://bugs.gentoo.org/549768" + eerror + return 1 + fi fi if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then