diff --git a/glibc-deprecated-selinux-makedb.patch b/glibc-deprecated-selinux-makedb.patch new file mode 100644 index 0000000..c762d02 --- /dev/null +++ b/glibc-deprecated-selinux-makedb.patch @@ -0,0 +1,20 @@ +This is necessary to get things building again after libselinux changes. +A proper fix is under discussion upstream: + + + +diff --git a/nss/makedb.c b/nss/makedb.c +index 8e389a1683747cf1..9d81aed57d384a22 100644 +--- a/nss/makedb.c ++++ b/nss/makedb.c +@@ -17,6 +17,10 @@ + License along with the GNU C Library; if not, see + . */ + ++/* This file uses deprecated declarations from libselinux. */ ++#include ++DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wdeprecated-declarations"); ++ + #include + #include + #include diff --git a/glibc-deprecated-selinux-nscd.patch b/glibc-deprecated-selinux-nscd.patch new file mode 100644 index 0000000..315b6cd --- /dev/null +++ b/glibc-deprecated-selinux-nscd.patch @@ -0,0 +1,17 @@ +This patch works around deprecated libselinux features used by nscd. + +diff --git a/nscd/selinux.c b/nscd/selinux.c +index a4ea8008e201b939..0acca4639202a75a 100644 +--- a/nscd/selinux.c ++++ b/nscd/selinux.c +@@ -17,6 +17,10 @@ + License along with the GNU C Library; if not, see + . */ + ++/* This file uses deprecated declarations from libselinux. */ ++#include ++DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wdeprecated-declarations"); ++ + #include "config.h" + #include + #include diff --git a/glibc.spec b/glibc.spec index 1e62745..c5eafb5 100644 --- a/glibc.spec +++ b/glibc.spec @@ -168,6 +168,8 @@ Patch18: glibc-c-utf8-locale.patch Patch23: glibc-python3.patch Patch29: glibc-fedora-nsswitch.patch Patch30: glibc-rseq-disable.patch +Patch31: glibc-deprecated-selinux-makedb.patch +Patch32: glibc-deprecated-selinux-nscd.patch ############################################################################## # Continued list of core "glibc" package information: