When subversion's berkdb use flag is set, it requires apr-util to be compiled with berkdb as well. Failure is pretty early in the configure stage and pretty clear, but the ebuild should be checking this dependency in pkg_setup so we don't get an error in configure. Attaching patch.
Created attachment 100729 [details, diff] dev-util/subversion-1.4.0.ebuild patch
*** This bug has been marked as a duplicate of 114481 ***
I'm not sure how this is a dup of 114481, espcially as 114481 is marked as INVALID. 1. User has apr-util intalled (with no berkdb, say from apache installation) 2. User set berkdb in /etc/make.conf 3. Emerge of subversion fails during configure. If berkdb is set for subversion, it apr-util MUST be built with berkdb USE flag. Reasons I feel this should be fixed the ebuild rather than letting configure error out: 1. We do this sort of consistancy checking all over portage. 2. Provides a cleaner error for the end user with clear steps for resolution.