[packages/crossmingw32-glib2] - updated to 2.52.1 - added C90 fix for WIN32 specific code to win32 patch

qboosh qboosh at pld-linux.org
Mon Apr 10 21:55:55 CEST 2017


commit 59b1e58093367e493e6e4a426622f0fc72213526
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 10 21:56:01 2017 +0200

    - updated to 2.52.1
    - added C90 fix for WIN32 specific code to win32 patch

 crossmingw32-glib2.spec |  6 +++---
 glib2-win32.patch       | 24 ++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 3 deletions(-)
---
diff --git a/crossmingw32-glib2.spec b/crossmingw32-glib2.spec
index 7e75602..09d492e 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.50.3
+Version:	2.52.1
 Release:	1
 License:	LGPL v2+
 Group:		Development/Libraries
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/glib/2.50/glib-%{version}.tar.xz
-# Source0-md5:	381ab22934f296750d036aa55a397ded
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/glib/2.52/glib-%{version}.tar.xz
+# Source0-md5:	36b4c7bf4f2b398ac8ad90578d05c950
 Patch0:		glib2-win32.patch
 URL:		http://www.gtk.org/
 BuildRequires:	autoconf >= 2.62
diff --git a/glib2-win32.patch b/glib2-win32.patch
index 5472d5b..dea9ef9 100644
--- a/glib2-win32.patch
+++ b/glib2-win32.patch
@@ -87,3 +87,27 @@
  
  #include "glib.h"
  #include "gthreadprivate.h"
+--- glib-2.52.1/glib/gfileutils.c.orig	2017-04-08 07:47:34.000000000 +0200
++++ glib-2.52.1/glib/gfileutils.c	2017-04-10 21:52:01.204735832 +0200
+@@ -317,6 +317,11 @@
+ g_file_test (const gchar *filename,
+              GFileTest    test)
+ {
++#ifdef G_OS_WIN32
++  int attributes;
++  wchar_t *wfilename;
++#endif
++
+   g_return_val_if_fail (filename != NULL, FALSE);
+ 
+ #ifdef G_OS_WIN32
+@@ -327,8 +332,7 @@
+ #  ifndef FILE_ATTRIBUTE_DEVICE
+ #    define FILE_ATTRIBUTE_DEVICE 64
+ #  endif
+-  int attributes;
+-  wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
++  wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
+ 
+   if (wfilename == NULL)
+     return FALSE;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-glib2.git/commitdiff/59b1e58093367e493e6e4a426622f0fc72213526



More information about the pld-cvs-commit mailing list