libnss-nis: Fix build with glibc 2.30
PATCH 1/2 libnss-nis: Fix build with glibc 2.30
Signed-off-by Khem Raj <[email protected]>
--- .../recipes-extended/libnss-nis/libnss-nis.bb | 1 + ...is-hosts-Remove-use-of-RES_USE_INET6.patch | 162 ++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 meta/recipes-extended/libnss-nis/libnss-nis/0001-nis-hosts-Remove-use-of-RES_USE_INET6.patch
meta/recipes-extended/libnss-nis/libnss-nis.bb +1 -0
@@ -18,6 +18,7 @@ PV = "3.0+git${SRCPV}" SRCREV = "d4aea48657a8e90d7922574b8021ee03915a36cb" SRC_URI = "git://github.com/thkukuk/libnss_nis \ + file://0001-nis-hosts-Remove-use-of-RES_USE_INET6.patch \ " S = "${WORKDIR}/git"
meta/recipes-extended/libnss-nis/libnss-nis/0001-nis-hosts-Remove-use-of-RES_USE_INET6.patch new file +162 -0
162 lines not on this page · raw message
Signature · 1 line
2.22.0
PATCH 2/2 lttng-ust: Check for gettid libc API
Fixes build with glibc 2.30
Signed-off-by Khem Raj <[email protected]>
--- ...config-time-check-for-new-gettid-API.patch | 57 +++++++++++++++++++ meta/recipes-kernel/lttng/lttng-ust_2.10.4.bb | 1 + 2 files changed, 58 insertions(+) create mode 100644 meta/recipes-kernel/lttng/lttng-ust/0001-Add-config-time-check-for-new-gettid-API.patch
meta/recipes-kernel/lttng/lttng-ust/0001-Add-config-time-check-for-new-gettid-API.patch new file +57 -0
@@ -0,0 +1,57 @@ +From 2bb3e259d0410f16a8b2058a05af434376a1583a Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 26 Jul 2019 09:57:32 -0700 +Subject: [lttng-ust][PATCH] Add config time check for new gettid API + +glibc 2.30 introdoced this function see [1] +so its best to detect it +and provide fallbacks only if its not present + +[1] https://sourceware.org/bugzilla/show_bug.cgi?id=6399 + +Upstream-Status: Submitted [https://lists.lttng.org/pipermail/lttng-dev/2019-July/029131.html] + +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 1 + + include/lttng/ust-tid.h | 7 +++++-- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 7fa059a..b1099c1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -137,6 +137,7 @@ AC_CHECK_FUNCS([ \ + clock_gettime \ + ftruncate \ + getpagesize \ ++ gettid \ + gettimeofday \ + localeconv \ + memchr \ +diff --git a/include/lttng/ust-tid.h b/include/lttng/ust-tid.h +index e669d7e..7995c78 100644 +--- a/include/lttng/ust-tid.h ++++ b/include/lttng/ust-tid.h +@@ -26,7 +26,10 @@ + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +- ++#include <config.h> ++#if HAVE_GETTID ++#include <unistd.h> ++#else + #ifdef __linux__ + #include <syscall.h> + #endif +@@ -49,5 +52,5 @@ static inline pid_t gettid(void) + return getpid(); + } + #endif +- ++#endif /* HAVE_GETTID */ + #endif /* _LTTNG_UST_TID_H */ +-- +2.22.0 +
meta/recipes-kernel/lttng/lttng-ust_2.10.4.bb +1 -0
@@ -27,6 +27,7 @@ PE = "2" SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \ file://lttng-ust-doc-examples-disable.patch \ + file://0001-Add-config-time-check-for-new-gettid-API.patch \ " SRC_URI[md5sum] = "19916ff0dec23c90f985586a8cbd1fd2"
Signature · 1 line
2.22.0