I tried to rebuild postgresql-7.2 after the installation of sun-jdk1.4 and it failed to compile jdbc2 It is a known bug: http://archives.postgresql.org/pgsql-jdbc/2002-02/msg00099.php The ebuild should be changed to in install the prebuild jar files from jdbc.postgresql.org in case of "virtual/jdk-1.4"
Created attachment 187 [details] the java ebuild file dev-java/sun-jdk/sun-jdk-1.4.0.ebuild the java ebuild file for jdk1.4.0 release.
it compiles fine if u take java out of USE. but the init.d script is not there. maybe related? -phoen][x-
Rewrote deps to allow only 1.3
I found a patch for postgresql-7.2 jdk1.4 (JDBC3.0) -- It is not compatible with jdk1.3 :-( I will make a ebuild that check the java installation. Or should java be set to jdk1.3 for system: "java-config --set-system-vm=xxx-1.3.X"
You should _NOT_ use --set-system-vm in an ebuild. That would be as bad as changing a user's default shell when you boot. You can always try java-config --java-version to see which JDK/JRE is installed. If it isn't Sun JDK 1.4, you shouldn't apply the 1.4 build patch in the postgres building process.
dev-db/postgresql-7.2-r2 will complain if the system VM is set to 1.4.0 and advise you to set it to an 1.3.x VM. Until this matter has been fixed upstream, I consider this workaround sufficient.