From d96a6e58f592d511bc0803b9b76d8c796c8ad3a7 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 30 Jun 2016 11:32:53 -0400 Subject: [PATCH] work around readdir_r deprecation Signed-off-by: Peter Jones --- ...-declarations-for-now-to-let-readdir.patch | 27 +++++++++++++++++++ efivar.spec | 1 + 2 files changed, 28 insertions(+) create mode 100644 0001-allow-deprecated-declarations-for-now-to-let-readdir.patch diff --git a/0001-allow-deprecated-declarations-for-now-to-let-readdir.patch b/0001-allow-deprecated-declarations-for-now-to-let-readdir.patch new file mode 100644 index 0000000..a583ac2 --- /dev/null +++ b/0001-allow-deprecated-declarations-for-now-to-let-readdir.patch @@ -0,0 +1,27 @@ +From 00621208b411011d9f858923fa9d2ccc024767b5 Mon Sep 17 00:00:00 2001 +From: Peter Jones +Date: Thu, 30 Jun 2016 11:32:03 -0400 +Subject: [PATCH] allow deprecated declarations for now to let readdir_r + work... + +Signed-off-by: Peter Jones +--- + gcc.specs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc.specs b/gcc.specs +index 0d4bbda..d25ac5e 100644 +--- a/gcc.specs ++++ b/gcc.specs +@@ -2,7 +2,7 @@ + + -D_GNU_SOURCE + + *efivar_cpp_options: +- -Werror -Wall -std=gnu11 -Wextra ++ -Werror -Wall -std=gnu11 -Wextra -Wno-error=deprecated-declarations + + *cpp_options: + + %(efivar_cpp_options) +-- +2.7.4 + diff --git a/efivar.spec b/efivar.spec index 1eee242..e65801d 100644 --- a/efivar.spec +++ b/efivar.spec @@ -9,6 +9,7 @@ ExclusiveArch: %{ix86} x86_64 aarch64 BuildRequires: popt-devel popt-static git glibc-static Source0: https://github.com/rhinstaller/efivar/releases/download/efivar-%{version}/efivar-%{version}.tar.bz2 +Patch0001: 0001-allow-deprecated-declarations-for-now-to-let-readdir.patch %description efivar provides a simple command line interface to the UEFI variable facility.