summaryrefslogtreecommitdiff
path: root/misc/tmux
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2020-07-17 13:21:46 +0000
committerhauke <hauke@pkgsrc.org>2020-07-17 13:21:46 +0000
commitd1ecc6680b5a9c1875a2983fef88635a40bd6c71 (patch)
tree1fe20ad6af11af45b2de5081eeb033261509f658 /misc/tmux
parentad2f80e3dba33353cea9cea3188acd83e10015f3 (diff)
downloadpkgsrc-d1ecc6680b5a9c1875a2983fef88635a40bd6c71.tar.gz
Un-break tmux build on MacOS X 10.4.
Diffstat (limited to 'misc/tmux')
-rw-r--r--misc/tmux/distinfo4
-rw-r--r--misc/tmux/patches/patch-compat_daemon-darwin.c16
-rw-r--r--misc/tmux/patches/patch-osdep-darwin.c46
3 files changed, 65 insertions, 1 deletions
diff --git a/misc/tmux/distinfo b/misc/tmux/distinfo
index e1d761b367e..5e51362d938 100644
--- a/misc/tmux/distinfo
+++ b/misc/tmux/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.46 2020/06/13 21:42:43 leot Exp $
+$NetBSD: distinfo,v 1.47 2020/07/17 13:21:46 hauke Exp $
SHA1 (tmux-3.1b.tar.gz) = 52ab7bbc8f5c48955b170f2473f9515cc31653b5
RMD160 (tmux-3.1b.tar.gz) = 10bd0c871da3fd9c450408c96bbc7231257e40e4
SHA512 (tmux-3.1b.tar.gz) = fd5269f5f58ad20c35ece24af74035e622e16511baa331717bded5edcbfd46c1847fd86c02431a7d889ce7d5bec89c8177a680ca60e9ca821f13065d26ca7fa1
Size (tmux-3.1b.tar.gz) = 561152 bytes
+SHA1 (patch-compat_daemon-darwin.c) = e8feeb4b100e73ab197eb2fd776fa648a1da28e4
+SHA1 (patch-osdep-darwin.c) = 4bcb0705e3ffa87df614e0946121b0ae66ad3f53
diff --git a/misc/tmux/patches/patch-compat_daemon-darwin.c b/misc/tmux/patches/patch-compat_daemon-darwin.c
new file mode 100644
index 00000000000..d664c286378
--- /dev/null
+++ b/misc/tmux/patches/patch-compat_daemon-darwin.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-compat_daemon-darwin.c,v 1.1 2020/07/17 13:21:46 hauke Exp $
+
+No such fanciness in early (ppc) MacOS X
+
+--- compat/daemon-darwin.c.orig 2020-04-14 13:10:35.000000000 +0000
++++ compat/daemon-darwin.c
+@@ -49,7 +49,9 @@
+
+ #include <mach/mach.h>
+
++#if !defined (__POWERPC__)
+ #include <Availability.h>
++#endif /*__POWERPC__*/
+ #include <unistd.h>
+
+ void daemon_darwin(void);
diff --git a/misc/tmux/patches/patch-osdep-darwin.c b/misc/tmux/patches/patch-osdep-darwin.c
new file mode 100644
index 00000000000..d5595b1a31c
--- /dev/null
+++ b/misc/tmux/patches/patch-osdep-darwin.c
@@ -0,0 +1,46 @@
+$NetBSD: patch-osdep-darwin.c,v 1.3 2020/07/17 13:21:46 hauke Exp $
+
+No such fanciness in early (ppc) MacOS X
+
+--- osdep-darwin.c.orig 2020-05-04 08:06:23.000000000 +0000
++++ osdep-darwin.c
+@@ -19,9 +19,11 @@
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+
++#if !defined (__POWERPC__)
+ #include <Availability.h>
+-#include <event.h>
+ #include <libproc.h>
++#endif /*__POWERPC__*/
++#include <event.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+@@ -37,7 +39,9 @@ struct event_base *osdep_event_init(void
+ char *
+ osdep_get_name(int fd, __unused char *tty)
+ {
+-#ifdef __MAC_10_7
++#if defined (__POWERPC__)
++ return (NULL);
++#elif defined (__MAC_10_7)
+ struct proc_bsdshortinfo bsdinfo;
+ pid_t pgrp;
+ int ret;
+@@ -71,6 +75,7 @@ osdep_get_name(int fd, __unused char *tt
+ char *
+ osdep_get_cwd(int fd)
+ {
++#if !defined (__POWERPC__)
+ static char wd[PATH_MAX];
+ struct proc_vnodepathinfo pathinfo;
+ pid_t pgrp;
+@@ -85,6 +90,7 @@ osdep_get_cwd(int fd)
+ strlcpy(wd, pathinfo.pvi_cdir.vip_path, sizeof wd);
+ return (wd);
+ }
++#endif /*__POWERPC__*/
+ return (NULL);
+ }
+