After upgrading to db-4.2.52_p2-r1, subversion repositories need to be recovered. # svnlook youngest /srv/svn/pub/portage/ svnlook: Berkeley DB error for filesystem /srv/svn/pub/portage/db while opening environment: Invalid argument svnlook: bdb: Program version 4.2 doesn't match environment version I noticed this when I saw the error in websvn. Maybe a note should be made in the db ebuild reminding users to recover all their repositories "svn recover repo" and checks permission on repository after upgrading.
I'll create a check for it sometime. The problem is that this requires some magic on the actually installed binaries as it's not that easy to just record the used db version. It should be in the subversion ebuild though. In general db is mainly a cause of lots of suffering. In any case there might be merrits on using fsfs as your repository format. In general it has a lot less problems.
It is fixed in subversion-1.5_pre26438 in Eaedificāta Repository. http://www.ffta.host.sk/Eaedificata/index.html
fixed in 1.4.4-r4