Index: hwoarang/development/gentoo-x86/eclass/qt4-build.eclass =================================================================== --- hwoarang.orig/development/gentoo-x86/eclass/qt4-build.eclass +++ hwoarang/development/gentoo-x86/eclass/qt4-build.eclass @@ -14,6 +14,12 @@ inherit base eutils multilib toolchain-funcs flag-o-matic versionator IUSE="${IUSE} debug pch" + +# add 'exceptions' use flag, wrt bug 240185. This change must not +# affect 4.4.2 and 4.5.1 stable packages +[[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]] && [[ ${PV} != "4.4.2" ]] && \ +[[ ${PV} != "4.5.1" ]] && IUSE="${IUSE} exceptions" + RDEPEND=" !x11-libs/qt-assistant-${PV}-r9999 @@ -292,7 +298,7 @@ standard_configure_options() { -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR} -silent -fast - $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions) + $(has exceptions ${IUSE} && ! use exceptions && echo -no-exceptions) -reduce-relocations -nomake examples -nomake demos" # Make eclass 4.5.{1,2} ready