I upgraded perl itself without upgrading DBI, then tried to install dev-perl/DBD-Pg. It gave a message about DBI not being present (sorry, it scrolled off the screen before I saved it.) I emerge'd dev-perl/DBI, and the the Pg driver emerge'd fine. Reproducible: Didn't try
Did you run perl-cleaner after you upgraded dev-lang/perl?
Also, reopen this bug if you failed to spot this message that the perl upgrade should have shown you: * You have had multiple versions of perl. It is recommended * that you run perl-cleaner now. perl-cleaner will * assist with this transition. This script is capable * of cleaning out old .ph files, rebuilding modules for * your new version of perl, as well as re-emerging * applications that compiled against your old libperl.so * * PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT. * Part of the rebuilding of applications compiled against * your old libperl involves temporarily unmerging * them - interruptions could leave you with unmerged * packages before they can be remerged. * * If you have run perl-cleaner and a package still gives * you trouble, and re-emerging it fails to correct * the problem, please check http://bugs.gentoo.org/ * for more information or to report a bug. * *