From 559d4c5a6249e1221b8d569a209e94513c815099 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Fix for GCC 4.4. --- poco/mingw32-poco.spec | 6 ++++-- poco/poco-sprintf.patch | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 poco/poco-sprintf.patch diff --git a/poco/mingw32-poco.spec b/poco/mingw32-poco.spec index 9ddb98a..77b1c1f 100644 --- a/poco/mingw32-poco.spec +++ b/poco/mingw32-poco.spec @@ -6,7 +6,7 @@ Name: mingw32-poco Version: 1.3.3p1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: MinGW Windows C++ libraries for network-centric applications License: Boost @@ -18,6 +18,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1001: poco-01-buildsystem.patch Patch1002: poco-02-makefiles.patch Patch1003: poco-03-memcpy.patch +Patch1004: poco-sprintf.patch BuildArch: noarch @@ -54,6 +55,7 @@ cp build/config/MinGW build/config/MinGW-cross %patch1001 -p0 %patch1002 -p0 %patch1003 -p0 +%patch1004 -p1 %build @@ -99,7 +101,7 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Fri Feb 20 2009 Richard W.M. Jones - 1.3.3p1-3 +* Sat Feb 21 2009 Richard W.M. Jones - 1.3.3p1-4 - Rebuild for mingw32-gcc 4.4 * Fri Feb 6 2009 Richard W.M. Jones - 1.3.3p1-2 diff --git a/poco/poco-sprintf.patch b/poco/poco-sprintf.patch new file mode 100644 index 0000000..39e31ba --- /dev/null +++ b/poco/poco-sprintf.patch @@ -0,0 +1,19 @@ +--- poco-1.3.3p1/Foundation/src/Environment.cpp 2008-10-09 17:11:22.000000000 +0100 ++++ poco-1.3.3p1.mingw/Foundation/src/Environment.cpp 2009-02-21 10:28:33.000000000 +0000 +@@ -35,6 +35,7 @@ + + + #include "Poco/Environment.h" ++#include + #include + + +@@ -108,7 +109,7 @@ + NodeId id; + nodeId(id); + char result[18]; +- std::sprintf(result, "%02x:%02x:%02x:%02x:%02x:%02x", ++ sprintf(result, "%02x:%02x:%02x:%02x:%02x:%02x", + id[0], + id[1], + id[2], -- 1.8.3.1