[librtas] Disable "-Werror=format-security" compilation option properly.
Vasant Hegde
hegdevasant at fedoraproject.org
Thu Mar 6 11:34:08 UTC 2014
commit 377db7292d20f0a95a4aac6e9d6a6b8ab13bcdc6
Author: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
Date: Thu Mar 6 17:03:11 2014 +0530
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 <hegdevasant at linux.vnet.ibm.com>
librtas.spec | 11 +++++++++--
1 files 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 <hegdevasant at fedoraproject.org> - 1.3.9-2
+- Disable "-Werror=format-security" gcc option
+
* Tue Mar 04 2014 Vasant Hegde <hegdevasant at fedoraproject.org> - 1.3.9
- Update to latest upstream 1.3.9
More information about the scm-commits
mailing list