Subject: irssi under macosx 10.4 tiger (and glib2 problem)
To: None <tech-pkg@netbsd.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: tech-pkg
Date: 06/07/2005 20:42:33
--EuxKj2iCbKjpUGkD
Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL"
Content-Disposition: inline
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi all, =
=20
=
=20
I'm trying to set up pkgsrc under macosx 10.4, aka tiger. =
=20
I do have a little problem with irssi. =
=20
First, i had to patch glib2, to make it handle 10.4 non blocking I/O =
=20
(patch found in darwinport's cvs) (pkg/30455). =
=20
=
=20
Then, irssi still has problems, mainly with libtool. =
=20
I added a little patch to help gcc 4.0 (also found in darwinport's =
=20
cvs), but i had to copy =
=20
/usr/pkg/share/libtool/ltmain.sh to work/irssi-0.9.8/ltmain.sh to =
=20
pass the configure phase. =
=20
=
=20
I don;t know how to automatize this task elegantly in pkgsrc. There =
=20
are LIBTOOL_OVERRIDE, SHLIBTOOL_OVERRIDE and LTCONFIG_OVERRIDE, but =
=20
no LTMAIN_OVERRIDE to do this. =
=20
Should a LTMAIN_OVERRIDE be added in bsd.pkg.mk, or is it enough to =
=20
just add a ${CP} in pre-configure ? With this, irssi works just fine =
=20
under tiger. =
=20
=
=20
Thanks for your help, =
=20
antoine =
=20
=
=20
I include a first patch for irssi, and also my patch to glib2, since i'm no=
t sure my previous mail reached gnats-bugs@
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="irssi.diff"
Content-Transfer-Encoding: quoted-printable
Index: distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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) =3D 45d8161733f58ab3733022c823933bb1cc93a8e2
SHA1 (patch-ab) =3D c395fbeeb2dd15490f04f2cb2c94daf6c5955e85
SHA1 (patch-ac) =3D 9572891333279dc368f44c52f9584c34f10d7aa1
+SHA1 (patch-ad) =3D 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
+=20
+ #ifdef HAVE_CONFIG_H
+-#include "config.h"
++#include "../config.h"
+ #endif
+=20
+ #include <stdio.h>
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="glib2.diff"
Content-Transfer-Encoding: quoted-printable
? work
? patches/patch-aj
Index: distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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) =3D 3917075e80139e0bd937ee9c2b42745fa6e69747
SHA1 (patch-ah) =3D e30ef18e474699d2b2cf3e7d1c9f36062fad1c73
SHA1 (patch-ai) =3D 960ff87b0ef869df0194839a752941d0bbb1ee9e
+SHA1 (patch-aj) =3D 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=3DNULL, nfds=3D0,
+ * so we prefer our own poll emulation.
+ */
+-#ifdef _POLL_EMUL_H_
++#ifdef __APPLE__
+ #undef HAVE_POLL
+ #endif
+ =20
--vtzGhvizbBRQ85DL--
--EuxKj2iCbKjpUGkD
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iD8DBQFCpeqZ4VqmoGDE/mwRAgt4AJ0fOe0uUXYXfKpqd3QlzjdFN3F6owCfeE8c
vzuFayClcppJZRYSyaD3b/w=
=Sl//
-----END PGP SIGNATURE-----
--EuxKj2iCbKjpUGkD--