[thunderbird] Build with -Werror=format-security (rhbz#1037353)

Martin Stransky stransky at fedoraproject.org
Fri Dec 13 13:44:01 UTC 2013


commit 0ed329dc33f0fcf93aa80c54eba8710844c267a3
Author: Martin Stransky <stransky at anakreon.cz>
Date:   Fri Dec 13 14:44:05 2013 +0100

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

 thunderbird.spec |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/thunderbird.spec b/thunderbird.spec
index 3b0c486..6242bf0 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -54,7 +54,7 @@
 Summary:        Mozilla Thunderbird mail/newsgroup client
 Name:           thunderbird
 Version:        24.2.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 URL:            http://www.mozilla.org/projects/thunderbird/
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 Group:          Applications/Internet
@@ -253,6 +253,8 @@ cd %{tarballdir}
 # 
 MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS -fpermissive" | \
                       %{__sed} -e 's/-Wall//')
+#rhbz#1037353
+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
@@ -444,6 +446,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 #===============================================================================
 
 %changelog
+* Fri Dec 13 2013 Martin Stransky <stransky at redhat.com> - 24.2.0-3
+- Build with -Werror=format-security (rhbz#1037353)
+
 * Wed Dec 11 2013 Martin Stransky <stransky at redhat.com> - 24.2.0-2
 - rhbz#1001998 - added a workaround for system notifications
 


More information about the scm-commits mailing list