Skip to content

Commit

Permalink
app-office/libreoffice: Exclude clang from GCC version check
Browse files Browse the repository at this point in the history
Gentoo-bug: 460902

Package-Manager: portage-2.2.28
  • Loading branch information
a17r authored and akhuettel committed Jul 2, 2016
1 parent d3ddc17 commit 2ed0f7a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions app-office/libreoffice/libreoffice-5.1.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
check-reqs_pkg_pretend

if [[ $(gcc-major-version) -lt 4 ]] || {
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; }
then
if [[ $(tc-getCC) == clang ]] ; then
: # ignore clang, which works
elif [[ $(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
Expand Down
7 changes: 4 additions & 3 deletions app-office/libreoffice/libreoffice-5.2.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
check-reqs_pkg_pretend

if [[ $(gcc-major-version) -lt 4 ]] || {
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; }
then
if [[ $(tc-getCC) == clang ]] ; then
: # ignore clang, which works
elif [[ $(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
Expand Down
7 changes: 4 additions & 3 deletions app-office/libreoffice/libreoffice-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
check-reqs_pkg_pretend

if [[ $(gcc-major-version) -lt 4 ]] || {
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; }
then
if [[ $(tc-getCC) == clang ]] ; then
: # ignore clang, which works
elif [[ $(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
Expand Down

0 comments on commit 2ed0f7a

Please sign in to comment.