/usr/portage/net-mail/cyrus-imapd/cyrus-imapd-2.2.12.ebuild: if [[ $(grep -wo ${my_flag} ${ROOT}/var/db/pkg/${my_pkg}/USE) ]]; then /usr/portage/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r5.ebuild: if [[ $(grep -wo ${my_flag} ${ROOT}/var/db/pkg/${my_pkg}/USE) ]]; then /usr/portage/net-mail/cyrus-imapd/cyrus-imapd-2.2.12-r4.ebuild: if [[ $(grep -wo ${my_flag} ${ROOT}/var/db/pkg/${my_pkg}/USE) ]]; then This use of /var/db/pkg is unreliable. Finding if a package is built with a useflag can be done with "built_with_use cat-egory/package use"
if you look at cvs history, that hack was before vapier put in built_with_use hack. It was fixed in 2.3 series (p.masked). I don't fix stable ebuilds unless it's seriously broke. Feel free to commit the fix if you disgree. Best regards, Tuan