pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47373: add proposed patch pkgsrc/devel/py-gobject to suppress warnings



>Number:         47373
>Category:       pkg
>Synopsis:       add proposed patch pkgsrc/devel/py-gobject to suppress warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 29 09:20:01 +0000 2012
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzoneX 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
the following patch (https://bugzilla.gnome.org/show_bug.cgi?id=668522) gets 
over the following python warnings:
  ** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in 
fact it is of type 'GFlags'

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

  ** WARNING **: Trying to register gtype 'GSocketMsgFlags' as flags when in 
fact it is of type 'GEnum'
>How-To-Repeat:

>Fix:
richard@devzoneX:~/src/pkgsrc/devel/py-gobject$ cvs diff
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/py-gobject/distinfo,v
retrieving revision 1.24
diff -u -p -r1.24 distinfo
--- distinfo    14 May 2012 00:15:28 -0000      1.24
+++ distinfo    29 Dec 2012 09:15:00 -0000
@@ -8,4 +8,5 @@ SHA1 (patch-ab) = f9ec40fcac11fe9d6625b6
 SHA1 (patch-ac) = 083e691cb13dbefeece505a7b6596c69ec8491f7
 SHA1 (patch-ad) = 1fa6c9ec6c3926d2915b7fa0391245bf7ca2daf4
 SHA1 (patch-configure) = 0ba83de34c3205ee6e3cbba9436bac05cc1bfd33
+SHA1 (patch-gio_gio-types.defs) = cd8cb198c8720ca0281837e8f863aa9554b927a4
 SHA1 (patch-pygi_info.c) = cd2d0f0b16a84c05b805edec89d4508507811c49
Index: patches/patch-gio_gio-types.defs
===================================================================
RCS file: patches/patch-gio_gio-types.defs
diff -N patches/patch-gio_gio-types.defs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-gio_gio-types.defs    29 Dec 2012 09:15:00 -0000
@@ -0,0 +1,31 @@
+$NetBSD$
+https://bugzilla.gnome.org/show_bug.cgi?id=668522
+--- gio/gio-types.defs.orig    2011-06-13 16:33:49.000000000 +0000
++++ gio/gio-types.defs
+@@ -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")



Home | Main Index | Thread Index | Old Index