I try to install the port audio/tuxguitar. This port depends on java.
myhost# portmaster /usr/ports/audio/tuxguitar
I think this means that the default JDK of this port is now deprecated. So i installed one of the recommended alternatives:
myhost# pkg_info | grep -i jdk
The handbook sounds like i can select the java port by inserting the following line into /etc/make.conf:
But I still get the same error. I took a look at /usr/ports/Mk/bsd.java.mk and found the debug-java target. When i try it inside the directory of the tuxguitar port I get the following:
Obviously my attept to select the openjdk7 port failed. What did I wrong? How do I fix it?
Maybe my understanding of this configuration process is wrong. I can read simple makefiles but bsd.java.mk contains too much voodoo.
myhost# portmaster /usr/ports/audio/tuxguitar
Code:
...
===>>> Port directory: /usr/ports/textproc/dom4j
===>>> Launching 'make checksum' for textproc/dom4j in background
===> No options to configure
===>>> Gathering dependency list for textproc/dom4j from ports
===>>> Initial dependency check complete for textproc/dom4j
===>>> Continuing initial dependency check for devel/itext
===>>> Initial dependency check complete for devel/itext
===>>> Continuing initial dependency check for audio/tuxguitar
===>>> Launching child to install java/diablo-jdk16
===>>> audio/tuxguitar >> java/diablo-jdk16 (14/14)
===>>> Port directory: /usr/ports/java/diablo-jdk16
===>>> This port is marked DEPRECATED
===>>> Outdated, consider using openjdk6 or openjdk7
===>>> If you are sure you can build it, remove the
DEPRECATED line in the Makefile and try again.
===>>> Update for java/diablo-jdk16 failed
===>>> Aborting update
Terminated
Terminated
Terminated
Terminated
Terminated
I think this means that the default JDK of this port is now deprecated. So i installed one of the recommended alternatives:
myhost# pkg_info | grep -i jdk
Code:
bootstrap-openjdk-r306764 Oracle's Java 6 virtual machine release under the GPL v2
openjdk-7.9.05_1 Java Development Kit 7
The handbook sounds like i can select the java port by inserting the following line into /etc/make.conf:
Code:
JAVA_PORT='java/openjdk7'
But I still get the same error. I took a look at /usr/ports/Mk/bsd.java.mk and found the debug-java target. When i try it inside the directory of the tuxguitar port I get the following:
Code:
myhost# make java-debug
# User specified parameters:
JAVA_VERSION= 1.5+ (1.5 1.6 1.7)
JAVA_OS= (native linux)
JAVA_VENDOR= freebsd bsdjava sun (freebsd bsdjava sun)
JAVA_BUILD= jdk
JAVA_RUN= jre
JAVA_EXTRACT=
# JDK port dependency selection process:
_JAVA_PORTS_POSSIBLE= JAVA_PORT_NATIVE_FREEBSD_JDK_1_6 JAVA_PORT_NATIVE_FREEBSD_JDK_1_5 JAVA_PORT_NATIVE_BSDJAVA_JDK_1_6 JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 JAVA_PORT_LINUX_SUN_JDK_1_7 JAVA_PORT_LINUX_SUN_JDK_1_6 JAVA_PORT_LINUX_SUN_JDK_1_5
_JAVA_PORTS_INSTALLED= JAVA_PORT_NATIVE_OPENJDK_JDK_1_7
_JAVA_PORTS_INSTALLED_POSSIBLE=
_JAVA_PORT= JAVA_PORT_NATIVE_FREEBSD_JDK_1_6
_JAVA_PORT_INFO= PORT=java/diablo-jdk16 HOME=/usr/local/diablo-jdk1.6.0 VERSION=1.6.0 OS=native VENDOR=freebsd
# Selected JDK port:
JAVA_PORT= java/diablo-jdk16
JAVA_HOME= /usr/local/diablo-jdk1.6.0
JAVA_PORT_VERSION= 1.6.0
JAVA_PORT_OS= native (Native)
JAVA_PORT_VENDOR= freebsd (FreeBSD Foundation)
# Additional variables:
JAVAC= /usr/local/diablo-jdk1.6.0/bin/javac
JAVA_CLASSES= /usr/local/diablo-jdk1.6.0/jre/lib/rt.jar
sternmull# JAVA_PORT=java/openjdk7 make java-debug
JAVA_PORT=java/openjdk7: Command not found.
sternmull# bash JAVA_PORT=java/openjdk7 make java-debug
bash: JAVA_PORT=java/openjdk7: No such file or directory
sternmull# JAVA_PORT=java/openjdk7 make java-debug
sternmull# make java-debug
# User specified parameters:
JAVA_VERSION= 1.5+ (1.5 1.6 1.7)
JAVA_OS= (native linux)
JAVA_VENDOR= freebsd bsdjava sun (freebsd bsdjava sun)
JAVA_BUILD= jdk
JAVA_RUN= jre
JAVA_EXTRACT=
# JDK port dependency selection process:
_JAVA_PORTS_POSSIBLE= JAVA_PORT_NATIVE_FREEBSD_JDK_1_6 JAVA_PORT_NATIVE_FREEBSD_JDK_1_5 JAVA_PORT_NATIVE_BSDJAVA_JDK_1_6 JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 JAVA_PORT_LINUX_SUN_JDK_1_7 JAVA_PORT_LINUX_SUN_JDK_1_6 JAVA_PORT_LINUX_SUN_JDK_1_5
_JAVA_PORTS_INSTALLED= JAVA_PORT_NATIVE_OPENJDK_JDK_1_7
_JAVA_PORTS_INSTALLED_POSSIBLE=
_JAVA_PORT= JAVA_PORT_NATIVE_FREEBSD_JDK_1_6
_JAVA_PORT_INFO= PORT=java/diablo-jdk16 HOME=/usr/local/diablo-jdk1.6.0 VERSION=1.6.0 OS=native VENDOR=freebsd
# Selected JDK port:
JAVA_PORT= java/diablo-jdk16
JAVA_HOME= /usr/local/diablo-jdk1.6.0
JAVA_PORT_VERSION= 1.6.0
JAVA_PORT_OS= native (Native)
JAVA_PORT_VENDOR= freebsd (FreeBSD Foundation)
# Additional variables:
JAVAC= /usr/local/diablo-jdk1.6.0/bin/javac
JAVA_CLASSES= /usr/local/diablo-jdk1.6.0/jre/lib/rt.jar
Obviously my attept to select the openjdk7 port failed. What did I wrong? How do I fix it?
Maybe my understanding of this configuration process is wrong. I can read simple makefiles but bsd.java.mk contains too much voodoo.