From cff11ef670b762bf32b69d89d2284fb058f30d6a Mon Sep 17 00:00:00 2001 From: Filipe Rosset Date: Feb 23 2014 13:30:34 +0000 Subject: Fix FTBFS -Werror=format-security rhbz #1036997 (thanks to Dhiru Kholia) --- diff --git a/bakefile-format-security.patch b/bakefile-format-security.patch new file mode 100644 index 0000000..e1f9747 --- /dev/null +++ b/bakefile-format-security.patch @@ -0,0 +1,13 @@ +diff --git a/src/bkl_c_wrap.c b/src/bkl_c_wrap.c +index 44f857a..2120781 100644 +--- a/src/bkl_c_wrap.c ++++ b/src/bkl_c_wrap.c +@@ -850,7 +850,7 @@ SWIG_Python_AddErrorMsg(const char* mesg) + Py_DECREF(old_str); + Py_DECREF(value); + } else { +- PyErr_Format(PyExc_RuntimeError, mesg); ++ PyErr_Format(PyExc_RuntimeError, "%s", mesg); + } + } + diff --git a/bakefile.spec b/bakefile.spec index d731710..15ccb68 100644 --- a/bakefile.spec +++ b/bakefile.spec @@ -1,12 +1,13 @@ Name: bakefile Version: 0.2.9 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A cross-platform, cross-compiler native makefiles generator Group: Development/Tools License: MIT URL: http://www.bakefile.org/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0: bakefile-028-fix-import.patch +Patch1: bakefile-format-security.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libxml2-python python-devel @@ -20,22 +21,19 @@ makefile (autoconf's Makefile.in, Visual C++ project, bcc makefile etc.) %prep %setup -q %patch0 -p0 - +%patch1 -p1 %build %configure make %{?_smp_mflags} - %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT - %clean rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root,-) %doc COPYING AUTHORS NEWS README THANKS @@ -48,8 +46,10 @@ rm -rf $RPM_BUILD_ROOT %exclude %{_libdir}/%{name}/_bkl_c.la %{_datadir}/aclocal/*.m4 - %changelog +* Sun Feb 23 2014 Filipe Rosset - 0.2.9-4 +- Fix FTBFS -Werror=format-security rhbz #1036997 (thanks to Dhiru Kholia) + * Sat Aug 03 2013 Fedora Release Engineering - 0.2.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild