Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713 - postgresql-7.2 can't build under jdk1.4
Summary: postgresql-7.2 can't build under jdk1.4
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
Depends on:
Reported: 2002-02-15 18:38 UTC by Lars S. Jensen
Modified: 2007-09-22 16:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

the java ebuild file dev-java/sun-jdk/sun-jdk-1.4.0.ebuild (sun-jdk-1.4.0.ebuild,2.41 KB, text/plain)
2002-02-15 18:41 UTC, Lars S. Jensen

Note You need to log in before you can comment on or make changes to this bug.
Description Lars S. Jensen 2002-02-15 18:38:31 UTC
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:

The ebuild should be changed to in install the prebuild jar files from in case of "virtual/jdk-1.4"
Comment 1 Lars S. Jensen 2002-02-15 18:41:11 UTC
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.
Comment 2 phoen][x 2002-02-16 05:29:16 UTC
it compiles fine if u take java out of USE. but the init.d script is not 
there. maybe related?

Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-02-18 15:10:54 UTC
Rewrote deps to allow only 1.3
Comment 4 Lars S. Jensen 2002-03-25 11:57:43 UTC
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"

Comment 5 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-03-25 14:11:51 UTC
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.
Comment 6 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-04-10 07:02:33 UTC
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.