[ghdl] prevent format-security warning

sailer sailer at fedoraproject.org
Tue Dec 3 09:08:57 UTC 2013


commit 4adb4fd88e950856b3bb70694180ff54d352723c
Author: Thomas Sailer <t.sailer at alumni.ethz.ch>
Date:   Tue Dec 3 10:08:38 2013 +0100

    prevent format-security warning

 gcc47-fmtstring.patch |   11 +++++++++++
 ghdl.spec             |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/gcc47-fmtstring.patch b/gcc47-fmtstring.patch
new file mode 100644
index 0000000..0f352bb
--- /dev/null
+++ b/gcc47-fmtstring.patch
@@ -0,0 +1,11 @@
+--- libssp/ssp.c.orig	2013-12-03 10:01:47.446937584 +0100
++++ libssp/ssp.c	2013-12-03 10:02:55.883288751 +0100
+@@ -136,7 +136,7 @@
+ #ifdef HAVE_SYSLOG_H
+   /* Only send the error to syslog if there was no tty available.  */
+   else
+-    syslog (LOG_CRIT, msg3);
++    syslog (LOG_CRIT, "%s", msg3);
+ #endif /* HAVE_SYSLOG_H */
+ 
+   /* Try very hard to exit.  Note that signals may be blocked preventing
diff --git a/ghdl.spec b/ghdl.spec
index 2c283af..f7c7b9e 100644
--- a/ghdl.spec
+++ b/ghdl.spec
@@ -12,7 +12,7 @@
 Summary: A VHDL simulator, using the GCC technology
 Name: ghdl
 Version: %{ghdlver}
-Release: 4.%{ghdlsvnver}svn.2%{?dist}
+Release: 4.%{ghdlsvnver}svn.3%{?dist}
 #Release: 1%{?dist}
 License: GPLv2+
 Group: Development/Languages
@@ -67,6 +67,7 @@ Patch109: ghdl-typeforsize.patch
 Patch110: ghdl-make.patch
 # http://gcc.gnu.org/ml/gcc-patches/2012-10/msg02505.html
 Patch111: gcc47-texinfo.patch
+Patch112: gcc47-fmtstring.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
@@ -223,6 +224,7 @@ popd
 %endif
 %patch110 -p0 -b .ghdlmake
 %patch111 -p0 -b .texinfo
+%patch112 -p0 -b .fmtstring
 
 %if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
 # Default to -gdwarf-4 -fno-debug-types-section rather than -gdwarf-2
@@ -448,6 +450,9 @@ P64=%{buildroot}/%{_libdir}/gcc/%{gcc_target_platform}/%{gccinstver}/vhdl/lib/
 
 
 %changelog
+* Tue Dec  3 2013 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.29-4.150svn.3
+- prevent format-security warning
+
 * Mon Aug  5 2013 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.29-4.150svn.2
 - fix FTBFS
 


More information about the scm-commits mailing list