* Compilation with gcc older than 4.7 is not supported * ERROR: app-office/libreoffice-5.2.3.3-r1::gentoo failed (pretend phase): * Too old gcc found. * * Call stack: * ebuild.sh, line 115: Called pkg_pretend * libreoffice-5.2.3.3-r1.ebuild, line 267: Called die * The specific snippet of code: * die "Too old gcc found." While I see this snippet in the ebuild: if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || { [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then eerror "Compilation with gcc older than 4.7 is not supported" die "Too old gcc found." fi The part checking for the compiler not being Clang doesn't seem to work for some reason.
The statement in the ebuild is incorrect. eroen@occam ~ $ false && false || true; echo $? 0 The line if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || { should probably have been if ! $(tc-is-clang) && { [[ $(gcc-major-version) -lt 4 ]] ||
Fixed from 5.2.4 on. Thanks.
*** Bug 607250 has been marked as a duplicate of this bug. ***