Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109545 - blackdown-jdk not updating $PATH and $ROOTPATH after upgrading
Summary: blackdown-jdk not updating $PATH and $ROOTPATH after upgrading
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 02:35 UTC by Paulo Aragao
Modified: 2007-02-03 11:02 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 Paulo Aragao 2005-10-17 02:35:34 UTC
Blackdown-jdk-1.4.2.02 is not updating the $PATH and $ROOTPATH environment when
being upgraded from Blackdown-jdk-1.4.2.01. 
I've found that out during 'emerge --update world'. Sys-libs/db failed to emerge
because it could not find javac executable. After looking in the $PATH I've seen
that blackdown-jdk was still version 1.4.2.01 instead of 1.4.2.02, which was the
new one 'emerge --update world' had already emerged. After changing, manually,
the $PATH and $ROOTPATH, 'emerge --update world' was able to continue.

Reproducible: Always
Steps to Reproduce:
1. emerge "=dev-java/blackdown-jdk-1.4.2.01-r2"
2. emerge blackdown-jdk (so it will upgrade from 1.4.2.01-r2 to 1.4.2.02)
3. Check the $PATH and $ROOTPATH (/etc/profile.env)

Actual Results:  
The $PATH and $ROOTPATH was not updated. It keeps showing
/opt/blackdown-jdk-1.4.2.01/bin and /opt/blackdown-jdk-1.4.2.01/jre/bin instead
of the new one.

Expected Results:  
The $PATH and $ROOTPATH should have been updated to include
/opt/blackdown-jdk-1.4.2.02/bin and /opt/blackdown-jdk-1.4.2.02/jre/bin instead
keep on using /opt/blackdown-1.4.2.01/bin and /opt/blackdown-jdk-1.4.2.01/jre/bin
Comment 1 Paulo Aragao 2005-10-17 02:46:13 UTC
> Blackdown-jdk-1.4.2.02 is not updating the $PATH and $ROOTPATH environment when
> being upgraded from Blackdown-jdk-1.4.2.01. 
> I've found that out during 'emerge --update world'. Sys-libs/db failed to emerge
> because it could not find javac executable. After looking in the $PATH I've seen
> that blackdown-jdk was still version 1.4.2.01 instead of 1.4.2.02, which was the
> new one 'emerge --update world' had already emerged. After changing, manually,
> the $PATH and $ROOTPATH, 'emerge --update world' was able to continue.
> 
> Reproducible: Always
> Steps to Reproduce:
> 1. emerge "=dev-java/blackdown-jdk-1.4.2.01-r2"
> 2. emerge blackdown-jdk (so it will upgrade from 1.4.2.01-r2 to 1.4.2.02)
> 3. Check the $PATH and $ROOTPATH (/etc/profile.env)
> 
> Actual Results:  
> The $PATH and $ROOTPATH was not updated. It keeps showing
> /opt/blackdown-jdk-1.4.2.01/bin and /opt/blackdown-jdk-1.4.2.01/jre/bin instead
> of the new one.
> 
> Expected Results:  
> The $PATH and $ROOTPATH should have been updated to include
> /opt/blackdown-jdk-1.4.2.02/bin and /opt/blackdown-jdk-1.4.2.02/jre/bin instead
> keep on using /opt/blackdown-1.4.2.01/bin and /opt/blackdown-jdk-1.4.2.01/jre/bin

(In reply to comment #0)
> Blackdown-jdk-1.4.2.02 is not updating the $PATH and $ROOTPATH environment when
> being upgraded from Blackdown-jdk-1.4.2.01. 
> I've found that out during 'emerge --update world'. Sys-libs/db failed to emerge
> because it could not find javac executable. After looking in the $PATH I've seen
> that blackdown-jdk was still version 1.4.2.01 instead of 1.4.2.02, which was the
> new one 'emerge --update world' had already emerged. After changing, manually,
> the $PATH and $ROOTPATH, 'emerge --update world' was able to continue.
> 
> Reproducible: Always
> Steps to Reproduce:
> 1. emerge "=dev-java/blackdown-jdk-1.4.2.01-r2"
> 2. emerge blackdown-jdk (so it will upgrade from 1.4.2.01-r2 to 1.4.2.02)
> 3. Check the $PATH and $ROOTPATH (/etc/profile.env)
> 
> Actual Results:  
> The $PATH and $ROOTPATH was not updated. It keeps showing
> /opt/blackdown-jdk-1.4.2.01/bin and /opt/blackdown-jdk-1.4.2.01/jre/bin instead
> of the new one.
> 
> Expected Results:  
> The $PATH and $ROOTPATH should have been updated to include
> /opt/blackdown-jdk-1.4.2.02/bin and /opt/blackdown-jdk-1.4.2.02/jre/bin instead
> keep on using /opt/blackdown-1.4.2.01/bin and /opt/blackdown-jdk-1.4.2.01/jre/bin

Should run 'env-update && source /etc/profile' after the emerge, but it is not
what happens. Sometimes the $PATH and $ROOTPATH is upgraded, but the environment
still has the old $PATH. During the 'emerge --update world' that makes other
packages which depends on JAVA executables to fail.(In reply to comment #0)
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-02-03 11:02:13 UTC
With the generation 2 setup, we don't need to change $PATH or $ROOTPATH any more as we install wrappers to /usr/bin.