Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36723 - postgresql-7.3.4-r1 fails without java-config
Summary: postgresql-7.3.4-r1 fails without java-config
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-29 05:50 UTC by pasi.valminen
Modified: 2007-09-23 07:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pasi.valminen 2003-12-29 05:50:20 UTC
I tried to update postgresql to 7.3.4-r1 but it failed right after unpacking the source. I have -java in USE so it's quite obvious java-config is not installed(?). Here's the output:

Calculating dependencies ...done!
>>> emerge (1 of 1) dev-db/postgresql-7.3.4-r1 to /
>>> md5 src_uri ;-) postgresql-7.3.4.tar.gz
>>> Unpacking source...
>>> Unpacking postgresql-7.3.4.tar.gz to /tmp/portage/postgresql-7.3.4-r1/work
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 1: java-config: command not found
 * You need to use java-config to set your JVM to a JDK!

!!! ERROR: dev-db/postgresql-7.3.4-r1 failed.
!!! Function check_java_config, Line 74, Exitcode 0
!!! You need to use java-config to set your JVM to a JDK!

The line responsible for this in the ebuild is:

use java && use amd64 || use hppa || check_java_config

in the beginning of the src_compile() function. Since use java and use hppa both fail, check_java_config is called which executes java-config that does not exist and thus the ebuild quits.

Reproducible: Always
Steps to Reproduce:
1. [[ -x /usr/bin/java-config ]] && emerge unmerge java-config
2. USE="-java" emerge postgresql
3.

Actual Results:  
Ebuild fails before configure. 

Expected Results:  
Postgresql should have been updated.

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.21)
=================================================================
System uname: 2.4.21 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs distcc"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm crypt foomaticdb libg++ mad ncurses zlib gdbm berkdb readline tcpd
pam ssl -3dnow -arts -avi -cups -encode -gif -gnome -gpm -gtk -gtk2 -imlib
innodb -java -jpeg -kde ldap -libwww -mikmod -motif -mpeg mysql -nls odbc
-oggvorbis -opengl -oss -pdflib perl -png postgres -python -qt -qtmt -quicktime
sasl -sdl -slang -spell sse -svga -truetype -X -xml2 -xmms -xv"
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-29 06:43:15 UTC
Fixed.

Thanks
Comment 2 David Pilar 2003-12-29 10:09:26 UTC
What was done/ what can I do to fix this?  I am having the exact same problem while trying to install 7.4.1.

>>> emerge (2 of 12) dev-db/postgresql-7.4.1 to /
>>> md5 src_uri ;-) postgresql-base-7.4.1.tar.bz2
>>> md5 src_uri ;-) postgresql-opt-7.4.1.tar.bz2
>>> md5 src_uri ;-) postgresql-docs-7.4.1.tar.bz2
>>> md5 src_uri ;-) hier-Pg7.4-0.3.tar.gz
>>> Unpacking source...
>>> Unpacking postgresql-base-7.4.1.tar.bz2 to /var/tmp/portage/postgresql-7.4.1/work
>>> Unpacking postgresql-opt-7.4.1.tar.bz2 to /var/tmp/portage/postgresql-7.4.1/work
>>> Unpacking postgresql-docs-7.4.1.tar.bz2 to /var/tmp/portage/postgresql-7.4.1/work
 * Applying postgresql-7.4.1-gentoo.patch...                                                                                                          [ ok ]
>>> Source unpacked.
Traceback (most recent call last):
  File "/usr/bin/java-config", line 15, in ?
    from java_config import jc_options
ImportError: No module named java_config
 * You need to use java-config to set your JVM to a JDK!

!!! ERROR: dev-db/postgresql-7.4.1 failed.
!!! Function check_java_config, Line 67, Exitcode 0
!!! You need to use java-config to set your JVM to a JDK!

> emerge info && ls -l /usr/lib/portage/pym/
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.22-gentoo-r1)
=================================================================
System uname: 2.4.22-gentoo-r1 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -frename-registers -fomit-frame-pointer -mfpmath=sse,387 -mmmx -msse -m3dnow  -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -frename-registers -fomit-frame-pointer -mfpmath=sse,387 -mmmx -msse -m3dnow  -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://oss.redundant.com/pub/gentoo http://cudlug.cudenver.edu/gentoo/ http://mirror.tucdemonic.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dfx 3dnow S3TC X aalib alsa apache2 arts avi bidi bonobo cdr clamav crypt cups curl dga directfb doc dvb dvd encode esd fbcon fbdev ffmpeg foomaticdb gatos gb gd gdbm ggi gif gnome gnomedb gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib java jikes joystick jpeg kde ldap libg++ libwww mad maildir mbox mdb mikmod motif mozilla moznocompose moznoirc moznomail mpeg mysql nas ncurses nls oav odbc oggvorbis opengl oss pam parse-clocks pda pdflib perl php png postgres ppds python qt quicktime radeon readline ruby sasl sdl slang sox spell sqlite sse ssl svga tcltk tcpd tetex tiff transcode truetype type1 usb v4l x86 xml xml2 xmms xv xvid zlib video_cards_radeon"

total 896
-rw-r--r--    1 root     root         9221 Nov 27 18:17 cvstree.py
-rw-r--r--    1 root     root        10213 Dec  5 11:51 cvstree.pyc
-rw-r--r--    1 root     root        10103 Nov 27 18:18 cvstree.pyo
-rw-r--r--    1 root     root         5660 Nov 27 18:17 dispatch_conf.py
-rw-r--r--    1 root     root         6192 Nov 27 18:18 dispatch_conf.pyc
-rw-r--r--    1 root     root         5889 Nov 27 18:18 dispatch_conf.pyo
-rw-r--r--    1 root     root        22130 Nov 27 18:17 emergehelp.py
-rw-------    1 root     root        20883 Dec  5 12:48 emergehelp.pyc
-rw-r--r--    1 root     root        20853 Nov 27 18:18 emergehelp.pyo
-rw-r--r--    1 root     root        14131 Nov 27 18:17 getbinpkg.py
-rw-r--r--    1 root     root        17527 Dec  5 11:51 getbinpkg.pyc
-rw-r--r--    1 root     root        17347 Nov 27 18:18 getbinpkg.pyo
-rw-r--r--    1 root     root         2238 Nov 27 18:17 output.py
-rw-r--r--    1 root     root         5779 Dec  5 11:51 output.pyc
-rw-r--r--    1 root     root         5549 Nov 27 18:18 output.pyo
-rw-r--r--    1 root     root       173722 Nov 27 18:17 portage.py
-rw-r--r--    1 root     root       181042 Dec  5 11:51 portage.pyc
-rw-r--r--    1 root     root       178956 Nov 27 18:18 portage.pyo
-rw-r--r--    1 root     root        11802 Nov 27 18:17 portage_core.py
-rw-r--r--    1 root     root        11072 Dec  5 11:51 portage_core.pyc
-rw-r--r--    1 root     root        11072 Dec  5 11:51 portage_core.pyo
-rw-r--r--    1 root     root        15050 Nov 27 18:17 portage_core2.py
-rw-r--r--    1 root     root        16557 Dec  5 11:51 portage_core2.pyc
-rw-r--r--    1 root     root        16557 Dec  5 11:51 portage_core2.pyo
-rw-r--r--    1 root     root         1635 Nov 27 18:17 portage_utils.py
-rw-r--r--    1 root     root         1888 Dec  5 11:51 portage_utils.pyc
-rw-r--r--    1 root     root         1888 Dec  5 11:51 portage_utils.pyo
-rw-r--r--    1 root     root         1595 Nov 27 18:17 portagedb.py
-rw-r--r--    1 root     root         2118 Dec  5 11:51 portagedb.pyc
-rw-r--r--    1 root     root         2118 Dec  5 11:51 portagedb.pyo
-rw-r--r--    1 root     root         9972 Nov 27 18:17 xpak.py
-rw-r--r--    1 root     root        14377 Dec  5 11:51 xpak.pyc
-rw-r--r--    1 root     root        14377 Dec  5 11:51 xpak.pyo
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-29 11:41:05 UTC
I think it's another problem.
It may be java-config problem.

Java guys, what do you think?
Comment 4 Paul Oldham 2004-01-09 10:29:29 UTC
I'n experiencing exactly the same problem. I must admit I'm no expert and this is all a bit new to me but but at first glance it looks to me like the check_java_config function is being a little over-keen. If java isn't installed then it looks like postgresql will be compiled without it, certainly configure is being passed --with-java, so why does it matter if java_config doesn't exist, or returns a null string?
Comment 5 Masatomo Nakano (RETIRED) gentoo-dev 2004-01-16 03:08:23 UTC
When USE="-java", check_java_config() is not called.
When USE="java", java-config would be installed by DEPEND.

I think it's OK...
Comment 6 Paul Oldham 2004-01-18 04:25:05 UTC
I've just tried

USE="-java" emerge postgresql

which I'm assuming is what you had in mind? I get exactly the same problem.

------8<------------
You need to use java-config to set your JVM to a JDK!

!!! ERROR: dev-db/postgresql-7.3.4-r1 failed.
!!! Function check_java_config, Line 74, Exitcode 0
!!! You need to use java-config to set your JVM to a JDK!
------8<------------

I have java-config, what I don't have is a JVM installed. I stand by my previous comments.
Comment 7 Paul Oldham 2004-01-25 04:16:59 UTC
I've just done an 'emerge -u world' and noticed I got a new java-config, so I tried 'emerge postgresql' again, just on the off chance and ... it's fine now so you may want to close this one down?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-06-08 10:53:22 UTC
Closing a really stale bug. Reopen if this is still a problem.