From 26512e9ccdcce4f77440d4118061da9fff236caf Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Wed, 26 Aug 2015 00:42:40 -0400 Subject: 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 --- app-emulation/wine/wine-1.7.42.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app-emulation/wine/wine-1.7.42.ebuild') diff --git a/app-emulation/wine/wine-1.7.42.ebuild b/app-emulation/wine/wine-1.7.42.ebuild index 43f7f494f0cb..b8e596c2224b 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 -- cgit v1.2.3-65-gdbad