Fwd: ports/144760: sysutils/tmux: shell not working in tmux any more
wen heping
wenheping at gmail.com
Wed Mar 17 02:47:00 UTC 2010
Hi,
Would you test this patch ?
If it works, I shall commit it.
Regards,
wen
---------- Forwarded message ----------
From: wen heping <wenheping at gmail.com>
Date: Wed, Mar 17, 2010 at 9:24 AM
Subject: Re: ports/144760: sysutils/tmux: shell not working in tmux any more
To: Barak Michener <me at barakmich.com>
Thank your test.
Would you test this one ?
diff -urN tmux.orig/Makefile tmux/Makefile
--- tmux.orig/Makefile 2010-03-17 09:09:55.000000000 +0800
+++ tmux/Makefile 2010-03-17 09:21:42.000000000 +0800
@@ -24,6 +24,11 @@
PORTDOCS= CHANGES FAQ NOTES
PORTEXAMPLES= *
+.include <bsd.port.pre.mk>
+.if ${OSVERSION} <= 703100
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/^#define HAVE_TREE_H/d' \
${WRKSRC}/configure
@@ -45,4 +50,4 @@
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN tmux.orig/files/extra-patch-configure tmux/files/extra-patch-configure
--- tmux.orig/files/extra-patch-configure 1970-01-01
08:00:00.000000000 +0 800
+++ tmux/files/extra-patch-configure 2010-03-17 09:12:29.000000000 +0800
@@ -0,0 +1,10 @@
+--- configure.orig 2010-03-17 09:12:09.000000000 +0800
++++ configure 2010-03-17 09:11:28.000000000 +0800
+@@ -204,6 +204,7 @@
+ FreeBSD|DragonFly)
+ 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 at 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 work
> great :)
>
> This is my first email to the ports list, so I don't have much Makefile-foo.
> The patch you gave me didn't work, but I think you're on the right track...
>
More information about the freebsd-ports
mailing list