NetBSD Problem Report #47373

From www@NetBSD.org  Sat Dec 29 09:15:36 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id CF40763D82E
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 29 Dec 2012 09:15:35 +0000 (UTC)
Message-Id: <20121229091534.C042963D82E@www.NetBSD.org>
Date: Sat, 29 Dec 2012 09:15:34 +0000 (UTC)
From: richard.palo@baou.fr
Reply-To: richard.palo@baou.fr
To: gnats-bugs@NetBSD.org
Subject: add proposed patch pkgsrc/devel/py-gobject to suppress warnings
X-Send-Pr-Version: www-1.0

>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")

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.