diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2011-05-01 15:40:24 +0200 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2011-05-01 15:40:24 +0200 |
| commit | 60b48314421418f7f1bd2d04b51aa578027db246 (patch) | |
| tree | 0311c9081ce14b301260eb0c68e02602e1483eda /eclass/kde4-base.eclass | |
| parent | 4492695b6221b6373ff1485a3d89afa716360b89 (diff) | |
| download | kde-60b48314421418f7f1bd2d04b51aa578027db246.tar.gz kde-60b48314421418f7f1bd2d04b51aa578027db246.tar.bz2 kde-60b48314421418f7f1bd2d04b51aa578027db246.zip | |
[eclasses/kdelibs] Rework the gcc checker to be little less resources consuming.
Diffstat (limited to 'eclass/kde4-base.eclass')
| -rw-r--r-- | eclass/kde4-base.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass index 8fe4a0bf5d4..a1700d93fab 100644 --- a/eclass/kde4-base.eclass +++ b/eclass/kde4-base.eclass @@ -642,6 +642,14 @@ kde4-base_pkg_setup() { # Don't set KDEHOME during compilation, it will cause access violations unset KDEHOME + # Check if gcc compiler is fresh enough. + # In theory should be in pkg_pretend but we check it only for kdelibs there + # and for others we do just quick scan in pkg_setup because pkg_pretend + # executions consume quite some time. + [[ $(gcc-major-version) -lt 4 ]] || \ + ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ + && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." + if [[ ${KDEBASE} = kde-base ]]; then if use kdeprefix; then KDEDIR=/usr/kde/${SLOT} |
