Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/tmux/usr.bin/tmux Adjust reachover Makefiles af...
details: https://anonhg.NetBSD.org/src/rev/020eb056ee63
branches: trunk
changeset: 768503:020eb056ee63
user: jmmv <jmmv%NetBSD.org@localhost>
date: Wed Aug 17 18:51:10 2011 +0000
description:
Adjust reachover Makefiles after tmux 1.5 import.
The new code has quite a bit of warnings to be fixed. I did not realize
until merge-resolving time that christos@ had fixed such warnings in our
copy of tmux 1.4 and assumed these warnings were new and thus could just
be disabled.
Therefore, I'm disabling some global warning checks as a temporary measure
to bring the tree back to a buildable state. I will take a look at these
warnings afterwards.
diffstat:
external/bsd/tmux/usr.bin/tmux/Makefile | 92 +++++++++++++++++++++--------
external/bsd/tmux/usr.bin/tmux/config.h | 50 ----------------
external/bsd/tmux/usr.bin/tmux/version.txt | 1 -
3 files changed, 67 insertions(+), 76 deletions(-)
diffs (243 lines):
diff -r d16aa8fb2e6f -r 020eb056ee63 external/bsd/tmux/usr.bin/tmux/Makefile
--- a/external/bsd/tmux/usr.bin/tmux/Makefile Wed Aug 17 18:48:34 2011 +0000
+++ b/external/bsd/tmux/usr.bin/tmux/Makefile Wed Aug 17 18:51:10 2011 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2011/08/16 07:57:21 christos Exp $
+# $NetBSD: Makefile,v 1.5 2011/08/17 18:51:10 jmmv Exp $
.include <bsd.own.mk>
-WARNS?= 4
SRCDIR= ${NETBSDSRCDIR}/external/bsd/tmux/dist
.PATH: ${SRCDIR}
@@ -11,7 +10,12 @@
PROG= tmux
MAN= tmux.1
-SRCS= attributes.c
+WARNS?= 4
+CWARNFLAGS+= -Wno-cast-qual
+CWARNFLAGS+= -Wno-pointer-sign
+
+SRCS= arguments.c
+SRCS+= attributes.c
SRCS+= cfg.c
SRCS+= client.c
SRCS+= clock.c
@@ -27,14 +31,12 @@
SRCS+= cmd-clock-mode.c
SRCS+= cmd-command-prompt.c
SRCS+= cmd-confirm-before.c
-SRCS+= cmd-copy-buffer.c
SRCS+= cmd-copy-mode.c
SRCS+= cmd-delete-buffer.c
SRCS+= cmd-detach-client.c
SRCS+= cmd-display-message.c
SRCS+= cmd-display-panes.c
SRCS+= cmd-find-window.c
-SRCS+= cmd-generic.c
SRCS+= cmd-has-session.c
SRCS+= cmd-if-shell.c
SRCS+= cmd-join-pane.c
@@ -42,8 +44,6 @@
SRCS+= cmd-kill-server.c
SRCS+= cmd-kill-session.c
SRCS+= cmd-kill-window.c
-SRCS+= cmd-last-pane.c
-SRCS+= cmd-last-window.c
SRCS+= cmd-link-window.c
SRCS+= cmd-list-buffers.c
SRCS+= cmd-list-clients.c
@@ -54,22 +54,17 @@
SRCS+= cmd-list-windows.c
SRCS+= cmd-list.c
SRCS+= cmd-load-buffer.c
-SRCS+= cmd-lock-client.c
SRCS+= cmd-lock-server.c
-SRCS+= cmd-lock-session.c
SRCS+= cmd-move-window.c
SRCS+= cmd-new-session.c
SRCS+= cmd-new-window.c
-SRCS+= cmd-next-layout.c
-SRCS+= cmd-next-window.c
SRCS+= cmd-paste-buffer.c
SRCS+= cmd-pipe-pane.c
-SRCS+= cmd-previous-layout.c
-SRCS+= cmd-previous-window.c
SRCS+= cmd-refresh-client.c
SRCS+= cmd-rename-session.c
SRCS+= cmd-rename-window.c
SRCS+= cmd-resize-pane.c
+SRCS+= cmd-respawn-pane.c
SRCS+= cmd-respawn-window.c
SRCS+= cmd-rotate-window.c
SRCS+= cmd-run-shell.c
@@ -83,12 +78,10 @@
SRCS+= cmd-set-buffer.c
SRCS+= cmd-set-environment.c
SRCS+= cmd-set-option.c
-SRCS+= cmd-set-window-option.c
SRCS+= cmd-show-buffer.c
SRCS+= cmd-show-environment.c
SRCS+= cmd-show-messages.c
SRCS+= cmd-show-options.c
-SRCS+= cmd-show-window-options.c
SRCS+= cmd-source-file.c
SRCS+= cmd-split-window.c
SRCS+= cmd-start-server.c
@@ -112,12 +105,12 @@
SRCS+= key-string.c
SRCS+= layout-custom.c
SRCS+= layout-set.c
-SRCS+= layout-string.c
SRCS+= layout.c
SRCS+= log.c
SRCS+= mode-key.c
SRCS+= names.c
SRCS+= options.c
+SRCS+= options-table.c
SRCS+= osdep-netbsd.c
SRCS+= paste.c
SRCS+= resize.c
@@ -145,24 +138,73 @@
SRCS+= xterm-keys.c
# Files in compat/
+#SRCS+= forkpty-hpux.c
SRCS+= imsg-buffer.c
SRCS+= imsg.c
SRCS+= strtonum.c
#SRCS+= unvis.c
#SRCS+= vis.c
-VERSION!= cat "$(.CURDIR)/version.txt"
-CPPFLAGS+= -DBUILD="\"$(VERSION)\""
CPPFLAGS+= -I${SRCDIR} -I${.CURDIR}
-COPTS.cmd-paste-buffer.c+= -Wno-stack-protector
-COPTS.cmd-server-info.c+= -Wno-stack-protector
-COPTS.imsg-buffer.c+= -Wno-stack-protector
-COPTS.imsg.c+= -Wno-stack-protector
-COPTS.screen.c+= -Wno-stack-protector
-COPTS.status.c+= -Wno-format-nonliteral
+# The following flags have been extracted from the compiler command-line
+# generated by Automake and Autoconf when building tmux under NetBSD.
+# Would be nicer to stick this in a config.h file, but the upstream code
+# does not use one at this moment.
+CPPFLAGS+= -DPACKAGE_TARNAME=\"tmux\"
+CPPFLAGS+= -DPACKAGE_VERSION=\"1.5\"
+CPPFLAGS+= -DPACKAGE_STRING=\"tmux\ 1.5\"
+CPPFLAGS+= -DPACKAGE_BUGREPORT=\"\"
+CPPFLAGS+= -DPACKAGE_URL=\"\"
+CPPFLAGS+= -DPACKAGE=\"tmux\"
+CPPFLAGS+= -DVERSION=\"1.5\"
+CPPFLAGS+= -DSTDC_HEADERS=1
+CPPFLAGS+= -DHAVE_SYS_TYPES_H=1
+CPPFLAGS+= -DHAVE_SYS_STAT_H=1
+CPPFLAGS+= -DHAVE_STDLIB_H=1
+CPPFLAGS+= -DHAVE_STRING_H=1
+CPPFLAGS+= -DHAVE_MEMORY_H=1
+CPPFL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PFLAGS+= -DHAVE_PROC_PID=1
+CPPFLAGS+= -DHAVE_DIRFD=1
-LDADD+= -levent -lterminfo -lutil
+LDADD+= -levent -lterminfo -lutil -lm
DPADD+= ${LIBEVENT} ${LIBTERMINFO} ${LIBUTIL}
.include <bsd.prog.mk>
diff -r d16aa8fb2e6f -r 020eb056ee63 external/bsd/tmux/usr.bin/tmux/config.h
--- a/external/bsd/tmux/usr.bin/tmux/config.h Wed Aug 17 18:48:34 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-/* NetBSD */
-#undef HAVE_ASPRINTF
-#undef HAVE_BROKEN_CMSG_FIRSTHDR
-#undef HAVE_BROKEN_CURSES_H
-#undef HAVE_BROKEN_KQUEUE
-#undef HAVE_BROKEN_POLL
-#undef HAVE_BZERO
-#undef HAVE_CLOSEFROM
-#undef HAVE_DAEMON
-#undef HAVE_DIRFD
-#undef HAVE_FCNTL_CLOSEM
-#undef HAVE_FGETLN
-#undef HAVE_FORKPTY
-#undef HAVE_GETOPT
-#undef HAVE_IMSG
-#undef HAVE_LIBUTIL_H
-#undef HAVE_PATHS_H
-#undef HAVE_PROC_PID
-#undef HAVE_PROGNAME
-#undef HAVE_PTY_H
-#undef HAVE_QUEUE_H
-#undef HAVE_SETPROCTITLE
-#undef HAVE_STDINT_H
-#undef HAVE_STRCASESTR
-#undef HAVE_STRLCAT
-#undef HAVE_STRLCPY
-#undef HAVE_STRSEP
-#undef HAVE_STRTONUM
-#undef HAVE_TREE_H
-#undef HAVE_UTIL_H
-#undef HAVE_U_INT
-#define HAVE_VIS
-#define HAVE_ASPRINTF
-#define HAVE_BZERO
-#define HAVE_CLOSEFROM
-#define HAVE_DAEMON
-#define HAVE_FGETLN
-#define HAVE_FORKPTY
-#define HAVE_GETOPT
-#define HAVE_PATHS_H
-#define HAVE_PROGNAME
-#define HAVE_SETENV
-#define HAVE_SETPROCTITLE
-#define HAVE_STDINT_H
-#define HAVE_STRCASESTR
-#define HAVE_STRLCAT
-#define HAVE_STRLCPY
-#define HAVE_STRSEP
-#define HAVE_UTIL_H
-#define HAVE_U_INT
diff -r d16aa8fb2e6f -r 020eb056ee63 external/bsd/tmux/usr.bin/tmux/version.txt
--- a/external/bsd/tmux/usr.bin/tmux/version.txt Wed Aug 17 18:48:34 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-1.4
Home |
Main Index |
Thread Index |
Old Index