--- portage-2.1.0_alpha20050718.orig/bin/ebuild-default-functions.sh +++ portage-2.1.0_alpha20050718/bin/ebuild-default-functions.sh @@ -1079,8 +1079,18 @@ local x # Make sure we have this USE flag in IUSE - if ! hasq "${u}" ${IUSE} ${E_IUSE} && ! hasq "${u}" ${PORTAGE_ARCHLIST} selinux; then - echo "QA Notice: USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}" >&2 + if ! hasq "${u}" ${IUSE} ${E_IUSE} ${PORTAGE_ARCHLIST} selinux; then + local e + x=notexpanded + for e in ${USE_EXPAND_LOWER=$(echo ${USE_EXPAND} | tr '[:upper:]' '[:lower:]')}; do + if [[ ${u} == ${e}_* ]]; then + x=expanded + break + fi + done + if [ "${x}" == notexpanded ]; then + echo "QA Notice: USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}" >&2 + fi fi for x in ${USE}; do