[xulrunner/f18: 1/4] rhbz#1037406 - xulrunner FTBFS if '-Werror=format-security'

Martin Stransky stransky at fedoraproject.org
Fri Dec 13 12:53:40 UTC 2013


commit 3a484e7fcd48b204b14b76cb3852eba08c3c4022
Author: Martin Stransky <stransky at anakreon.cz>
Date:   Fri Dec 13 13:50:02 2013 +0100

    rhbz#1037406 - xulrunner FTBFS if '-Werror=format-security'

 xulrunner.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/xulrunner.spec b/xulrunner.spec
index d5d74f8..25fc83b 100644
--- a/xulrunner.spec
+++ b/xulrunner.spec
@@ -78,7 +78,7 @@
 Summary:        XUL Runtime for Gecko Applications
 Name:           xulrunner
 Version:        26.0
-Release:        1%{?pre_tag}%{?dist}
+Release:        2%{?pre_tag}%{?dist}
 URL:            http://developer.mozilla.org/En/XULRunner
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 Group:          Applications/Internet
@@ -354,8 +354,8 @@ MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
 MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
 %endif
 
-export CFLAGS=$MOZ_OPT_FLAGS
-export CXXFLAGS="$MOZ_OPT_FLAGS -fpermissive"
+export CFLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
+export CXXFLAGS="$MOZ_OPT_FLAGS -fpermissive -Wformat-security -Wformat -Werror=format-security"
 export LDFLAGS=$MOZ_LINK_FLAGS
 
 export PREFIX='%{_prefix}'
@@ -529,6 +529,10 @@ fi
 #---------------------------------------------------------------------
 
 %changelog
+* Fri Dec 13 2013 Martin Stransky <stransky at redhat.com> - 26.0-2
+- rhbz#1037406 - xulrunner FTBFS if "-Werror=format-security"
+  flag is used
+
 * Mon Dec 9 2013 Martin Stransky <stransky at redhat.com> - 26.0-1
 - Update to 26.0 Build 2
 


More information about the scm-commits mailing list