I accidentally hit the Commit button without putting in the description, so I'll do it here. I have Sun's 1.4.0 JDK installed. When trying to emerge postgresql 7.2.1, it wanted to install 1.3.1, which is fine - apparently there are compile problems with 1.4.0. However, I then tried to emerge postgresql with USE="-java". The 1.3.1 JDK dependency went away, but postgresql fails with the following message: * Cannot build with Sun JDK 1.4.0, use an 1.3.x JDK instead. Looking in the ebuild, this check is in pkg_setup(), but it's run regardless of whether java is wanted in the ebuild or not.
Thanks for that catch... Should be fixed now.