summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-09-16 02:05:11 +0100
committerSam James <sam@gentoo.org>2021-09-16 02:17:33 +0100
commitd0d32526c2f5a421da0d79cd55d287bab06e260a (patch)
tree1502a57e889ae9d39527a2329ba668fd1b3d4cc5 /dev-libs/libserialport/files
parentsys-apps/busybox: add 1.34.0 (diff)
downloadgentoo-d0d32526c2f5a421da0d79cd55d287bab06e260a.tar.gz
gentoo-d0d32526c2f5a421da0d79cd55d287bab06e260a.tar.bz2
gentoo-d0d32526c2f5a421da0d79cd55d287bab06e260a.zip
dev-libs/libserialport: add patch for runtime breakage w/ new kernels
Closes: https://bugs.gentoo.org/813273 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libserialport/files')
-rw-r--r--dev-libs/libserialport/files/libserialport-0.1.1-kernel-termiox.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/libserialport/files/libserialport-0.1.1-kernel-termiox.patch b/dev-libs/libserialport/files/libserialport-0.1.1-kernel-termiox.patch
new file mode 100644
index 000000000000..8a8aed26a31d
--- /dev/null
+++ b/dev-libs/libserialport/files/libserialport-0.1.1-kernel-termiox.patch
@@ -0,0 +1,32 @@
+https://sigrok.org/gitweb/?p=libserialport.git;a=commitdiff;h=6f9b03e597ea7200eb616a4e410add3dd1690cb1
+https://sigrok.org/bugzilla/show_bug.cgi?id=1687
+https://bugs.gentoo.org/813273
+
+Fixes runtime breakage with newer kernels.
+
+From: Karl Palsson <karlp@etactica.com>
+Date: Fri, 11 Jun 2021 17:07:09 +0000
+Subject: [PATCH] HACK: don't even check for termiox
+
+termiox was removed from linux in e0efb3168d34
+Some more information available in https://www.spinics.net/lists/linux-serial/msg41926.html
+
+Attempting to use the termiox ioctls on more modern kernels results in
+"Inappropriate IOCTL" errors.
+
+While the "right" solution might be to remove the termiox code from the
+linux path, simply not checking for termiox builds a libserialport that
+functions on modern linux kernels.
+
+Signed-off-by: Karl Palsson <karlp@etactica.com>
+--- a/configure.ac
++++ b/configure.ac
+@@ -112,7 +112,7 @@ AC_SYS_LARGEFILE
+ AC_TYPE_SIZE_T
+
+ # Check for specific termios structures.
+-AC_CHECK_TYPES([struct termios2, struct termiox],,,
++AC_CHECK_TYPES([struct termios2],,,
+ [[#include <linux/termios.h>]])
+ AC_CHECK_MEMBERS([struct termios.c_ispeed, struct termios.c_ospeed,
+ struct termios2.c_ispeed, struct termios2.c_ospeed],,,