From 377db7292d20f0a95a4aac6e9d6a6b8ab13bcdc6 Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Thu, 6 Mar 2014 17:03:11 +0530 Subject: [PATCH] Disable "-Werror=format-security" compilation option properly. Note that this is the temporary workaround to build packages. We should fix real issue in our code. Signed-off-by: Vasant Hegde --- librtas.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/librtas.spec b/librtas.spec index 3027427..1b228d3 100644 --- a/librtas.spec +++ b/librtas.spec @@ -1,7 +1,7 @@ Summary: Libraries to provide access to RTAS calls and RTAS events Name: librtas Version: 1.3.9 -Release: 1%{?dist} +Release: 2%{?dist} URL: http://librtas.ozlabs.org License: CPL Group: System Environment/Libraries @@ -38,7 +38,11 @@ developing programs using librtas. %patch1 -p1 -b .ln %build -%{__make} CFLAGS="%{optflags} -fPIC -DPIC -I." +# disable "-Werror=format-security" checking gcc option until we fix +# these errors in our code. +CFLAG="%{optflags} -fPIC -DPIC -I." +CFLAG=`echo $CFLAG | sed 's/-Werror=format-security//'` +%{__make} $CFLAGS %install mkdir -p %{buildroot}/%{_libdir} @@ -72,6 +76,9 @@ mkdir -p %{buildroot}/%{_libdir} %{_libdir}/libofdt.so %changelog +* Thu Mar 06 2014 Vasant Hegde - 1.3.9-2 +- Disable "-Werror=format-security" gcc option + * Tue Mar 04 2014 Vasant Hegde - 1.3.9 - Update to latest upstream 1.3.9