Package: rxtx / 2.2.0+dfsg-2

Metadata

Package Version Patches format
rxtx 2.2.0+dfsg-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
zsystem_init_exception.patch | (download)

src/gnu/io/RXTXPort.java | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 print exception if initialization fails
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472053
kfreebsd_port.patch | (download)

CNI/SerialImp.c | 8 4 + 4 - 0 !
CNI/SerialImp.h | 6 3 + 3 - 0 !
src/I2CImp.c | 10 5 + 5 - 0 !
src/ParallelImp.c | 6 3 + 3 - 0 !
src/RS485Imp.c | 10 5 + 5 - 0 !
src/RawImp.c | 8 4 + 4 - 0 !
src/SerialImp.c | 8 4 + 4 - 0 !
src/SerialImp.cpp | 4 2 + 2 - 0 !
src/SerialImp.h | 4 2 + 2 - 0 !
9 files changed, 32 insertions(+), 32 deletions(-)

 defines freebsd for kfreebsd systems, also makes sure kfreebsd is set to use fhs

#grep -r -H "__FreeBSD" . -m 1 --exclude=*.patch --exclude-dir=.git | cut -d: -f1 | xargs sed -i s/__FreeBSD__/__FreeBSD_kernel__/

#grep -r -H "ifdef __linux__" . -m 1 --exclude=*.patch --exclude-dir=.git | cut -d: -f1 | xargs sed -i s/'#ifdef __linux__'/'#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)'/

#grep -r -H "ifndef __linux__" . -m 1 --exclude=*.patch --exclude-dir=.git | cut -d: -f1 | xargs sed -i s/'#ifndef __linux__'/'#if !defined(__linux__) \&\& !defined(__GNU__) \&\& !defined(__GLIBC__)'/

Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585089
ttyACM_port.patch | (download)

src/gnu/io/RXTXCommDriver.java | 13 0 + 13 - 0 !
1 file changed, 13 deletions(-)

 allows for the enumeration of many additional ports, including ttyacm for arduino unos
original_debian_changes.patch | (download)

Makefile.am | 3 2 + 1 - 0 !
src/I2CImp.c | 2 2 + 0 - 0 !
src/RS485Imp.c | 2 2 + 0 - 0 !
src/RawImp.c | 2 2 + 0 - 0 !
src/SerialImp.c | 2 2 + 0 - 0 !
src/SerialImp.cpp | 2 2 + 0 - 0 !
6 files changed, 12 insertions(+), 1 deletion(-)

 removes makefile install of rxtxcomm.jar, silences an unnecessary compiling error
kfreebsd_libpthread.patch | (download)

configure.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 libc_r is not available, use libpthread
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585089
sys_io_h_check.patch | (download)

configure.in | 1 1 + 0 - 0 !
src/RawImp.c | 8 3 + 5 - 0 !
2 files changed, 4 insertions(+), 5 deletions(-)

 sys/io.h does not exist on all systems
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609152
port_to_hurd.patch | (download)

src/SerialImp.h | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 defines __gnu__ to use the fhs
multiple_property_dirs.patch | (download)

src/SerialImp.c | 14 9 + 5 - 0 !
src/SerialImp.h | 8 4 + 4 - 0 !
src/gnu/io/RXTXCommDriver.java | 63 42 + 21 - 0 !
3 files changed, 55 insertions(+), 30 deletions(-)

 handles the case when "java.ext.dirs" system property contains
 more than one directory.
uninstall_target.patch | (download)

Makefile.am | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 adds uninstall target to makefile
fhs_lock_buffer_overflow_fix.patch | (download)

CNI/SerialImp.c | 2 1 + 1 - 0 !
src/SerialImp.c | 4 2 + 2 - 0 !
src/lfd/lockdaemon.c | 2 1 + 1 - 0 !
src/lfd/lockdaemon.c.noinetd | 2 1 + 1 - 0 !
4 files changed, 5 insertions(+), 5 deletions(-)

 java fails with a buffer overflow when there's a locked serial
device, see http://mailman.qbang.org/pipermail/rxtx/2009-May/10897125.html.
MonitorThread daemon.patch | (download)

src/gnu/io/I2C.java | 4 3 + 1 - 0 !
src/gnu/io/LPRPort.java | 4 3 + 1 - 0 !
src/gnu/io/RS485.java | 4 3 + 1 - 0 !
src/gnu/io/RXTXPort.java | 1 1 + 0 - 0 !
src/gnu/io/Raw.java | 4 3 + 1 - 0 !
5 files changed, 13 insertions(+), 4 deletions(-)

---
usb_38400.patch | (download)

src/SerialImp.c | 16 11 + 5 - 0 !
1 file changed, 11 insertions(+), 5 deletions(-)

 the following patch should fix the reported issue.
 .
 On serial ports not supporting the TIOCGSERIAL/TIOCSSERIAL mechanism,
 this still means that the custom baud rates do not work, but at least
 38400 works, again.
 .
 Perhaps an even better fix would be switching to the newer termios2 API,
 as described here:
 https://mail.python.org/pipermail/python-list/2012-October/633871.html
 .
 That API allows setting custom baud rates on the USB serial adapters I
 have tested, where TIOCGSERIAL/TIOCSSERIAL was not supported.
 .
 But unfortunately, termios2 is not available through glibc, so one would
 need to call linux-specific ioctls directly, which wouldn't be portable
 at all, and I don't know how it interacts with the BSD / Hurd ports.
 .
 Therefore this is the minimal fix, for now.


fix_snprintf.patch | (download)

src/SerialImp.c | 28 19 + 9 - 0 !
src/lfd/lockdaemon.c | 49 33 + 16 - 0 !
src/lfd/lockdaemon.c.noinetd | 40 27 + 13 - 0 !
3 files changed, 79 insertions(+), 38 deletions(-)

 replace s[n]printf with asprintf/free
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731151


format_security.patch | (download)

CNI/SerialImp.c | 8 4 + 4 - 0 !
src/ParallelImp.c | 4 2 + 2 - 0 !
src/SerialImp.c | 8 4 + 4 - 0 !
src/SerialImp.cpp | 2 1 + 1 - 0 !
4 files changed, 11 insertions(+), 11 deletions(-)

 use format specifiers in fprintf statements for hardening flags


privacy breach.patch | (download)

RMISecurityManager.html | 8 3 + 5 - 0 !
1 file changed, 3 insertions(+), 5 deletions(-)

 privacy breach

Fix various Lintian warnings about privacy breach.
java10 compatibility.patch | (download)

Makefile.am | 5 0 + 5 - 0 !
configure.in | 2 1 + 1 - 0 !
2 files changed, 1 insertion(+), 6 deletions(-)

 fixes the build failure with java 10