Skip to content

Commit

Permalink
kde4-base.eclass: Drop obsolete minimum GCC check
Browse files Browse the repository at this point in the history
  • Loading branch information
a17r committed Aug 12, 2017
1 parent 724b5e8 commit 8a0d1a8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions eclass/kde4-base.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -637,24 +637,14 @@ debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}"
kde4-base_pkg_setup() {
debug-print-function ${FUNCNAME} "$@"

if has handbook ${IUSE} || has "+handbook" ${IUSE} && [ "${KDE_HANDBOOK}" != optional ] ; then
if has handbook ${IUSE} || has "+handbook" ${IUSE} && [[ "${KDE_HANDBOOK}" != optional ]] ; then
eqawarn "Handbook support is enabled via KDE_HANDBOOK=optional in the ebuild."
eqawarn "Please do not just set IUSE=handbook, as this leads to dependency errors."
fi

# 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 (ie. when merging 300 packages at once will cause 300 checks)
if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc; then
[[ $(gcc-major-version) -lt 4 ]] || \
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 6 ]] ) \
&& die "Sorry, but gcc-4.6 and earlier wont work for some KDE packages."
fi

KDEDIR=/usr
: ${PREFIX:=/usr}
EKDEDIR=${EPREFIX}/usr
Expand Down

0 comments on commit 8a0d1a8

Please sign in to comment.