[packages/crossmingw32-glib2] - updated to 2.46.0 - updated win32 patch
qboosh
qboosh at pld-linux.org
Tue Sep 22 19:22:35 CEST 2015
commit 321a0229999d59f1d832c0da4934dfe842ad5272
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Sep 22 19:23:35 2015 +0200
- updated to 2.46.0
- updated win32 patch
crossmingw32-glib2.spec | 6 ++---
glib2-win32.patch | 61 ++++++++++++++++++++++++++++++++++++++++---------
2 files changed, 53 insertions(+), 14 deletions(-)
---
diff --git a/crossmingw32-glib2.spec b/crossmingw32-glib2.spec
index 1287362..66dd19f 100644
--- a/crossmingw32-glib2.spec
+++ b/crossmingw32-glib2.spec
@@ -12,12 +12,12 @@ Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
Summary(zh_CN.UTF-8): 实用工具函数库
%define realname glib
Name: crossmingw32-glib2
-Version: 2.44.1
+Version: 2.46.0
Release: 1
License: LGPL v2+
Group: Development/Libraries
-Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.44/glib-%{version}.tar.xz
-# Source0-md5: 83efba4722a9674b97437d1d99af79db
+Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.46/glib-%{version}.tar.xz
+# Source0-md5: 6d58f9d70893a63e75c2b7df79375ee7
Patch0: glib2-win32.patch
URL: http://www.gtk.org/
BuildRequires: autoconf >= 2.62
diff --git a/glib2-win32.patch b/glib2-win32.patch
index 0415746..7e544b2 100644
--- a/glib2-win32.patch
+++ b/glib2-win32.patch
@@ -1,14 +1,3 @@
---- glib-2.34.0/gio/gregistrysettingsbackend.c.orig 2012-08-19 16:39:53.000000000 +0200
-+++ glib-2.34.0/gio/gregistrysettingsbackend.c 2012-09-26 17:54:44.204962755 +0200
-@@ -233,7 +233,7 @@
- if (result_code == ERROR_KEY_DELETED)
- trace ("(%s)", win32_message);
- else
-- g_message (win32_message);
-+ g_message ("%s", win32_message);
- };
-
-
--- glib-2.40.0/glib/grand.c.orig 2014-02-22 16:29:07.000000000 +0100
+++ glib-2.40.0/glib/grand.c 2014-03-25 18:45:39.693348981 +0100
@@ -55,6 +55,7 @@
@@ -33,3 +22,53 @@
typedef NET_IFINDEX (WINAPI *PFN_IfNameToIndex) (PCSTR);
typedef struct _GWin32WinsockFuncs
+--- glib-2.46.0/glib/gstrfuncs.c.orig 2015-09-12 18:05:31.000000000 +0200
++++ glib-2.46.0/glib/gstrfuncs.c 2015-09-22 17:09:13.736714571 +0200
+@@ -1272,7 +1272,7 @@
+ gchar buf[1024];
+ GError *error = NULL;
+
+-#if defined(G_OS_WIN32)
++#if defined(G_OS_WIN32) && !defined(__MINGW32__)
+ strerror_s (buf, sizeof (buf), errnum);
+ msg = buf;
+ #elif defined(HAVE_STRERROR_R)
+--- glib-2.46.0/gio/gwin32appinfo.c.orig 2015-09-21 14:37:29.000000000 +0200
++++ glib-2.46.0/gio/gwin32appinfo.c 2015-09-22 17:34:28.039984356 +0200
+@@ -34,6 +34,11 @@
+ #include <gio/gwin32registrykey.h>
+
+ #include <windows.h>
++#include <wchar.h>
++
++#ifndef LOAD_LIBRARY_AS_IMAGE_RESOURCE
++#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x20
++#endif
+
+ /* We need to watch 8 places:
+ * 0) HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations
+--- glib-2.46.0/gio/gwin32registrykey.c.orig 2015-09-21 12:44:58.000000000 +0200
++++ glib-2.46.0/gio/gwin32registrykey.c 2015-09-22 18:50:25.926459740 +0200
+@@ -25,10 +25,21 @@
+ #pragma warning ( disable:4005 )
+ #endif
+ #include <windows.h>
++#ifdef __MINGW32__
++#include <ddk/ntstatus.h>
++#include <ddk/ntddk.h>
++#if !defined HKEY_PERFORMANCE_NLSTEXT
++#define HKEY_PERFORMANCE_NLSTEXT (( HKEY ) (ULONG_PTR)((LONG)0x80000060) )
++#endif
++#if ! defined HKEY_PERFORMANCE_TEXT
++#define HKEY_PERFORMANCE_TEXT (( HKEY ) (ULONG_PTR)((LONG)0x80000050) )
++#endif
++#else
+ #include <ntstatus.h>
+ #include <winternl.h>
++#endif
+
+-#ifndef _WDMDDK_
++#if !defined(_WDMDDK_) && !defined(__WINDDK_H)
+ typedef enum _KEY_INFORMATION_CLASS {
+ KeyBasicInformation,
+ KeyNodeInformation,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-glib2.git/commitdiff/321a0229999d59f1d832c0da4934dfe842ad5272
More information about the pld-cvs-commit
mailing list