Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688942 - app-text/languagetool-4.5 cannot launch HTTP server without custom launcher script
Summary: app-text/languagetool-4.5 cannot launch HTTP server without custom launcher s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-29 15:34 UTC by Alex Schaap
Modified: 2019-07-08 22:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
languagetool-4.5 ebuild with additional line for languagetool-server-http launcher (languagetool-4.5.ebuild,1.44 KB, text/plain)
2019-06-29 15:34 UTC, Alex Schaap
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Schaap 2019-06-29 15:34:09 UTC
Created attachment 581400 [details]
languagetool-4.5 ebuild with additional line for languagetool-server-http launcher

I tried to integrate LanguageTool with TeXstudio, but was unable to run LanguageTool's local HTTP server via:

java -cp /usr/share/languagetool/lib/languagetool-server.jar org.languagetool.server.HTTPServer --port 8081

However, it seems to launch via a script with the following contents:

#!/bin/bash
gjl_package=languagetool
gjl_main="org.languagetool.server.HTTPServer"
source /usr/share/java-config-2/launcher/launcher.bash

Therefore, the simplest solution seems to generate such a launcher as per the attached modified ebuild.

Note that this does not allow TeXstudio to launch LanguageTool when it is not running, since it expects an unmodified JAR that it can run via:

java -cp <path-to-LanguageTool> org.languagetool.server.HTTPServer -p 8081

(And the -cp is inserted automatically, and the absence of a path to LanguageTool seems to not run the command, so substituting the 'java' field with languagetool-server-http does not work, nor does distributing the '-p 8081' argument over the class path and arguments fields.)
Comment 1 Larry the Git Cow gentoo-dev 2019-07-08 22:59:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f742ea5fd948b8a9c202c252942132251a6b6ab

commit 4f742ea5fd948b8a9c202c252942132251a6b6ab
Author:     Tim Harder <radhermit@gentoo.org>
AuthorDate: 2019-07-08 22:45:57 +0000
Commit:     Tim Harder <radhermit@gentoo.org>
CommitDate: 2019-07-08 22:58:39 +0000

    app-text/languagetool: version bump to 4.6
    
    Closes: https://bugs.gentoo.org/688878
    Closes: https://bugs.gentoo.org/688942
    Closes: https://bugs.gentoo.org/689200
    
    Signed-off-by: Tim Harder <radhermit@gentoo.org>

 app-text/languagetool/Manifest                   |  1 +
 app-text/languagetool/files/languagetool.desktop | 10 +++
 app-text/languagetool/files/logo.svg             | 14 +++++
 app-text/languagetool/languagetool-4.6.ebuild    | 77 ++++++++++++++++++++++++
 4 files changed, 102 insertions(+)