[mingw-glib2] Make sure g_log_default_handler uses the correct file descriptors for stdout and stderr

Erik van Pienbroek epienbro at fedoraproject.org
Wed Jan 2 01:01:15 UTC 2013


commit 52f0247e542ad21f5eec6bf8a1902e532da808d0
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date:   Wed Jan 2 02:01:02 2013 +0100

    Make sure g_log_default_handler uses the correct file descriptors for stdout and stderr

 mingw-glib2.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
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 <epienbro at fedoraproject.org> - 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 <epienbro at fedoraproject.org> - 2.35.3-1
 - Update to 2.35.3
 


More information about the scm-commits mailing list