diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2015-08-26 00:42:40 -0400 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2015-08-26 00:43:16 -0400 |
commit | 26512e9ccdcce4f77440d4118061da9fff236caf (patch) | |
tree | b3c86c68c40dc8a9888e3f245e2d98a680b9bb7a /app-emulation/wine | |
parent | 7839f4affd32630d0d6afeacd14fe158aa8b8457 (diff) | |
download | gentoo-26512e9ccdcce4f77440d4118061da9fff236caf.tar.gz gentoo-26512e9ccdcce4f77440d4118061da9fff236caf.tar.xz |
app-emulation/wine: restrict gcc-5 only for 64-bit wine
Also, improve error message a bit.
Gentoo-Bug: 549768
Thanks-to: xpue
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'app-emulation/wine')
38 files changed, 162 insertions, 72 deletions
diff --git a/app-emulation/wine/wine-1.6.2-r1.ebuild b/app-emulation/wine/wine-1.6.2-r1.ebuild index 253493563bd..9ba13a7e52f 100644 --- a/app-emulation/wine/wine-1.6.2-r1.ebuild +++ b/app-emulation/wine/wine-1.6.2-r1.ebuild @@ -145,8 +145,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.6.2.ebuild b/app-emulation/wine/wine-1.6.2.ebuild index 3e554f5bb9a..0deb2a37f88 100644 --- a/app-emulation/wine/wine-1.6.2.ebuild +++ b/app-emulation/wine/wine-1.6.2.ebuild @@ -173,6 +173,15 @@ usr/share/applications/wine-winecfg.desktop" 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 + fi + if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then eerror "You need gcc-4.4+ to build 64-bit wine" eerror diff --git a/app-emulation/wine/wine-1.7.10-r1.ebuild b/app-emulation/wine/wine-1.7.10-r1.ebuild index 8ba3c7867cb..2b90cd4e023 100644 --- a/app-emulation/wine/wine-1.7.10-r1.ebuild +++ b/app-emulation/wine/wine-1.7.10-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.11-r1.ebuild b/app-emulation/wine/wine-1.7.11-r1.ebuild index 8ba3c7867cb..2b90cd4e023 100644 --- a/app-emulation/wine/wine-1.7.11-r1.ebuild +++ b/app-emulation/wine/wine-1.7.11-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.12-r1.ebuild b/app-emulation/wine/wine-1.7.12-r1.ebuild index 8f144873284..23dbb345f6b 100644 --- a/app-emulation/wine/wine-1.7.12-r1.ebuild +++ b/app-emulation/wine/wine-1.7.12-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.13-r1.ebuild b/app-emulation/wine/wine-1.7.13-r1.ebuild index 8f144873284..23dbb345f6b 100644 --- a/app-emulation/wine/wine-1.7.13-r1.ebuild +++ b/app-emulation/wine/wine-1.7.13-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.14-r1.ebuild b/app-emulation/wine/wine-1.7.14-r1.ebuild index 8f144873284..23dbb345f6b 100644 --- a/app-emulation/wine/wine-1.7.14-r1.ebuild +++ b/app-emulation/wine/wine-1.7.14-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.15-r1.ebuild b/app-emulation/wine/wine-1.7.15-r1.ebuild index 8f144873284..23dbb345f6b 100644 --- a/app-emulation/wine/wine-1.7.15-r1.ebuild +++ b/app-emulation/wine/wine-1.7.15-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.16-r1.ebuild b/app-emulation/wine/wine-1.7.16-r1.ebuild index 8f144873284..23dbb345f6b 100644 --- a/app-emulation/wine/wine-1.7.16-r1.ebuild +++ b/app-emulation/wine/wine-1.7.16-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.17-r1.ebuild b/app-emulation/wine/wine-1.7.17-r1.ebuild index 8f144873284..23dbb345f6b 100644 --- a/app-emulation/wine/wine-1.7.17-r1.ebuild +++ b/app-emulation/wine/wine-1.7.17-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.18-r1.ebuild b/app-emulation/wine/wine-1.7.18-r1.ebuild index 8f144873284..23dbb345f6b 100644 --- a/app-emulation/wine/wine-1.7.18-r1.ebuild +++ b/app-emulation/wine/wine-1.7.18-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.19-r2.ebuild b/app-emulation/wine/wine-1.7.19-r2.ebuild index 3cd7518be4c..c4fa942c8ca 100644 --- a/app-emulation/wine/wine-1.7.19-r2.ebuild +++ b/app-emulation/wine/wine-1.7.19-r2.ebuild @@ -159,8 +159,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.20-r1.ebuild b/app-emulation/wine/wine-1.7.20-r1.ebuild index 3a7937dbdf4..faab672297e 100644 --- a/app-emulation/wine/wine-1.7.20-r1.ebuild +++ b/app-emulation/wine/wine-1.7.20-r1.ebuild @@ -161,8 +161,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.21-r1.ebuild b/app-emulation/wine/wine-1.7.21-r1.ebuild index cf6c955b3a6..6c288dae4af 100644 --- a/app-emulation/wine/wine-1.7.21-r1.ebuild +++ b/app-emulation/wine/wine-1.7.21-r1.ebuild @@ -161,8 +161,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.22-r1.ebuild b/app-emulation/wine/wine-1.7.22-r1.ebuild index cf6c955b3a6..6c288dae4af 100644 --- a/app-emulation/wine/wine-1.7.22-r1.ebuild +++ b/app-emulation/wine/wine-1.7.22-r1.ebuild @@ -161,8 +161,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.28-r1.ebuild b/app-emulation/wine/wine-1.7.28-r1.ebuild index af9de82405d..9ba7ab147f9 100644 --- a/app-emulation/wine/wine-1.7.28-r1.ebuild +++ b/app-emulation/wine/wine-1.7.28-r1.ebuild @@ -161,8 +161,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.29-r1.ebuild b/app-emulation/wine/wine-1.7.29-r1.ebuild index af9de82405d..9ba7ab147f9 100644 --- a/app-emulation/wine/wine-1.7.29-r1.ebuild +++ b/app-emulation/wine/wine-1.7.29-r1.ebuild @@ -161,8 +161,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.3-r1.ebuild b/app-emulation/wine/wine-1.7.3-r1.ebuild index d76d1c6dade..355136d4762 100644 --- a/app-emulation/wine/wine-1.7.3-r1.ebuild +++ b/app-emulation/wine/wine-1.7.3-r1.ebuild @@ -145,8 +145,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.33-r1.ebuild b/app-emulation/wine/wine-1.7.33-r1.ebuild index 2b995ea5c27..3d4fb39948a 100644 --- a/app-emulation/wine/wine-1.7.33-r1.ebuild +++ b/app-emulation/wine/wine-1.7.33-r1.ebuild @@ -163,8 +163,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.34.ebuild b/app-emulation/wine/wine-1.7.34.ebuild index d2d3d5c3076..274c72f5ab6 100644 --- a/app-emulation/wine/wine-1.7.34.ebuild +++ b/app-emulation/wine/wine-1.7.34.ebuild @@ -163,8 +163,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.35.ebuild b/app-emulation/wine/wine-1.7.35.ebuild index b403d11adeb..1f3d4d551d4 100644 --- a/app-emulation/wine/wine-1.7.35.ebuild +++ b/app-emulation/wine/wine-1.7.35.ebuild @@ -163,8 +163,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.36.ebuild b/app-emulation/wine/wine-1.7.36.ebuild index aba14f5fb39..ca3cc7f886e 100644 --- a/app-emulation/wine/wine-1.7.36.ebuild +++ b/app-emulation/wine/wine-1.7.36.ebuild @@ -162,8 +162,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.37.ebuild b/app-emulation/wine/wine-1.7.37.ebuild index 51022bbddb6..ccc7bba7913 100644 --- a/app-emulation/wine/wine-1.7.37.ebuild +++ b/app-emulation/wine/wine-1.7.37.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.38-r1.ebuild b/app-emulation/wine/wine-1.7.38-r1.ebuild index 6f742e8c43a..2f45dc3f5c1 100644 --- a/app-emulation/wine/wine-1.7.38-r1.ebuild +++ b/app-emulation/wine/wine-1.7.38-r1.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.39-r1.ebuild b/app-emulation/wine/wine-1.7.39-r1.ebuild index 43f7f494f0c..b8e596c2224 100644 --- a/app-emulation/wine/wine-1.7.39-r1.ebuild +++ b/app-emulation/wine/wine-1.7.39-r1.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.4-r1.ebuild b/app-emulation/wine/wine-1.7.4-r1.ebuild index 2ebc7b83b09..5566fa88b95 100644 --- a/app-emulation/wine/wine-1.7.4-r1.ebuild +++ b/app-emulation/wine/wine-1.7.4-r1.ebuild @@ -145,8 +145,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.40-r1.ebuild b/app-emulation/wine/wine-1.7.40-r1.ebuild index 43f7f494f0c..b8e596c2224 100644 --- a/app-emulation/wine/wine-1.7.40-r1.ebuild +++ b/app-emulation/wine/wine-1.7.40-r1.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.41.ebuild b/app-emulation/wine/wine-1.7.41.ebuild index 43f7f494f0c..b8e596c2224 100644 --- a/app-emulation/wine/wine-1.7.41.ebuild +++ b/app-emulation/wine/wine-1.7.41.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.42.ebuild b/app-emulation/wine/wine-1.7.42.ebuild index 43f7f494f0c..b8e596c2224 100644 --- a/app-emulation/wine/wine-1.7.42.ebuild +++ b/app-emulation/wine/wine-1.7.42.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.43.ebuild b/app-emulation/wine/wine-1.7.43.ebuild index 43f7f494f0c..b8e596c2224 100644 --- a/app-emulation/wine/wine-1.7.43.ebuild +++ b/app-emulation/wine/wine-1.7.43.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.44.ebuild b/app-emulation/wine/wine-1.7.44.ebuild index 43f7f494f0c..b8e596c2224 100644 --- a/app-emulation/wine/wine-1.7.44.ebuild +++ b/app-emulation/wine/wine-1.7.44.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.45.ebuild b/app-emulation/wine/wine-1.7.45.ebuild index b297c85fdfa..cce623fe5f4 100644 --- a/app-emulation/wine/wine-1.7.45.ebuild +++ b/app-emulation/wine/wine-1.7.45.ebuild @@ -164,6 +164,15 @@ usr/share/applications/wine-winecfg.desktop" 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 + fi + if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then eerror "You need gcc-4.4+ to build 64-bit wine" eerror diff --git a/app-emulation/wine/wine-1.7.46.ebuild b/app-emulation/wine/wine-1.7.46.ebuild index 43f7f494f0c..b8e596c2224 100644 --- a/app-emulation/wine/wine-1.7.46.ebuild +++ b/app-emulation/wine/wine-1.7.46.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.47.ebuild b/app-emulation/wine/wine-1.7.47.ebuild index f2093ebde15..6f861f88458 100644 --- a/app-emulation/wine/wine-1.7.47.ebuild +++ b/app-emulation/wine/wine-1.7.47.ebuild @@ -165,8 +165,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.50.ebuild b/app-emulation/wine/wine-1.7.50.ebuild index c3441505c92..12cfb0489c2 100644 --- a/app-emulation/wine/wine-1.7.50.ebuild +++ b/app-emulation/wine/wine-1.7.50.ebuild @@ -166,8 +166,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.8-r1.ebuild b/app-emulation/wine/wine-1.7.8-r1.ebuild index 905985cdd67..49d18503a17 100644 --- a/app-emulation/wine/wine-1.7.8-r1.ebuild +++ b/app-emulation/wine/wine-1.7.8-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-1.7.9-r1.ebuild b/app-emulation/wine/wine-1.7.9-r1.ebuild index 905985cdd67..49d18503a17 100644 --- a/app-emulation/wine/wine-1.7.9-r1.ebuild +++ b/app-emulation/wine/wine-1.7.9-r1.ebuild @@ -146,8 +146,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi diff --git a/app-emulation/wine/wine-9999.ebuild b/app-emulation/wine/wine-9999.ebuild index c3441505c92..12cfb0489c2 100644 --- a/app-emulation/wine/wine-9999.ebuild +++ b/app-emulation/wine/wine-9999.ebuild @@ -166,8 +166,10 @@ wine_build_environment_check() { [[ ${MERGE_TYPE} = "binary" ]] && return 0 # bug #549768 - if [[ $(gcc-major-version) = 5 ]]; then - eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/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 fi |