diff --git a/mingw-glib2.spec b/mingw-glib2.spec index 3d5366b..55620a4 100644 --- a/mingw-glib2.spec +++ b/mingw-glib2.spec @@ -2,7 +2,7 @@ Name: mingw-glib2 Version: 2.35.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: MinGW Windows GLib2 library License: LGPLv2+ @@ -47,6 +47,12 @@ Patch1: 0001-Use-CreateFile-on-Win32-to-make-sure-g_unlink-always.patch # https://bugzilla.gnome.org/show_bug.cgi?id=684145 Patch2: glib-build-dbus-proxy-testcase-only-on-unix.patch +# By default g_log_default_handler always assumes that stdout and stderr +# are file descriptors 1 and 2. On Win32 this isn't always the case as the +# win32 API function AttachConsole can be used to dynamically attach GUI +# applications to a console and the file descriptors of stderr and stdout +# will become different than 1 and 2 +Patch3: glib-send-log-messages-to-correct-stdout-and-stderr.patch %description MinGW Windows Glib2 library. @@ -90,6 +96,7 @@ Static version of the MinGW Windows GLib2 library. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p0 autoreconf -i --force @@ -270,6 +277,9 @@ find $RPM_BUILD_ROOT -name "*.la" -delete %changelog +* Tue Jan 1 2013 Erik van Pienbroek - 2.35.3-2 +- Make sure g_log_default_handler uses the correct file descriptors for stdout and stderr + * Tue Jan 1 2013 Erik van Pienbroek - 2.35.3-1 - Update to 2.35.3