Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2010 10:46:59 +0800
From:      wen heping <wenheping@gmail.com>
To:        erwan@rail.eu.org
Cc:        ports@freebsd.org
Subject:   Fwd: ports/144760: sysutils/tmux: shell not working in tmux any more
Message-ID:  <7be7a2801003161946t3d751984laf3d86e0631bf782@mail.gmail.com>
In-Reply-To: <7be7a2801003161824ja00f67ar92ba71dacb9781ec@mail.gmail.com>
References:  <7be7a2801003151736m633f6503n81fab99617a6a9b4@mail.gmail.com> <20100316221624.GC3099@rail.eu.org> <7be7a2801003161730v6fc3b525q61563921ab1e86a8@mail.gmail.com> <4BA02904.4040807@barakmich.com> <7be7a2801003161824ja00f67ar92ba71dacb9781ec@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

   Would you test this patch ?
  If it works, I shall commit it.


Regards,
wen


---------- Forwarded message ----------
From: wen heping <wenheping@gmail.com>
Date: Wed, Mar 17, 2010 at 9:24 AM
Subject: Re: ports/144760: sysutils/tmux: shell not working in tmux any mor=
e
To: Barak Michener <me@barakmich.com>


Thank your test.

Would you test this one ?

diff -urN tmux.orig/Makefile tmux/Makefile
--- tmux.orig/Makefile =A02010-03-17 09:09:55.000000000 +0800
+++ tmux/Makefile =A0 =A0 =A0 2010-03-17 09:21:42.000000000 +0800
@@ -24,6 +24,11 @@
=A0PORTDOCS=3D =A0 =A0 =A0CHANGES FAQ NOTES
=A0PORTEXAMPLES=3D =A0*

+.include <bsd.port.pre.mk>
+.if ${OSVERSION} <=3D 703100
+EXTRA_PATCHES=3D ${FILESDIR}/extra-patch-configure
+.endif
+
=A0post-patch:
=A0 =A0 =A0 =A0@${REINPLACE_CMD} -e '/^#define HAVE_TREE_H/d' \
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0${WRKSRC}/configure
@@ -45,4 +50,4 @@
=A0 =A0 =A0 =A0@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
=A0.endif

-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN tmux.orig/files/extra-patch-configure tmux/files/extra-patch-conf=
igure
--- tmux.orig/files/extra-patch-configure =A0 =A0 =A0 1970-01-01
08:00:00.000000000 +0 =A0 =A0 =A0 =A0 =A0 800
+++ tmux/files/extra-patch-configure =A0 =A02010-03-17 09:12:29.000000000 +=
0800
@@ -0,0 +1,10 @@
+--- configure.orig =A0 =A0 2010-03-17 09:12:09.000000000 +0800
++++ configure =A02010-03-17 09:11:28.000000000 +0800
+@@ -204,6 +204,7 @@
+ =A0 =A0 FreeBSD|DragonFly)
+ =A0 =A0 =A0 cat <<EOF >>$CONFIG_H
+ #define HAVE_ASPRINTF
++#define HAVE_BROKEN_KQUEUE
+ #define HAVE_BZERO
+ #define HAVE_DAEMON
+ #define HAVE_FGETLN




















On Wed, Mar 17, 2010 at 8:57 AM, Barak Michener <me@barakmich.com> wrote:
> I tried your patch -- it didn't work. However, David's message helps:
>
> Looking inside the configure script for tmux in the source package, there=
's
> a line for Darwin-based systems:
>
> #define HAVE_BROKEN_KQUEUE
>
> copying that line to the FreeBSD section and compiling makes tmux-1.2 wor=
k
> great :)
>
> This is my first email to the ports list, so I don't have much Makefile-f=
oo.
> The patch you gave me didn't work, but I think you're on the right track.=
..
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7be7a2801003161946t3d751984laf3d86e0631bf782>