pkgsrc-Users archive

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

py27-gobject error?



I've installed OOF2 [1] on a NetBSD/amd64 6.1.5 machine after first downloading these packages (using pkg_fetch from ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/6.1.5/All), then installing them with pkg_add:

xfce4
modular-xorg-fonts
python27
py27-readline
ImageMagick
gtk2+
py27-gtk2
libgnomecanvas
blas
lapack
gcc3-f77
pkg-config
py-gobject-shared
gimp
firefox36


OOF2 does run in its GUI-mode but these warnings are printed in the terminal it is launched from:

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

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

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


Googling turned up this page:

http://gnats.netbsd.org/47373

so I edited /usr/pkg/share/pygobject/2.0/defs/gio-types.defs as shown in [2] below but the warnings didn't go away. Perhaps I'm barking up the wrong tree? Is it necessary to do anything to bring these changes into force?

If it's appropriate, could the py27-gobject package maintainer change gio-types.defs in the package collection as per the gnats Problem Report #47373?


Ray



[1]  http://www.ctcms.nist.gov/oof/oof2/



[2]

% diff -u /usr/pkg/share/pygobject/2.0/defs/gio-types.defs.orig /usr/pkg/share/pygobject/2.0/defs/gio-types.defs --- /usr/pkg/share/pygobject/2.0/defs/gio-types.defs.orig 2014-10-22 15:48:24.000000000 +1000 +++ /usr/pkg/share/pygobject/2.0/defs/gio-types.defs 2014-10-22 15:53:25.000000000 +1000
@@ -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