diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-07-27 07:57:18 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-07-30 19:15:24 -0700 |
commit | 09faeabebc84c3ec26170d6465e3e039cc8e9640 (patch) | |
tree | 252cea2293e855edd8fdbf1da9e574baabef94e1 | |
parent | 7bd0f5d6d0d5e4cbdb5b23e4cd01077d6e7bccf0 (diff) | |
download | meta-openembedded-09faeabebc84c3ec26170d6465e3e039cc8e9640.tar.gz |
ypbind-mt: Fix build with glibc 2.30
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch | 45 | ||||
-rw-r--r-- | meta-networking/recipes-support/nis/ypbind-mt_2.6.bb | 1 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch b/meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch new file mode 100644 index 0000000000..9484d0b007 --- /dev/null +++ b/meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 25d5daf30aa2dc451ba528712f668036d8506054 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 27 Jul 2019 07:50:26 -0700 | ||
4 | Subject: [PATCH] Add configure time check for gettid API | ||
5 | |||
6 | glibc 2.30 has added this syscalls wrapper | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | configure.ac | 1 + | ||
11 | src/log_msg.c | 2 ++ | ||
12 | 2 files changed, 3 insertions(+) | ||
13 | |||
14 | diff --git a/configure.ac b/configure.ac | ||
15 | index 9e32a4a..6d1067b 100644 | ||
16 | --- a/configure.ac | ||
17 | +++ b/configure.ac | ||
18 | @@ -33,6 +33,7 @@ if test -n "$TIRPC_LIBS"; then | ||
19 | AC_DEFINE(HAVE_TIRPC, 1, [Define to 1 if TIRPC is available]) | ||
20 | fi | ||
21 | |||
22 | +AC_CHECK_FUNCS(gettid) | ||
23 | dnl The difficult part: could we reconfigure NSS or must we use DNS ? | ||
24 | AC_CHECK_FUNCS(__nss_configure_lookup) | ||
25 | if eval "test \"`echo '$ac_cv_func___nss_configure_lookup'`\" != yes"; then | ||
26 | diff --git a/src/log_msg.c b/src/log_msg.c | ||
27 | index 49f0905..37da311 100644 | ||
28 | --- a/src/log_msg.c | ||
29 | +++ b/src/log_msg.c | ||
30 | @@ -26,6 +26,7 @@ | ||
31 | #include "log_msg.h" | ||
32 | |||
33 | #include <sys/syscall.h> | ||
34 | +#if !HAVE_GETTID | ||
35 | #ifdef __NR_gettid | ||
36 | static pid_t | ||
37 | gettid (void) | ||
38 | @@ -39,6 +40,7 @@ gettid (void) | ||
39 | return getpid (); | ||
40 | } | ||
41 | #endif | ||
42 | +#endif | ||
43 | |||
44 | int debug_flag = 0; | ||
45 | int logfile_flag = 0; | ||
diff --git a/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb b/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb index 1a64e6c2e1..4f7f8aa3ef 100644 --- a/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb +++ b/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb | |||
@@ -32,6 +32,7 @@ SRC_URI = "https://github.com/thkukuk/ypbind-mt/releases/download/v${PV}/${BPN}- | |||
32 | file://ypbind.init \ | 32 | file://ypbind.init \ |
33 | file://ypbind.service \ | 33 | file://ypbind.service \ |
34 | file://0001-dns_hosts-Fix-build-with-musl.patch \ | 34 | file://0001-dns_hosts-Fix-build-with-musl.patch \ |
35 | file://0001-Add-configure-time-check-for-gettid-API.patch \ | ||
35 | " | 36 | " |
36 | SRC_URI[md5sum] = "7cf89641fdc128d0919207e4b7caaf1d" | 37 | SRC_URI[md5sum] = "7cf89641fdc128d0919207e4b7caaf1d" |
37 | SRC_URI[sha256sum] = "0696c0263c4fd48a4ff2ce6c109f05f37aab0f71646d81cb22c7c28591bf80eb" | 38 | SRC_URI[sha256sum] = "0696c0263c4fd48a4ff2ce6c109f05f37aab0f71646d81cb22c7c28591bf80eb" |