ports/152883: rxtx incorrect patch for
Bob Frazier
bobf at mrp3.com
Tue Dec 7 06:20:08 UTC 2010
>Number: 152883
>Category: ports
>Synopsis: rxtx incorrect patch for
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 07 06:20:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Bob Frazier
>Release: 7.3-RELEASE
>Organization:
S.F.T. Inc.
>Environment:
FreeBSD BSDSilver.SFT.local 7.3-STABLE FreeBSD 7.3-STABLE #12: Tue Nov 23 20:43:00 PST 2010 root at BSDSilver.SFT.local:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
current FreeBSD patch for rxtx causes duplication of comm devices /dev/ttyD* in the list of available devices, and incorrectly excludes /dev/ttyU* devices. The exsting patch file patch-RXTXCommDriver.java apparently has a typographical error. The attached 'diff' output indicates the correction to the patch file.
>How-To-Repeat:
install comms/rxtx, use a java application (such as devel/arduino) to enumerate available comm ports using the rxtx library, and note the following:
a) absence of /dev/ttyU* com ports
b) doubling of /dev/ttyD* com ports
on a related note, attempting to select one of the 'doubled' ports in devel/arduino causes both of the duplicate entries to be 'checked' in the menu, and then causes a lock violation when you attempt to do I/O.
>Fix:
see attached 'diff' file indicating how the patch file needs to be modified
Patch attached with submission follows:
--- files/patch-RXTXCommDriver.java.orig 2010-12-02 23:42:29.000000000 -0800
+++ files/patch-RXTXCommDriver.java 2010-12-02 23:42:56.000000000 -0800
@@ -12,11 +12,11 @@
String[] Temp = {
"ttyd", //general purpose serial ports
"cuaa", //dialout serial ports
+ "ttyu", //general purpose serial ports (uart)
+ "cuau", //dialout serial ports (uart)
-+ "ttyD", //USB serial ports
++ "ttyU", //USB serial ports
+ "cuaU", //USB dial in serial ports
"ttyA", //Specialix SI/XIO dialin ports
"cuaA", //Specialix SI/XIO dialout ports
"ttyD", //Digiboard - 16 dialin ports
"cuaD", //Digiboard - 16 dialout ports
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list