Opened 12 years ago

Last modified 4 years ago

#34040 reopened defect

py**-gobject: annoying startup warnings

Reported by: afb@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), jyrkiwahlstedt, m214089
Port: py-gobject

Description

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

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

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

Attachments (1)

gio-typesdefs-change-some-enums-to-flags.patch (1.2 KB) - added by afb@… 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by afb@…

Resolution: fixed
Status: newclosed

Fixed, r91978.

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Cc: mcalhoun@… jwa@… added

comment:3 Changed 8 years ago by mspieg@…

Resolution: fixed
Status: closedreopened

The annoying warnings have returned at least in port py27-gobject @2.28.6_3 e.g.

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

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

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

on Mac OSX 10.11.1.

Looking at the file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/pygobject/2.0/defs/gio-types.defs

It is clear that this patch is no longer being applied in more recent ports e.g.

grep define-enum /opt/local/Library/Frameworks/Python.framework/Versions/2.7/share/pygobject/2.0/defs/gio-types.defs | grep -i flag

(define-enum MountMountFlags

(define-enum DriveStartFlags

(define-enum SocketMsgFlags

which is precisely what get's replaced by the previous patch. I haven't checked to see if the old patch has the right line numbers but it should be easy enough to fix. I also haven't checked earlier python versions of gobject. All help greatly appreciated.

comment:4 Changed 7 years ago by m214089

Cc: m214089 added

comment:5 Changed 4 years ago by jmroot (Joshua Root)

Port: py-gobject added; py25-gobject py26-gobject py27-gobject removed
Note: See TracTickets for help on using tickets.