Date: Mon, 8 Sep 2008 14:33:15 -0500 From: Zach Metzinger <zmetzing@pobox.com> To: freebsd-ports@freebsd.org Subject: ports patch for comm/rxtx Message-ID: <20080908193315.GA22691@raster>
next in thread | raw e-mail | index | archive | help
Hi- The configure and configure.in files for comm/rxtx are broken when using java/jdk16. Two patches, below, fix this problem. The actual credit for figuring this out belongs to netbeans at gatworks.com. I just created patches to fix the issue. Unpatched, the port does not indicate an error, but the installation fails (no files installed). If installed by hand at this point, programs using rxtx fail due to: java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String; thrown while loading gnu.io.RXTXCommDriver --- Zach *** configure+ Mon Sep 8 14:22:44 2008 --- configure Mon Sep 8 14:23:16 2008 *************** *** 21611,21617 **** TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" case $JAVA_VERSION in ! 1.2*|1.3*|1.4*|1.5*) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" --- 21611,21617 ---- TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" case $JAVA_VERSION in ! 1.2*|1.3*|1.4*|1.5*|1.6*) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" *** configure.in+ Mon Sep 8 14:22:51 2008 --- configure.in Mon Sep 8 14:23:25 2008 *************** *** 533,539 **** TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" case $JAVA_VERSION in ! 1.2*|1.3*|1.4*|1.5*) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" --- 533,539 ---- TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" case $JAVA_VERSION in ! 1.2*|1.3*|1.4*|1.5*|1.6*) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080908193315.GA22691>