Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247608 - dev-java/java-config-2.1.6: /usr/bin/gjl bug (reference undefined vms variable) in get_vm function when starting azureus
Summary: dev-java/java-config-2.1.6: /usr/bin/gjl bug (reference undefined vms variabl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 247681 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-19 18:37 UTC by Alec Shaner
Modified: 2009-01-25 04:43 UTC (History)
1 user (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 Alec Shaner 2008-11-19 18:37:32 UTC
When attempting to start net-p2p/azureus-3.0.4.2-r1 as a normal user the following python error is encountered in /usr/bin/gjl:

Traceback (most recent call last):
  File "/usr/bin/gjl", line 302, in <module>
    vm = get_vm(pkg)
  File "/usr/bin/gjl", line 201, in get_vm
    for x in vms:
NameError: global name 'vms' is not defined
Couldn't get needed information

This error occurs while using IBM JDK 1.5.0.8a [ibm-jdk-bin-1.5] as my user VM, it does not occur if I set my vm to sun-jdk-1.6. I could just switch VMs for this program, but looking at the python code it does appear to be a genuine code error.


Reproducible: Always

Steps to Reproduce:
1.Set user vm to IBM JDK 1.5.0.8a [ibm-jdk-bin-1.5]
2.Run azureus from command line (I'm using azureus-3.0.4.2-r1)
3.Look at command line output to see error

Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/gjl", line 302, in <module>
    vm = get_vm(pkg)
  File "/usr/bin/gjl", line 201, in get_vm
    for x in vms:
NameError: global name 'vms' is not defined
Couldn't get needed information

Expected Results:  
Start the azureus program

Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 Intel(R) Core(TM)2 CPU E8400 @ 3.00GHz
Timestamp of tree: Wed, 19 Nov 2008 18:02:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
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.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=nocona -fomit-frame-pointer -pipe"
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/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-Os -march=nocona -fomit-frame-pointer -pipe"
CXXFLAGS="-Os -march=nocona -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 apache2 audiofile bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt cups dbus dri dvdread encode foomaticdb fortran gcj gdbm gif gpm hal iconv imlib ipv6 isdnlog java javamail jpeg ldap libwww midi mikmod mmx motif mp3 mpeg mssql mudflap multilib mysql ncurses nls nptl nptlonly nsplugin odbc ogg opengl openmp oss pam pcre pdf perl png postgres pppd python quicktime rdesktop readline reflection samba sdl session spell spl sse sse2 ssl startup-notification sysfs tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode vhosts vim-syntax vorbis wmp xcomposite xinerama xml xorg xscreensaver xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2008-11-19 20:20:17 UTC
I digged down relevant information from my logs

<neobalam>	Hi! I have a problems running some applicacions (for example Azureus or Frostwire) that uses java. Here I posted an entry http://forums.gentoo.org/viewtopic-p-5264331.html
<Serkan>	neobalam: which python version?
<Betelgeuse>	Serkan: the from thread indicates 2.5
<neobalam>	Serkan: Python 2.5.2
<Serkan>	Betelgeuse: I'm not very good at python but looking at the code there seems to be an undeclared variable
<neobalam>	yes but i don't use python either so it could start when some package ware updated!
<Serkan>	try playing with java-config versions
<Serkan>	I guess that may help.
<neobalam>	java-config?
<neobalam>	how to?
<Serkan>	I mean try the other (older too) versions maybe it helps or maybe I'm looking for the answer in the wrong place.
<neobalam>	ok
<Betelgeuse>	Serkan: yeah the code does seem a bit weird
<Betelgeuse>	neobalam: you should report that to bugs.gentoo.org and then ali_bush can fix it
<Serkan>	see this was the commit http://overlays.gentoo.org/proj/java/changeset/5734
Comment 2 Alistair Bush (RETIRED) gentoo-dev 2008-11-20 10:37:57 UTC
Fix is now in svn,  will test and release soon
Comment 3 Alistair Bush (RETIRED) gentoo-dev 2008-11-20 11:05:46 UTC
*** Bug 247681 has been marked as a duplicate of this bug. ***
Comment 4 Stuart Shelton 2009-01-23 11:59:22 UTC
This is still a problem with dev-java/java-config-2.1.6-r1.

The fix which works for me is:

--- /usr/bin/gjl.dist   2009-01-23 11:56:25.141946781 +0000
+++ /usr/bin/gjl        2009-01-23 11:55:48.115286402 +0000
@@ -194,6 +194,7 @@ def target_matches_any( targets, vm ):
 # Options:
 def get_vm(pkg):
     target, needs_jdk = get_needed_target2(pkg)
+    targets, vms = get_needed_vms(pkg)
 
     if len( needs_jdk ):
         if manager.get_active_vm().name() in needs_jdk:
Comment 5 Alistair Bush (RETIRED) gentoo-dev 2009-01-25 04:43:28 UTC
Fixed in 2.1.7.  will hit tree within a couple of hours.