Solved build failures with "-Werror=format-security" (#1037335)

This commit is contained in:
Robert Scheck 2013-12-08 13:27:08 +01:00
parent a6faf6b281
commit 05d5ff24d3
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,15 @@
Patch by Robert Scheck <robert@fedoraproject.org> for sqlite >= 2.8.17 which fixes
the build failures if compiled with "-Werror=format-security". Further information
can be found at https://bugzilla.redhat.com/show_bug.cgi?id=1037335
--- sqlite-2.8.17/src/shell.c 2005-04-24 00:43:22.000000000 +0200
+++ sqlite-2.8.17/src/shell.c.format-security 2013-12-08 13:20:47.000000000 +0100
@@ -692,7 +692,7 @@
}else
if( c=='h' && strncmp(azArg[0], "help", n)==0 ){
- fprintf(stderr,zHelp);
+ fprintf(stderr,"%s",zHelp);
}else
if( c=='i' && strncmp(azArg[0], "indices", n)==0 && nArg>1 ){

View File

@ -3,7 +3,7 @@
Name: sqlite2
Version: 2.8.17
Release: 12%{?dist}
Release: 13%{?dist}
Summary: Embeddable SQL engine in a C library
Group: System Environment/Libraries
@ -18,6 +18,7 @@ Patch5: sqlite-2.8.15-arch-double-differences.patch
Patch6: sqlite-2.8.17-test.patch
Patch7: sqlite-2.8.17-tcl.patch
Patch8: sqlite-2.8.17-ppc64.patch
Patch9: sqlite-2.8.17-format-security.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel, readline-devel, %{_includedir}/tcl.h
@ -71,6 +72,7 @@ This package contains tcl bindings for sqlite.
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
sed -i.rpath 's!__VERSION__!%{version}!g' Makefile.in
# Patch additional /usr/lib locations where we don't have $(libdir)
# to substitute with.
@ -125,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
%{tcl_sitearch}/sqlite2/
%changelog
* Sun Dec 08 2013 Robert Scheck <robert@fedoraproject.org> 2.8.17-13
- Solved build failures with "-Werror=format-security" (#1037335)
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.17-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild