Subject: chat/irssi under mac osx tiger
To: None <tech-pkg@netbsd.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: tech-pkg
Date: 06/07/2005 20:23:03
--Boundary_(ID_L1M0CQO0EDqnF4NjkKrRMA)
Content-type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Content-transfer-encoding: 7BIT

Hi all,

I'm trying to set up pkgsrc under macosx 10.4, aka tiger.
I do have a little problem with irssi.
First, i had to patch glib2, to make it handle 10.4 non blocking I/O
(patch found in darwinport's cvs) (pkg/30455).

Then, irssi still has problems, mainly with libtool.
I added a little patch to help gcc 4.0 (also found in darwinport's  
cvs), but i had to copy
/usr/pkg/share/libtool/ltmain.sh to work/irssi-0.9.8/ltmain.sh to  
pass the configure phase.

I don;t know how to automatize this task elegantly in pkgsrc. There  
are LIBTOOL_OVERRIDE, SHLIBTOOL_OVERRIDE and LTCONFIG_OVERRIDE, but  
no LTMAIN_OVERRIDE to do this.
Should a LTMAIN_OVERRIDE be added in bsd.pkg.mk, or is it enough to  
just add a ${CP} in pre-configure ? With this, irssi works just fine  
under tiger.

Thanks for your help,
antoine

a first patch for irssi:

--Boundary_(ID_L1M0CQO0EDqnF4NjkKrRMA)
Content-type: application/octet-stream; x-unix-mode=0644; name=irssi.diff
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=irssi.diff

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/chat/irssi/distinfo,v
retrieving revision 1.18
diff -u -r1.18 distinfo
--- distinfo	20 Mar 2005 05:05:59 -0000	1.18
+++ distinfo	7 Jun 2005 18:00:59 -0000
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 45d8161733f58ab3733022c823933bb1cc93a8e2
 SHA1 (patch-ab) = c395fbeeb2dd15490f04f2cb2c94daf6c5955e85
 SHA1 (patch-ac) = 9572891333279dc368f44c52f9584c34f10d7aa1
+SHA1 (patch-ad) = 80c668c8a9441dcd1942711de6da8c5330ac1c86
--- /dev/null	2005-06-07 19:46:15.000000000 +0200
+++ patches/patch-ad	2005-06-07 13:34:15.000000000 +0200
@@ -0,0 +1,11 @@
+--- src/common.h.orig	2005-06-07 13:33:34.000000000 +0200
++++ src/common.h	2005-06-07 13:33:58.000000000 +0200
+@@ -14,7 +14,7 @@
+ #define DEFAULT_SERVER_ADD_PORT 6667
+ 
+ #ifdef HAVE_CONFIG_H
+-#include "config.h"
++#include "../config.h"
+ #endif
+ 
+ #include <stdio.h>

--Boundary_(ID_L1M0CQO0EDqnF4NjkKrRMA)
Content-type: text/plain; charset=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT


The patch for glib2 (i'm not sure my previous mail reached gnats-bugs)

--Boundary_(ID_L1M0CQO0EDqnF4NjkKrRMA)
Content-type: application/octet-stream; x-unix-mode=0644; name=glib2.diff
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=glib2.diff

? work
? patches/patch-aj
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.
+  */
+-#ifdef _POLL_EMUL_H_
++#ifdef __APPLE__
+ #undef HAVE_POLL
+ #endif
+    

--Boundary_(ID_L1M0CQO0EDqnF4NjkKrRMA)--