Public bug reported:

The protobuf package uses explicit paths to openjdk. Instead it should
use path names and package names  to java wrapper packages.

As an example the ant-wrapper script should be:

#!/bin/sh

JAVA_HOME=`readlink  -f /usr/bin/javac|xargs dirname| xargs dirname`
echo $JAVA_HOME

if [ ! -d "$JAVA_HOME" ]; then
    echo "Can't find java-6-openjdk, please check the build-depends" 1>&2
    exit 1
fi

export JAVA_HOME

# workaround for openjdk bug, see http://bugs.debian.org/491074
export ANT_OPTS="-client"

exec ant "$@"

** Affects: protobuf (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Using java wrapper package instead of explicit java-6-openjdk
https://bugs.launchpad.net/bugs/397287
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to