Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#22715 - [jre] profile.d/jre.sh broken when jdk.sh is installed
Attached to Project:
Community Packages
Opened by Yun Huang Yong (goosmurf) - Wednesday, 02 February 2011, 08:46 GMT
Last edited by Thomas Dziedzic (tomd123) - Thursday, 03 February 2011, 07:02 GMT
Opened by Yun Huang Yong (goosmurf) - Wednesday, 02 February 2011, 08:46 GMT
Last edited by Thomas Dziedzic (tomd123) - Thursday, 03 February 2011, 07:02 GMT
|
DetailsDescription:
Background - jdk package depends on jre; each installs profile.d/{pkgname}.sh jre.sh contains: --- if [ ! -f /etc/profile.d/jdk.sh ]; then export JAVA_HOME=/opt/java/jre fi --- The issue is, for example, when a rc script sources jre.sh, and the jdk is installed, jre.sh does not set JAVA_HOME. The rc script does not require jdk; but if the user had the jdk installed, then jre.sh has no effect. I suspect the current behaviour is because in the general login case which sources /etc/profile.d/*.sh jre.sh would be sourced after jdk.sh. In this scenario it's desirable not to override JAVA_HOME. To support both behaviours could jre.sh change to: export JAVA_HOME=${JAVA_HOME:-/opt/java/jre} Additional info: jre 6u23-3 |
This task depends upon
Closed by Thomas Dziedzic (tomd123)
Thursday, 03 February 2011, 07:02 GMT
Reason for closing: Implemented
Additional comments about closing: pkgrel 4
Thursday, 03 February 2011, 07:02 GMT
Reason for closing: Implemented
Additional comments about closing: pkgrel 4
if ( ! "$?JAVA_HOME" ) then
setenv JAVA_HOME /opt/java/jre
endif