Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97728 - freemind - hardcoded java version in start script
Summary: freemind - hardcoded java version in start script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-02 08:43 UTC by Dominik Diesch
Modified: 2005-07-02 11:29 UTC (History)
2 users (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 Dominik Diesch 2005-07-02 08:43:26 UTC
The ebuilds for all freemind versions are generating a start script that 
have the path to the java executable hardcoded. This means that after 
upgrading to a new java version freemind has to be remerged. 
An escaping backslash before the $ sign and removing the single quotes 
will fix the problem. 
 

Reproducible: Always
Steps to Reproduce:
Comment 1 Rouslan Solomakhin 2005-07-02 09:39:50 UTC
Thanks for taking the time to report this bug. This report isn't very useful
because it doesn't describe the issue well. Please specify the line which needs
to change. If it is possible, provide a patch by using "diff -u original_file
fixed_file".
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-07-02 11:25:31 UTC
That should do:

--- freemind-0.7.1-r1.ebuild.old        2005-07-02 20:23:54.000000000 +0200
+++ freemind-0.7.1-r1.ebuild    2005-07-02 20:24:35.000000000 +0200
@@ -33,7 +33,7 @@
 
        echo "#!/bin/sh" > ${PN}.sh
        echo "cd /opt/${PN}" >> ${PN}.sh
-       echo "'${JAVA_HOME}'/bin/java -jar lib/${PN}.jar" >> ${PN}.sh
+       echo "\$(java-config --java) -jar lib/${PN}.jar" >> ${PN}.sh
 
        cp -R ${S}/doc ${D}/opt/${PN}
        use doc && java-pkg_dohtml -r doc/
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2005-07-02 11:29:43 UTC
fixed