Package: javahelper Version: 0.72.9 Severity: normal Control: block 864861 by -1 Tags: patch
Despite jh_depends invoked with option "-jheadless", the generated java:Depends contains "default-jre" instead of "default-jre-headless". Looks like jh_depends is rather sloppy: is uses no "set -u" to ensure that there are no undefined variables and no surprise that some variables are used before they are defined... The following patch fixes the problem: ~~~~ --- a/jh_depends +++ b/jh_depends @@ -210,9 +210,9 @@ if [ -n "$WRAPPER" ]; then DEBDEPS="jarwrapper (>=0.5) $DEBDEPS" fi JVMDEPS= - if [ -n "`getarg j jvm`" ] && [ -z "$JVM" ]; then + if [ -n "`getarg j jvm`" ]; then JVM="`getarg j jvm`" fi if [ -n "$WRAPPER" ] && [ -z "$JVM" ]; then ~~~~ By the time when script checks "-j | --jvm" options, $JVM is always defined so removing '&& [ -z "$JVM" ]' condition is required to respect given parameters. Thanks. -- Regards, Dmitry Smirnov --- The truth is incontrovertible, malice may attack it, ignorance may deride it, but in the end; there it is. -- Winston Churchill
signature.asc
Description: This is a digitally signed message part.