Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2013 21:55:59 +0200
From:      nemysis <nemysis@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@FreeBSD.org
Subject:   [PATCH] devel/py27-gobject: Fix GFlags messages
Message-ID:  <201309131955.r8DJtwdn062517@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	nemysis
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] devel/py27-gobject: Fix GFlags messages
>Severity:	non-critical
>Priority:	medium
>Category:	ports
>Class:		change-request
>Release:	FreeBSD 9.1-RELEASE-p20 amd64
>Environment:
System: FreeBSD nemysis4now 9.1-RELEASE-p20 FreeBSD 9.1-RELEASE-p20 #0: Tue Sep 10 17:07:53 UTC 2013
>Description:

Added file(s):
- files/patch-gio-gio-types.defs

Port maintainer (gnome@FreeBSD.org) is cc'd.

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:

Build log

https://redports.org/buildarchive/20130912232301-7036/


Without this patch i have get these messages with graphics/boxer and many other Ports

** (process:17507): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:17507): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:17507): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'

>Fix:

--- py27-gobject-2.28.6_3.patch begins here ---
diff -ruN /usr/ports/devel/py-gobject/files/patch-gio-gio-types.defs ./files/patch-gio-gio-types.defs
--- /usr/ports/devel/py-gobject/files/patch-gio-gio-types.defs	1970-01-01 01:00:00.000000000 +0100
+++ ./files/patch-gio-gio-types.defs	2013-09-13 01:16:47.000000000 +0200
@@ -0,0 +1,29 @@
+--- gio/gio-types.defs.orig	2011-06-13 18:33:49.000000000 +0200
++++ gio/gio-types.defs	2013-09-13 01:14:09.000000000 +0200
+@@ -526,7 +526,7 @@
+   )
+ )
+ 
+-(define-enum MountMountFlags
++(define-flags MountMountFlags
+   (in-module "gio")
+   (c-name "GMountMountFlags")
+   (gtype-id "G_TYPE_MOUNT_MOUNT_FLAGS")
+@@ -545,7 +545,7 @@
+   )
+ )
+ 
+-(define-enum DriveStartFlags
++(define-flags DriveStartFlags
+   (in-module "gio")
+   (c-name "GDriveStartFlags")
+   (gtype-id "G_TYPE_DRIVE_START_FLAGS")
+@@ -770,7 +770,7 @@
+   )
+ )
+ 
+-(define-enum SocketMsgFlags
++(define-flags SocketMsgFlags
+   (in-module "gio")
+   (c-name "GSocketMsgFlags")
+   (gtype-id "G_TYPE_SOCKET_MSG_FLAGS")
--- py27-gobject-2.28.6_3.patch ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309131955.r8DJtwdn062517>