Subject: pkg/30455: glib2 on macosx 10.4 (tiger) and non-blocking I/O
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <reilles@loria.fr>
List: pkgsrc-bugs
Date: 06/07/2005 16:43:00
>Number:         30455
>Category:       pkg
>Synopsis:       glib2 on macosx 10.4 (tiger) and non-blocking I/O
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 07 16:43:00 +0000 2005
>Originator:     Antoine Reilles
>Release:        
>Organization:
loria
>Environment:
Darwin bonzai.loria.fr 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc
>Description:
some glib2 applications do not work under tiger, due to a problem with non blocking I/O

I added a patch from the darrwinports guys (thanks toby !), which fixed this issue, so irssi will work fine.
>How-To-Repeat:
installs glib2 and apps using it on tiger, they will block.
Apply the patch, they work much better ;-)
>Fix:
Here a patch, adding the tiger patch (just detecting tiger from older macosx releases):

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/glib2/distinfo,v
retrieving revision 1.48
diff -u -r1.48 distinfo
--- distinfo    18 May 2005 10:56:09 -0000      1.48
+++ distinfo    7 Jun 2005 16:35:03 -0000
@@ -12,3 +12,4 @@
 SHA1 (patch-ag) = 3917075e80139e0bd937ee9c2b42745fa6e69747
 SHA1 (patch-ah) = e30ef18e474699d2b2cf3e7d1c9f36062fad1c73
 SHA1 (patch-ai) = 960ff87b0ef869df0194839a752941d0bbb1ee9e
+SHA1 (patch-aj) = 16bd3903f23ca6c4dc712eab1a33f9e77a219f30
--- /dev/null   2005-06-07 18:35:20.000000000 +0200
+++ patches/patch-aj    2005-06-07 18:32:31.000000000 +0200
@@ -0,0 +1,11 @@
+--- glib/gmain.c.orig  2005-06-07 18:31:19.000000000 +0200
++++ glib/gmain.c       2005-06-07 18:32:01.000000000 +0200
+@@ -52,7 +52,7 @@
+ /* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0,
+  * so we prefer our own poll emulation.
+  */