Above program looks in /var/cache/edb without EPREFIX in front for its database. A patch to follow, which is not very nice as my Python is more or less bad.
Created attachment 184136 [details, diff] Patch for /usr/bin/esearch and /usr/sbin/eupdatedb Should that be integrated into the official tree?
I created a slightly different patch that retrieves EPREFIX from portage, hence it isn't applicable for mainstream (unless it's heavily try/catched).
Thanks.