[libbs2b] Fix -Werror=format-security build error
Peter Robinson
pbrobinson at fedoraproject.org
Thu Jul 3 12:44:06 UTC 2014
commit 13529d0d7220dfa0d934ca2ccd4973dff83f2593
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Thu Jul 3 13:43:56 2014 +0100
Fix -Werror=format-security build error
libbs2b-security.patch | 11 +++++++++++
libbs2b.spec | 8 +++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/libbs2b-security.patch b/libbs2b-security.patch
new file mode 100644
index 0000000..ca6dbd7
--- /dev/null
+++ b/libbs2b-security.patch
@@ -0,0 +1,11 @@
+--- libbs2b-3.1.0/src/bs2bconvert.c.orig 2014-05-20 23:09:11.975876646 +0100
++++ libbs2b-3.1.0/src/bs2bconvert.c 2014-05-20 23:14:06.047076693 +0100
+@@ -153,7 +153,7 @@
+ if( ( infile = sf_open( infilename, SFM_READ, &sfinfo ) ) == NULL )
+ {
+ printf( "Not able to open input file %s.\n", infilename );
+- printf( sf_strerror( NULL ) );
++ printf( "%s", sf_strerror( NULL ) );
+ return 1;
+ }
+
diff --git a/libbs2b.spec b/libbs2b.spec
index 4de49c5..a919284 100644
--- a/libbs2b.spec
+++ b/libbs2b.spec
@@ -1,12 +1,13 @@
Name: libbs2b
Version: 3.1.0
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Bauer stereophonic-to-binaural DSP library
Group: Applications/Multimedia
License: Copyright only
URL: http://bs2b.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/bs2b/libbs2b/%{version}/%{name}-%{version}.tar.lzma
+Patch0: libbs2b-security.patch
BuildRequires: autoconf automake libtool
BuildRequires: libsndfile-devel
@@ -34,6 +35,8 @@ stereophonic-to-binaural (bs2b) DSP effect library.
%prep
%setup -q
+%patch0 -p1
+
# automake 1.12 removes support for lzma, it has been replaced by xz
# it is safe to substitute xz for lzma to get rid of autoreconf errors,
# we don't build the dist archive anyways
@@ -74,6 +77,9 @@ rm %{buildroot}/%{_libdir}/%{name}.la
%changelog
+* Thu Jul 3 2014 Peter Robinson <pbrobinson at fedoraproject.org> 3.1.0-12
+- Fix -Werror=format-security build error
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list