[firefox] Build with -Werror=format-security (rhbz#1037063)

Martin Stransky stransky at fedoraproject.org
Fri Dec 13 13:17:54 UTC 2013


commit d6ac14fbe3f703cde7cc341e6c1bcf86f64bc862
Author: Martin Stransky <stransky at anakreon.cz>
Date:   Fri Dec 13 14:17:56 2013 +0100

    Build with -Werror=format-security (rhbz#1037063)

 firefox.spec |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/firefox.spec b/firefox.spec
index a3266d2..002b32a 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -58,7 +58,7 @@
 Summary:        Mozilla Firefox Web browser
 Name:           firefox
 Version:        26.0
-Release:        2%{?pre_tag}%{?dist}
+Release:        3%{?pre_tag}%{?dist}
 URL:            http://www.mozilla.org/projects/firefox/
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 Group:          Applications/Internet
@@ -193,6 +193,8 @@ cd %{tarballdir}
 #
 MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | \
                      %{__sed} -e 's/-Wall//')
+#rhbz#1037063
+MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
 %if %{?debug_build}
 MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
 %endif
@@ -443,6 +445,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 #---------------------------------------------------------------------
 
 %changelog
+* Fri Dec 13 2013 Martin Stransky <stransky at redhat.com> - 26.0-3
+- Build with -Werror=format-security (rhbz#1037063)
+
 * Mon Dec 9 2013 Martin Stransky <stransky at redhat.com> - 26.0-2
 - Update to 26.0 Build 2
 


More information about the scm-commits mailing list