[Lel3_user] j2re-1.4.2-6.1: /etc/profile.d/java.sh overwrites PATH
Bill Thompson
lel3_user@www.raimokoski.com
Thu, 03 Jun 2004 12:54:26 -0700
--=-TO2+ehJm3p2y2CSHGTXa
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Folks,
If you have grabbed the latest j2re-1.4.2-6.1 (Java Runtime)
from DAG, or elsewhere, you may notice your PATH is hosed in
sub-shells. Given the badness produced by this bug, I've
submitted a bug report to Sun.
Since it may take awhile to propagate outward, please
see the following for a description and _my_ fix.
Thanks,
/bill
--=20
William D. "Bill" Thompson, CTO
Libre Business Solutions, Inc.
San Mateo, CA 94403
--Forwarded Message--=20
From: Sun Microsystems <IncidentUpdateDaemon@sun.com>
To: bill@LibreSolutions.com
Subject: Re: (Incident Review ID: 276099) /etc/profile.d/java.sh overwrites=
PATH
Date: Thu, 03 Jun 2004 11:40:28 -0600
Hi Bill Thompson,
Thank you for submitting a bug using our bug submit page.
We have determined that this report is a new bug and entered the bug into o=
ur
internal bug tracking system under Bug Id: 5057118.
-- Report --
category : java
release : 1.4.2
subcategory : install
type : bug
synopsis : /etc/profile.d/java.sh overwrites PATH
description : FULL PRODUCT VERSION :
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
A DESCRIPTION OF THE PROBLEM :
The rpm package command:
# rpm -qf java.sh
j2re-1.4.2-6.1.el3.dag
indicates /etc/profile.d/java.sh is from j2re-1.4.2-6.1.el3 from Dag Wieers=
.
The file in question overwrites the PATH variable against common practice
and producing badness. I have modified as follows:
-- cut here --
JREHOME=3D"/usr/lib/jre/lib/i386"
JAVAWSHOME=3D"/usr/lib/jre/javaws"
# LibreSolutions
#LD_LIBRARY_PATH=3D"::"
if ! echo ${LD_LIBRARY_PATH} | grep -q "::" ; then
LD_LIBRARY_PATH=3D"${LD_LIBRARY_PATH}::"
fi
# LibreSolutions
#PATH=3D"/usr/kerberos/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X=
11R6/bin:/usr/lib/jre/bin"
if ! echo ${PATH} | grep -q "/usr/lib/jre/bin" ; then
PATH=3D${PATH}:/usr/lib/jre/bin
fi
-- cut here --
If you've already fixed this, sorry to bother you.
Thanks,
/bill
--=-TO2+ehJm3p2y2CSHGTXa
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQBAv4HypwXtw2iYSAYRAhzjAJwOX4BEDkq7gXOxHXHwJxa1stK5ngCeOtSH
EN0ph7FfOXAmRVu40C+WlfY=
=q4+S
-----END PGP SIGNATURE-----
--=-TO2+ehJm3p2y2CSHGTXa--