rxtx: update to the latest Debian patchset
PATCH 1/2 rxtx: update to the latest Debian patchset
Update the recipe to apply all patches available fromgit://anonscm.debian.org/pkg-java/rxtx.git as of a4cd13e04254cea7842df2e30e9d12e9765a3ef9.
Signed-off-by Mario Domenech Goulart <[email protected]>
--- .../rxtx/files/MonitorThread-daemon.patch | 66 ++++ .../rxtx/files/fhs_lock_buffer_overflow_fix.patch | 66 ++++ recipes-extended/rxtx/files/fix_snprintf.patch | 399 +++++++++++++++++++++ recipes-extended/rxtx/files/format_security.patch | 112 ++++++ recipes-extended/rxtx/files/kfreebsd_port.patch | 7 + recipes-extended/rxtx/files/usb_38400.patch | 68 ++++ recipes-extended/rxtx/rxtx_2.2.0.bb | 7 +- 7 files changed, 724 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/rxtx/files/MonitorThread-daemon.patch create mode 100644 recipes-extended/rxtx/files/fhs_lock_buffer_overflow_fix.patch create mode 100644 recipes-extended/rxtx/files/fix_snprintf.patch create mode 100644 recipes-extended/rxtx/files/format_security.patch create mode 100644 recipes-extended/rxtx/files/usb_38400.patch
recipes-extended/rxtx/files/MonitorThread-daemon.patch new file +66 -0
@@ -0,0 +1,66 @@ +Description: Threads created in Java by RXTX are not marked as daemon. +Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674975 +Author: Christopher Wellons <[email protected]> +Upstream-Status: Pending +--- a/src/gnu/io/I2C.java ++++ b/src/gnu/io/I2C.java +@@ -468,7 +468,9 @@ + private boolean BI=false; + private boolean Data=false; + private boolean Output=false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() { + eventLoop(); + } +--- a/src/gnu/io/LPRPort.java ++++ b/src/gnu/io/LPRPort.java +@@ -366,7 +366,9 @@ + { + private boolean monError = false; + private boolean monBuffer = false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() + { + eventLoop(); +--- a/src/gnu/io/RS485.java ++++ b/src/gnu/io/RS485.java +@@ -465,7 +465,9 @@ + private boolean BI=false; + private boolean Data=false; + private boolean Output=false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() { + eventLoop(); + } +--- a/src/gnu/io/RXTXPort.java ++++ b/src/gnu/io/RXTXPort.java +@@ -1629,6 +1629,7 @@ + + MonitorThread() + { ++ setDaemon(true); + if (debug) + z.reportln( "RXTXPort:MontitorThread:MonitorThread()"); + } +--- a/src/gnu/io/Raw.java ++++ b/src/gnu/io/Raw.java +@@ -466,7 +466,9 @@ + private boolean BI=false; + private boolean Data=false; + private boolean Output=false; +- MonitorThread() { } ++ MonitorThread() { ++ setDaemon(true); ++ } + public void run() { + eventLoop(); + }
recipes-extended/rxtx/files/fhs_lock_buffer_overflow_fix.patch new file +66 -0
66 lines not on this page · raw message
recipes-extended/rxtx/files/fix_snprintf.patch new file +399 -0
399 lines not on this page · raw message
recipes-extended/rxtx/files/format_security.patch new file +112 -0
112 lines not on this page · raw message
recipes-extended/rxtx/files/kfreebsd_port.patch +7 -0
@@ -1,7 +1,14 @@ Description: 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 Author: Scott Howard <[email protected]> +Upstream-Status: Pending Index: rxtx/src/RS485Imp.c ===================================================================
recipes-extended/rxtx/files/usb_38400.patch new file +68 -0
68 lines not on this page · raw message
recipes-extended/rxtx/rxtx_2.2.0.bb +6 -1
@@ -13,7 +13,12 @@ SRC_URI = "http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip \ file://sys_io_h_check.patch \ file://port_to_hurd.patch \ file://multiple_property_dirs.patch \ - file://uninstall_target.patch" + file://uninstall_target.patch \ + file://fhs_lock_buffer_overflow_fix.patch \ + file://MonitorThread-daemon.patch \ + file://usb_38400.patch \ + file://fix_snprintf.patch \ + file://format_security.patch" SRC_URI[md5sum] = "7eedb18e3f33a427e2b0e9be8ce3f94c" SRC_URI[sha256sum] = "3c30373e760f444def3650c76c5a00ae12fb1d860ec008750d084f4880495b03"
Signature · 1 line
2.1.4
PATCH 2/2 rxtx: add patch to support i.MX serial ports
Support for /dev/ttymxc* devices.
Signed-off-by Mario Domenech Goulart <[email protected]>
--- .../0001-Support-Freescale-i.MX-serial-ports.patch | 27 ++++++++++++++++++++++ recipes-extended/rxtx/rxtx_2.2.0.bb | 3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/rxtx/files/0001-Support-Freescale-i.MX-serial-ports.patch
recipes-extended/rxtx/files/0001-Support-Freescale-i.MX-serial-ports.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 9295c8c954c28f30d90f7521048be17790ddb878 Mon Sep 17 00:00:00 2001 +From: Mario Domenech Goulart <[email protected]> +Date: Mon, 9 Mar 2015 16:18:12 -0300 +Subject: [PATCH] Support Freescale i.MX serial ports +Organization: O.S. Systems Software LTDA. + +Signed-off-by: Mario Domenech Goulart <[email protected]> +Upstream-Status: Pending +--- + src/gnu/io/RXTXCommDriver.java | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/gnu/io/RXTXCommDriver.java b/src/gnu/io/RXTXCommDriver.java +index 16225dc..4cadd03 100644 +--- a/src/gnu/io/RXTXCommDriver.java ++++ b/src/gnu/io/RXTXCommDriver.java +@@ -612,6 +612,7 @@ public class RXTXCommDriver implements CommDriver + "ttyH", // linux Chase serial card + "ttyI", // linux virtual modems + "ttyL", // linux SDL RISCom serial card ++ "ttymxc", // linux Freescale i.MX serial card + "ttyM", // linux PAM Software's multimodem boards + // linux ISI serial card + "ttyMX",// linux Moxa Smart IO cards +-- +2.1.4 +
recipes-extended/rxtx/rxtx_2.2.0.bb +2 -1
@@ -18,7 +18,8 @@ SRC_URI = "http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2.zip \ file://MonitorThread-daemon.patch \ file://usb_38400.patch \ file://fix_snprintf.patch \ - file://format_security.patch" + file://format_security.patch \ + file://0001-Support-Freescale-i.MX-serial-ports.patch" SRC_URI[md5sum] = "7eedb18e3f33a427e2b0e9be8ce3f94c" SRC_URI[sha256sum] = "3c30373e760f444def3650c76c5a00ae12fb1d860ec008750d084f4880495b03"
Signature · 1 line
2.1.4