Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267548 - dev-java/java-config-wrapper-0.15: java-check-environment always complains about missing generation-1 vm
Summary: dev-java/java-config-wrapper-0.15: java-check-environment always complains ab...
Status: RESOLVED DUPLICATE of bug 176781
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 14:30 UTC by Guenther Brunthaler
Modified: 2009-04-26 19:01 UTC (History)
0 users

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 Guenther Brunthaler 2009-04-26 14:30:42 UTC
java-check-environment from =dev-java/java-config-wrapper-0.15 always complains if it cannot find an installed generation-1 VM, even though no-one else required one.

There is a generation-2 VM installed, and no-one except for java-check-environment itself seems to need one.

I consider this a bug because any JAVA VM requires rather largt amounts of space for installation, and it seems particularly pointless to install an otherwise unneeded JAVA VM just to keep java-check-environment happy.

Of course, I could just ignore the output of java-check-environment - it is just a diagnostic tool at all.

However, what good is any diagnostic tool for at all if it does not work?

Reproducible: Always

Steps to Reproduce:
1.Un-emerge any packages requiring a generation-1 JAVA VM
2.Un-emerge all generation-1 JAVA VMs
3.Run java-check-environment
Actual Results:  
A message like

/usr/bin/java-check-environment: line 187: java-config-1: command not found
 * It doesn't look like java-config-1 sees any installed VMs.
 * It is most likely because you don't have a 1.4 JDK installed
 * This is required for generation-1 to work properly.
 * You will want to emerge =virtual/jdk-1.4*                                       [ !! ]

(And *no*, I definitively do *not* want to emerge jdk-1.4!!!)

Expected Results:  
Does not complain about a missing generation-1 VM if no-one else needs or wants such a VM.

$ equery depends '<virtual/jdk-1.5'
[ Searching for packages depending on <virtual/jdk-1.5... ]
app-pda/pilot-link-0.12.3 (java? >=virtual/jdk-1.4)
dev-db/hsqldb-1.8.0.10 (!java6? =virtual/jdk-1.4*)
dev-java/ant-core-1.7.1-r2 (>=virtual/jdk-1.4)
dev-java/bsh-2.0_beta4-r3 (>=virtual/jdk-1.4)
dev-java/flute-1.3-r1 (>=virtual/jdk-1.4)
dev-java/jdbc-postgresql-8.3_p603-r1 (!java5 & !java6? =virtual/jdk-1.4*)
dev-java/libreadline-java-0.8.0-r2 (>=virtual/jdk-1.4)
dev-java/sac-1.3-r1 (>=virtual/jdk-1.4)
dev-java/servletapi-2.4-r5 (>=virtual/jdk-1.4)
dev-java/tomcat-servlet-api-4.1.36 (>=virtual/jdk-1.4)
dev-lang/swig-1.3.36 (java? virtual/jdk)
dev-libs/cyrus-sasl-2.1.22-r2 (java? >=virtual/jdk-1.4)
media-libs/pdflib-7.0.2_p8 (java? >=virtual/jdk-1.4)
net-dns/libidn-1.5-r1 (java? >=virtual/jdk-1.4)
net-libs/xulrunner-1.8.1.19 (java? >=virtual/jdk-1.4)
net-libs/xulrunner-1.9.0.8 (java? >=virtual/jdk-1.4)
net-misc/mDNSResponder-107.6-r5 (java? >=virtual/jdk-1.4)
net-misc/tightvnc-1.3.10 (java? >=virtual/jdk-1.4)
sys-libs/db-4.5.20_p2-r1 (java? >=virtual/jdk-1.4)

As one can see - no required 1.4 or lower dependency. I *do* have jdk 1.6 installed.
Comment 1 Guenther Brunthaler 2009-04-26 14:32:31 UTC
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8-xquad-9.27 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-xquad-9.27-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Sat, 25 Apr 2009 14:45:02 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -DNDEBUG -pipe -fno-stack-check"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/local/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/host-variants/ /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -DNDEBUG -pipe -fno-stack-check"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps=y"
FEATURES="ccache distlocks fixpackages notitles prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://gentoo.in.th/ http://ftp.twaren.net/Linux/Gentoo/ ftp://ftp.twaren.net/Linux/Gentoo/"
LANG="de_AT.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mscgen /usr/portage/local/layman/xworld /usr/portage/local/layman/simplux /usr/portage/local/layman/xworld_attic /usr/portage/local/layman/xworld_serviced /usr/portage/local/layman/xworld_hotfixes /usr/portage/local/layman/xworld_thirdparty /usr/portage/local/overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acpi alsa amd64 apache2 arts aspell audiofile bash-completion berkdb branding bzip2 cairo caps cddb cdr cleartype cli cracklib crypt css cups curl custom-cflags custom-cxxflags dbus dri dts dv dvd dvdr dvdread ecc emboss encode evo exif expat ffmpeg fftw firefox flac foomaticdb fortran freetype ftp fuse gd gdbm gif gimp glade glut gmp gphoto2 gpm gtk gtk2 hal iconv idea ieee1394 imagemagick imlib isdnlog jack java6 javascript jbig jp2 jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdexdeltas kipi kpathsea lame lcms ldap libcaca libclamav libnotify libsamplerate logrotate lzma lzo mad matroska midi mikmod mmap mmx mmxext mng mp3 mpeg mudflap mule multilib musepack musicbrainz ncurses nls nodrm nptl nptlonly nsplugin oav ocamlopt odbc offensive ofx ogg openal opengl openmp pam pcre pdf perl pic png ppds pppd pulseaudio python qt qt3 qt3support qt4 quicktime readline reflection samba sasl screen sdl session sharedmem slang smartcard sndfile sox speex spell spl sqlite sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcltk tetex theora threads threadsafe tiff tk truetype unicode usb userlocales utf8 vcd vde vorbis wxwindows x264 xft xml xorg xosd xpm xrandr xscreensaver xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="dummy radeon v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Guenther Brunthaler 2009-04-26 14:36:33 UTC
Some information about what I have got installed:

$ equery list dev-java/java-config-wrapper
[ Searching for package 'java-config-wrapper' in 'dev-java' among: ]
 * installed packages
[I--] [  ] dev-java/java-config-wrapper-0.15 (0)
$ equery list jdk
[ Searching for package 'jdk' in all categories among: ]
 * installed packages
[I--] [  ] dev-java/sun-jdk-1.6.0.13 (1.6)
[I--] [  ] virtual/jdk-1.6.0 (1.6)
Comment 3 Guenther Brunthaler 2009-04-26 14:40:30 UTC
Regarding my USE flag settings, one might note I have enabled "java6" but not "java" on a global level.

The reason is that I do not want any JAVA-support at all for packages where it is optional unless I override this on a per-package level.

But if a package requires JAVA anyway and has special support for jdk-1.6, I want the package to make use of it.

I hope that is consistent with the intended use of the "java" and "java6" USE flags.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-26 14:44:21 UTC
This problem should be fixed with dev-java/java-config-wrapper-0.16
Comment 5 Guenther Brunthaler 2009-04-26 14:46:30 UTC
I also have OOO installed and get build failures when it tries to compile the reportbuilder and htmlsoff components (see bug 267481).

Perhaps there is a connection?

Does OOO require a generation-1 VM?

However, in this case the dependency information in the ebuild would seem to be broken, because "equery depends" did not report such a dependency (see the first posting).
Comment 6 Guenther Brunthaler 2009-04-26 14:50:58 UTC
(In reply to comment #4)
> This problem should be fixed with dev-java/java-config-wrapper-0.16

Oh, thanks for the swift response!

I'll be happy emerging java-config-wrapper-0.16 ASAP.

Shall we close the bug now (as "LATER" or "REMIND") or wait until 0.16 is marked stable?
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-26 14:57:12 UTC
(In reply to comment #6)
> Shall we close the bug now (as "LATER" or "REMIND") or wait until 0.16 is
> marked stable?

I already reassigned this bug to the java herd. So just let them decide what to do on this this bug next :)
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2009-04-26 18:09:54 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Shall we close the bug now (as "LATER" or "REMIND") or wait until 0.16 is
> > marked stable?
> 
> I already reassigned this bug to the java herd. So just let them decide what to
> do on this this bug next :)
> 

The requirement for having generation 1 installed will be lifted when 0.16 has been in the tree for a month. There is nothing to change in the code so marking as INVALID (having a generation 1 vm installed has been a requirement so far).
Comment 9 Guenther Brunthaler 2009-04-26 18:27:40 UTC
(In reply to comment #8)

> The requirement for having generation 1 installed will be lifted when 0.16 has
> been in the tree for a month. There is nothing to change in the code so marking
> as INVALID (having a generation 1 vm installed has been a requirement so far).

OK, I see.

But there is still a bug to be fixed: If 0.15 requires a generation-1 VM to be installed, then it is obviously missing a related dependency entry in the ebuild!

Otherwise my system could hardly be up-to-date with respect to

$ emerge -avuDN --with-bdeps=y world

as it currently is, without a generation-1 VM being installed!
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-04-26 18:58:34 UTC
Some people did not like the dependency, because it's only needed to build gen-1 ebuilds. There are no such ebuilds in the tree anymore, so simply ignore the error. It has nothing to do with OOo also.

*** This bug has been marked as a duplicate of bug 176781 ***
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2009-04-26 19:01:54 UTC
(In reply to comment #10)
> Some people did not like the dependency, because it's only needed to build
> gen-1 ebuilds. There are no such ebuilds in the tree anymore, so simply ignore
> the error. It has nothing to do with OOo also.
> 

Actually people did not like eclasses forcing it for stuff that was optional under the java use flag (we did not have java-pkg-opt-2 like support in the generation 1 eclasses).