ports/154485: Patch for sysutils/tmux

Mike Stupalov landy2005 at gmail.com
Thu Feb 3 11:50:08 UTC 2011


>Number:         154485
>Category:       ports
>Synopsis:       Patch for sysutils/tmux
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 03 11:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Mike Stupalov
>Release:        6.4, 8.1
>Organization:
>Environment:
>Description:
Attached simple patch for port 'sysutils/tmux':

 - Remove mark BROKEN.
 - Added compat for closefrom() when ${OSVERSION} < 702104
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN sysutils/tmux.orig/Makefile sysutils/tmux/Makefile
--- sysutils/tmux.orig/Makefile	2011-01-13 03:56:00.000000000 +0300
+++ sysutils/tmux/Makefile	2011-02-03 14:25:47.000000000 +0300
@@ -32,8 +32,7 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 702104
-BROKEN=		fails to build with closefrom
-# More detailed message: http://svn.freebsd.org/viewvc/base/stable/7/sys/kern/syscalls.master?revision=195694&view=markup
+EXTRA_PATCHES=	${PATCHDIR}/extra-patch-configure
 .endif
 
 post-patch:
diff -ruN sysutils/tmux.orig/files/extra-patch-configure sysutils/tmux/files/extra-patch-configure
--- sysutils/tmux.orig/files/extra-patch-configure	1970-01-01 03:00:00.000000000 +0300
+++ sysutils/tmux/files/extra-patch-configure	2011-02-03 14:25:47.000000000 +0300
@@ -0,0 +1,18 @@
+--- configure.orig	2011-02-03 13:42:50.000000000 +0300
++++ configure	2011-02-03 13:45:11.000000000 +0300
+@@ -224,7 +224,6 @@
+ #define HAVE_ASPRINTF
+ #define HAVE_BROKEN_KQUEUE
+ #define HAVE_BZERO
+-#define HAVE_CLOSEFROM
+ #define HAVE_DAEMON
+ #define HAVE_FGETLN
+ #define HAVE_FORKPTY
+@@ -245,6 +244,7 @@
+ 	cat <<EOF >>$CONFIG_MK
+ LIBS+= -lcurses -lutil -levent
+ SRCS+= osdep-freebsd.c \
++	compat/closefrom.c \
+ 	compat/vis.c \
+ 	compat/unvis.c \
+ 	compat/imsg-buffer.c \


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list