Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180474 - www-servers/tomcat conf.d GENTOO_VM not exported
Summary: www-servers/tomcat conf.d GENTOO_VM not exported
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: William L. Thomson Jr. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-31 17:24 UTC by John J. Aylward
Modified: 2007-05-31 23:02 UTC (History)
1 user (show)

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 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.