Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 180474

Summary: www-servers/tomcat conf.d GENTOO_VM not exported
Product: Gentoo Linux Reporter: John J. Aylward <john>
Component: New packagesAssignee: William L. Thomson Jr. (RETIRED) <wltjr>
Status: RESOLVED FIXED    
Severity: trivial CC: java
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John J. Aylward 2007-05-31 17:24:13 UTC
while only a minor change I think it would be helpful if the GENTOO_VM enviroment var was exported from the conf.d file by default (but still commented)

The current conf.d/tomcat-5.5 file has the lines
# Example: GENTOO_VM="sun-jdk-1.5"

#GENTOO_VM="sun-jdk-1.5"


it would be nicer as:
# Example: export GENTOO_VM="sun-jdk-1.5"

#export GENTOO_VM="sun-jdk-1.5"

It took me a while to figure out that the conf.d file was not being sourced within the script and required me to export the var

this should probably be done for other vars in the file as well, or be sure to source the file properly in the init script
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-31 21:57:20 UTC
same for 6.x it seems

alternatively to export, you can alter init script like nelchael did with resin:
        JAVA_HOME=$(java-config -O)
        [ -n "${GENTOO_VM}" ] && JAVA_HOME=$(java-config --select-vm="${GENTOO_VM}" -O)
Comment 2 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-05-31 23:02:23 UTC
Fixed in 5.5.23-r6 and 6.0.13-r3, closing bug.