From: Jan Rękorajski Date: Wed, 12 Dec 2012 11:32:13 +0000 (+0100) Subject: - fix format string warning X-Git-Tag: auto/th/bakefile-0.2.9-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbakefile.git;a=commitdiff_plain;h=60ffde7f86439f16bce4c0988983a8b18054bb8a - fix format string warning - rel 2 --- diff --git a/bakefile.spec b/bakefile.spec index ba1ded0..ab0a3f0 100644 --- a/bakefile.spec +++ b/bakefile.spec @@ -2,12 +2,13 @@ Summary: Native makefiles generator Summary(pl.UTF-8): Generator natywnych plików typu Makefile Name: bakefile Version: 0.2.9 -Release: 1 +Release: 2 License: MIT Group: Development/Building Source0: http://downloads.sourceforge.net/bakefile/%{name}-%{version}.tar.gz # Source0-md5: b53813d155df1a45371abc8f781e6d88 Patch0: %{name}-empy.patch +Patch1: format-security.patch URL: http://bakefile.sourceforge.net/ BuildRequires: autoconf >= 2.53 BuildRequires: automake >= 1.6 @@ -34,6 +35,7 @@ dla autoconfa, projekt dla Visual C++, makefile dla bcc itd.). %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %{__libtoolize} diff --git a/format-security.patch b/format-security.patch new file mode 100644 index 0000000..9060d77 --- /dev/null +++ b/format-security.patch @@ -0,0 +1,11 @@ +--- bakefile-0.2.9/src/bkl_c_wrap.c~ 2011-02-02 16:21:57.000000000 +0100 ++++ bakefile-0.2.9/src/bkl_c_wrap.c 2012-12-12 12:30:12.717316507 +0100 +@@ -850,7 +850,7 @@ + Py_DECREF(old_str); + Py_DECREF(value); + } else { +- PyErr_Format(PyExc_RuntimeError, mesg); ++ PyErr_Format(PyExc_RuntimeError, "%s", mesg); + } + } +