commit 63beebb31ea7aef56478928ea47c21a338c3a999 Author: Allison Ryan Lortie AuthorDate: Fri Nov 6 14:31:17 2015 +0000 Commit: Allison Ryan Lortie CommitDate: Fri Nov 6 22:27:54 2015 +0000 GLib 2.46.2 NEWS | 16 ++++++++++++++++ configure.ac | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) commit 57f959c0fa76f84811011886343e62263b5ec26e Author: Allison Ryan Lortie AuthorDate: Fri Nov 6 13:08:41 2015 -0500 Commit: Allison Ryan Lortie CommitDate: Fri Nov 6 22:02:04 2015 +0000 docs: remove GDBusObjectManager example This example has been causing on-and-off build breaks for quite some time. In this case, the code for copying the generated content into the main docs of GIO is causing problems with srcdir != destdir builds (due to the files also being copied from the read-only srcdir during distchecks). We could probably work around this problem yet again, but since there is no real benefit to having this content included, so let's remove it. https://bugzilla.gnome.org/show_bug.cgi?id=734469 configure.ac | 1 - docs/reference/gio/Makefile.am | 21 +-- .../gio/gdbus-object-manager-example/.gitignore | 1 - .../gio/gdbus-object-manager-example/Makefile.am | 67 --------- .../gdbus-object-manager-example-docs.xml | 17 --- .../gdbus-object-manager-example-sections.txt | 161 --------------------- .../gdbus-object-manager-example.types | 10 -- docs/reference/gio/migrating-gdbus.xml | 29 +--- 8 files changed, 3 insertions(+), 304 deletions(-) commit 17177b81bf8b5be7121457c399e4b13cef0cfe34 Author: Sebastien Bacher AuthorDate: Fri Nov 6 17:42:45 2015 +0100 Commit: Allison Ryan Lortie CommitDate: Fri Nov 6 11:51:47 2015 -0500 g_local_file_trash: remove invalid free call Commit 8ece2de964c01b3428f16766f199b58f0bc67212 transplanted a block of code that contained an early-exit-on-error case which freed several variables. Because of the move, the normal-path unconditional free of one of these variables is now above this early exit case, so if this block is hit, it will now be a double-free. Remove that. https://bugzilla.gnome.org/show_bug.cgi?id=757693 gio/glocalfile.c | 1 - 1 file changed, 1 deletion(-) commit 7b9f2509cedb828b20dab9d5901b178220303e94 Author: Jussi Kukkonen AuthorDate: Thu Nov 5 11:08:32 2015 +0200 Commit: Jussi Kukkonen CommitDate: Thu Nov 5 13:55:24 2015 +0200 gio/tests: Don't depend on a data file that's not built data.gresource is not built when cross-compiling: Don't add it to test_data in that case. https://bugzilla.gnome.org/show_bug.cgi?id=757628 gio/tests/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9fa97b3558dfb48dc5e57f5e7a89ce31f635ac7b Author: Simon McVittie AuthorDate: Mon Nov 2 17:17:55 2015 +0000 Commit: Simon McVittie CommitDate: Mon Nov 2 20:36:39 2015 +0000 Build gdbus-example-objectmanager-server again It was removed, apparently accidentally, in commit 5b48dc4. This had the side-effect that it wasn't included in tarball releases, which means that commit ab7b4be doesn't work when building a package. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=734469 Reviewed-by: Colin Walters gio/tests/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) commit 59bfb6be5f91e36088ad4217a44c5f68d469bf81 Author: Xavier Claessens AuthorDate: Mon Nov 2 09:36:47 2015 -0500 Commit: Xavier Claessens CommitDate: Mon Nov 2 11:05:29 2015 -0500 Doc: Fix missing glibconfig.h when builddir!=srcdir Currently the doc is incomplete when builddir!=srcdir (e.g. debian package) because glibconfig.h is generared from configure.ac and is thus missing from srcdir. This leads to missing doc for symbols like G_GINT64_FORMAT. https://bugzilla.gnome.org/show_bug.cgi?id=734469 docs/reference/gio/Makefile.am | 7 ++++--- docs/reference/glib/Makefile.am | 11 ++++++++--- docs/reference/gobject/Makefile.am | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) commit ab7b4bebe09f30fd441a2b3c879f7af5695761b3 Author: Xavier Claessens AuthorDate: Fri Oct 30 14:59:11 2015 -0400 Commit: Xavier Claessens CommitDate: Mon Nov 2 11:05:29 2015 -0500 Doc: copy included example files This fix missing files when src_dir != build_dir. https://bugzilla.gnome.org/show_bug.cgi?id=734469 docs/reference/gio/Makefile.am | 19 ++++++++++++++++++- docs/reference/gio/migrating-gdbus.xml | 10 +++++----- 2 files changed, 23 insertions(+), 6 deletions(-) commit c85bc8bdbce2c5fcec28aa5ef89fee42ffda6474 Author: Dan Winship AuthorDate: Sat Oct 24 10:37:22 2015 -0400 Commit: Dan Winship CommitDate: Tue Oct 27 09:51:12 2015 -0400 gtask: re-fix tasks-blocking-other-tasks The new "slowly add more task threads" code doesn't fully deal with apps that queue lots and lots of tasks which then block on tasks from their task threads. Fix this by bringing back the "task is blocking other task" check and making sure that such tasks get bumped to the front of the queue. https://bugzilla.gnome.org/show_bug.cgi?id=687223 gio/gtask.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit a2cd99bc21bca45ccfbb01130141c7ad0b999025 Author: Chun-wei Fan AuthorDate: Tue Oct 27 09:28:10 2015 +0800 Commit: Chun-wei Fan CommitDate: Tue Oct 27 09:33:30 2015 +0800 gwin32.c: Fix g_win32_check_windows_version() on 32-bit The Windows API function RtlGetVersion() is actually a function that is decorated by WINAPI (i.e. __stdcall), so we need to correct this so that the symbol can be loaded correctly from ntdll.dll, so that we won't crash as a result. Should fix the crash due to stack overflow on 32-bit builds. https://bugzilla.gnome.org/show_bug.cgi?id=756179 glib/gwin32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7e9c7a1753fed4dcf53ed512bd6ea4cc166abad5 Author: Chun-wei Fan AuthorDate: Sat Oct 24 11:14:06 2015 +0800 Commit: Chun-wei Fan CommitDate: Sat Oct 24 11:14:06 2015 +0800 gwin32.c: Fix build on MinGW and earlier MSVC MinGW and pre-2008 Visual Studio does not have NTSTATUS automatically defined from including the normal Windows headers, which broke the build on these toolsets. Fix this by including winternl.h, which will define NTSTATUS on these toolsets. This should fix bug 756875 for the glib-2-46 branch. glib/gwin32.c | 2 ++ 1 file changed, 2 insertions(+) commit 24366e159894c0b6d5895642f9687f01ac2c5ec7 Author: Ignacio Casal Quinteiro AuthorDate: Fri Oct 23 10:34:50 2015 +0200 Commit: Ignacio Casal Quinteiro CommitDate: Fri Oct 23 10:46:58 2015 +0200 win32: make sure bytes_read/written is set to 0 on error If we fail to PeekMessage or PostMessage we should make sure that the output parameter bytes_read/written is set 0 instead of being left uninitialized. This fixes an assertion in the io channel call where the following invariant is checked: (status == G_IO_STATUS_NORMAL) || (read_size == 0) glib/giowin32.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 7f1e5417df9803a6011f7a1b66ef7a3e4de6a7b2 Author: Ignacio Casal Quinteiro AuthorDate: Tue Oct 20 16:12:07 2015 +0200 Commit: Ignacio Casal Quinteiro CommitDate: Tue Oct 20 16:15:09 2015 +0200 win32: let glib to use the right path separator for the modules gio/giomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2d9ef3684d87785dff2b7b21a0a56f1548067e81 Author: Matthias Clasen AuthorDate: Thu Oct 15 15:37:42 2015 -0400 Commit: Matthias Clasen CommitDate: Tue Oct 20 08:25:00 2015 -0400 Use -Wl,-znodelete for all our libraries Now that we initialize the quark tables from a constructor, reloading libglib is just as bad as reloading libgobject, so add the linker option to the LDFLAGS for all our libraries. https://bugzilla.gnome.org/show_bug.cgi?id=755609 configure.ac | 6 ++---- gobject/Makefile.am | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) commit d46166e6e9019d3a4456fb258fc95ee6202452a3 Author: Ryan Lortie AuthorDate: Thu Oct 15 15:14:36 2015 +0100 Commit: Matthias Clasen CommitDate: Tue Oct 20 08:24:45 2015 -0400 GDateTime test: fix occasional failures We were using the time() library call to get the current time from the system in order to compare it to the time returned by g_date_time_new_now(). Of course, we took care to ensure that the time (in seconds) didn't change in the middle of this process by checking the before and after value of the system time. Unfortunately, the system time as measured by time() was being taken from a less-accurate clock source than the time used by GDateTime. As a result, we could have GDateTime already into the next second while the "seconds" value of the time returned by time() was still in the last one, even when checked "after". Avoid the problem by using the same ultimate source for time -- g_get_real_time(). This is based on a similar patch from Iain Lane, but it uses g_get_real_time() instead of g_get_current_time(). https://bugzilla.gnome.org/show_bug.cgi?id=754994 glib/tests/gdatetime.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 24a4b33ffe7f4ef3487316e85060dd37b907941d Author: Olivier Fourdan AuthorDate: Tue Sep 15 09:22:12 2015 +0200 Commit: Emmanuele Bassi CommitDate: Sun Oct 18 18:12:22 2015 +0100 GDesktopAppInfo: Do not set the DISPLAY in gio The environment variable DISPLAY makes sense only for X11, it should not be set in gio. Beside, if the backend is not X11 but Wayland, forcing the value of DISPLAY to the Wayland display will confuse the backend selection and possibly crash the applications. https://bugzilla.gnome.org/show_bug.cgi?id=754983 gio/gdesktopappinfo.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) commit 94688bc12c0c41c96ff0124e426614ebda4313ec Author: Ignacio Casal Quinteiro AuthorDate: Mon Oct 12 09:20:36 2015 +0200 Commit: Ignacio Casal Quinteiro CommitDate: Thu Oct 15 13:48:22 2015 +0200 gnulib: %n is not supported on old glibc or on native win32 On old glibc even if %n is supported we may get a crash, so it is better to skip it while on native win32 %n will abort the program. These changes were took from upstream. https://bugzilla.gnome.org/show_bug.cgi?id=756382 glib/gnulib/vasnprintf.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)