Skip to contentSkip to conversation

util-linux: Fix build with glibc 2.29

PATCH New Khem Raj 1 participant 1 message Jan 5, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 util-linux: Fix build with glibc 2.29

---
 ...check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch | 16 ++++++++++++++++
 .../recipes-core/util-linux/util-linux_2.32.1.bb |  1 +
 2 files changed, 17 insertions(+)
 create mode 100644 meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch
meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch new file +16 -0
new file mode 100644
index 0000000000..c92c276ac1
@@ -0,0 +1,16 @@
+Checking for exitence of the define is not enough since
+it will be defined with 0 or 1 value
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+--- a/sys-utils/ldattach.c
++++ b/sys-utils/ldattach.c
+@@ -242,7 +242,7 @@ static int my_cfsetspeed(struct termios
+ 	 * -- we have to bypass glibc and set the speed manually (because glibc
+ 	 *    checks for speed and supports Bxxx bit rates only)...
+ 	 */
+-#ifdef _HAVE_STRUCT_TERMIOS_C_ISPEED
++#if _HAVE_STRUCT_TERMIOS_C_ISPEED
+ # define BOTHER 0010000		/* non standard rate */
+ 	dbg("using non-standard speeds");
+ 	ts->c_ospeed = ts->c_ispeed = speed;
meta/recipes-core/util-linux/util-linux_2.32.1.bb +1 -0
index a616d85bb2..c909836cbb 100644
@@ -14,6 +14,7 @@ SRC_URI += "file://configure-sbindir.patch \
             file://run-ptest \
             file://display_testname_for_subtest.patch \
             file://avoid_parallel_tests.patch \
+            file://check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch \
 "
 SRC_URI[md5sum] = "9e5b1b8c1dc99455bdb6b462cf9436d9"
 SRC_URI[sha256sum] = "86e6707a379c7ff5489c218cfaf1e3464b0b95acf7817db0bc5f179e356a67b2"
Signature · 1 line
2.20.1