From 37d15cd6c9f15c05fd464d106e2802436cf30740 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Date: Mon, 14 Nov 2016 10:40:54 +0100 Subject: nss: Disable warning on deprecated API usage nss itself enables Werror if gcc is version 4.8 of greater, which fails the build against new glibc (2.24) because of use of readdir_r(), which is now deprecated. Let's just disable warnings on deprecated API usage. https://bugzilla.yoctoproject.org/show_bug.cgi?id=10644 Signed-off-by: Zeeshan Ali Signed-off-by: Armin Kuster Signed-off-by: Sona Sarmadi --- .../nss/nss-disable-werror-on-deprecated-api.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 meta/recipes-support/nss/nss/nss-disable-werror-on-deprecated-api.patch (limited to 'meta/recipes-support/nss/nss/nss-disable-werror-on-deprecated-api.patch') diff --git a/meta/recipes-support/nss/nss/nss-disable-werror-on-deprecated-api.patch b/meta/recipes-support/nss/nss/nss-disable-werror-on-deprecated-api.patch new file mode 100644 index 0000000000..fbaa6a6b97 --- /dev/null +++ b/meta/recipes-support/nss/nss/nss-disable-werror-on-deprecated-api.patch @@ -0,0 +1,22 @@ +Disable Werror on deprecated API + +nss itself enables Werror if gcc is version 4.8 of greater, which fails +the build against new glibc (2.24) because of use of readdir_r(), which is +now deprecated. Let's just disable warnings on deprecated API usage. + +Upstream-Status: Inappropriate [Dev branch on newer version w/o this issue] + +Signed-off-by: Zeeshan Ali +=================================================== +diff -u -r a/nss/coreconf/Werror.mk b/nss/coreconf/Werror.mk +--- a/nss/coreconf/Werror.mk 2015-11-09 06:12:59.000000000 +0100 ++++ b/nss/coreconf/Werror.mk 2016-11-11 14:36:36.301062957 +0100 +@@ -60,7 +60,7 @@ + endif #ndef NSS_ENABLE_WERROR + + ifeq ($(NSS_ENABLE_WERROR),1) +- WARNING_CFLAGS += -Werror ++ WARNING_CFLAGS += -Werror -Wno-deprecated -Wno-deprecated-declarations + else + # Old versions of gcc (< 4.8) don't support #pragma diagnostic in functions. + # Use this to disable use of that #pragma and the warnings it suppresses. -- cgit v1.2.3-54-g00ecf