summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-01-04 22:47:10 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 11:16:44 +0000
commit96dee0ab5c59c96063cee4f5013ae12b93542ab8 (patch)
tree9730e7c9b282f8e80f5a1e53cc244cb144169d1f /meta/recipes-core/util-linux
parent3bbd3b0a7e0fc1a421ce6402e817bd011d7b79ff (diff)
downloadpoky-96dee0ab5c59c96063cee4f5013ae12b93542ab8.tar.gz
util-linux: Fix build with glibc 2.29
(From OE-Core rev: f2646ea56e5ce82561089956c4a1f0d3c81087b1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux')
-rw-r--r--meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch16
-rw-r--r--meta/recipes-core/util-linux/util-linux_2.32.1.bb1
2 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch b/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch
new file mode 100644
index 0000000000..c92c276ac1
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch
@@ -0,0 +1,16 @@
1Checking for exitence of the define is not enough since
2it will be defined with 0 or 1 value
3
4Upstream-Status: Pending
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6--- a/sys-utils/ldattach.c
7+++ b/sys-utils/ldattach.c
8@@ -242,7 +242,7 @@ static int my_cfsetspeed(struct termios
9 * -- we have to bypass glibc and set the speed manually (because glibc
10 * checks for speed and supports Bxxx bit rates only)...
11 */
12-#ifdef _HAVE_STRUCT_TERMIOS_C_ISPEED
13+#if _HAVE_STRUCT_TERMIOS_C_ISPEED
14 # define BOTHER 0010000 /* non standard rate */
15 dbg("using non-standard speeds");
16 ts->c_ospeed = ts->c_ispeed = speed;
diff --git a/meta/recipes-core/util-linux/util-linux_2.32.1.bb b/meta/recipes-core/util-linux/util-linux_2.32.1.bb
index a616d85bb2..c909836cbb 100644
--- a/meta/recipes-core/util-linux/util-linux_2.32.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.32.1.bb
@@ -14,6 +14,7 @@ SRC_URI += "file://configure-sbindir.patch \
14 file://run-ptest \ 14 file://run-ptest \
15 file://display_testname_for_subtest.patch \ 15 file://display_testname_for_subtest.patch \
16 file://avoid_parallel_tests.patch \ 16 file://avoid_parallel_tests.patch \
17 file://check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch \
17" 18"
18SRC_URI[md5sum] = "9e5b1b8c1dc99455bdb6b462cf9436d9" 19SRC_URI[md5sum] = "9e5b1b8c1dc99455bdb6b462cf9436d9"
19SRC_URI[sha256sum] = "86e6707a379c7ff5489c218cfaf1e3464b0b95acf7817db0bc5f179e356a67b2" 20SRC_URI[sha256sum] = "86e6707a379c7ff5489c218cfaf1e3464b0b95acf7817db0bc5f179e356a67b2"