Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50353 - dev-java/ibm-jdk-bin-1.4.1 does not add its bin directories to PATH effectively
Summary: dev-java/ibm-jdk-bin-1.4.1 does not add its bin directories to PATH effectively
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-07 06:52 UTC by David Baehrens
Modified: 2004-06-19 04:31 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 David Baehrens 2004-05-07 06:52:11 UTC
After a successful merge of dev-java/ibm-jdk-bin-1.4.1, an env-update and a relogin none of the java bin directories is listed in PATH, neither for root nor for users. java-config -J does work for root but not for users. There is a file in /etc/env.d/java which contains settings to ADDPATH, which seem not to be recognized by env-update. Moving this file to /etc/env.d and changing ADDPATH to PATH makes the bin dirs appear in PATH for users, but not root.

Reproducible: Always
Steps to Reproduce:
1. # emerge -avD dev-java/ibm-jdk-bin
2. # env-update && source /etc/profile
3. # java
4. -bash: java: command not found
5. # java-config -J
6. /opt/ibm-jdk-bin-1.4.1/bin/java
7. # su - user
8. $ Traceback (most recent call last):
  File "/usr/bin/java-config", line 123, in ?
    run(option_list)
  File "/usr/bin/java-config", line 43, in run
    func(args)
  File "/usr/lib/python2.3/site-packages/java_config/jc_options.py", line 202, in __call__
    print find_exec('java')
  File "/usr/lib/python2.3/site-packages/java_config/jc_util.py", line 96, in find_exec
    exec_0 = JAVA_HOME+'/bin/'+exe
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Actual Results:  
java, javac, ... are not in PATH

Expected Results:  
java, javac, ... are in PATH

Gentoo Base System version 1.4.10
Portage 2.0.50-r6 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24-ppc-r2)
=================================================================
System uname: 2.4.24-ppc-r2 ppc 740/750
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/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/lib/pbbuttons 
/var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.
ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.
nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acl alsa bidi cdr crypt cscope cups directfb dvd emacs encode 
fbcon flac foomaticdb gdbm ggi gif gnome-libs gpm gtk gtk2 guile imap imlib java 
javascript jikes jpeg libwww mad maildir mikmod mitshm motif mozilla mule 
ncurses nls oggvorbis opengl operanom2 oss pam perl png ppc python qt readline 
sdl slang spell ssl tcltk tcpd tetex theora tiff truetype unicode usb 
video_cards_mach64 vim-with-x xface xgetdefault xinerama xml xml2 xmms xv zlib"
Comment 1 Jochen Maes (RETIRED) gentoo-dev 2004-06-19 04:31:28 UTC
David, this has been solved on ppc and should work on x86 now also...

so i'll close this bug, however if necesarry you can reopen it if it shouldn't be sufficient... (i'd doubt that because java works now :p))


greets

SeJo