<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f8faf1bb38f758244545afbedf23730331b0f74b">https://github.com/macports/macports-ports/commit/f8faf1bb38f758244545afbedf23730331b0f74b</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f8faf1bb38f screen: fix build on Tiger
</span>f8faf1bb38f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f8faf1bb38f758244545afbedf23730331b0f74b
</span>Author: Evan Miller <emmiller@gmail.com>
AuthorDate: Thu Nov 18 22:19:58 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> screen: fix build on Tiger
</span>---
sysutils/screen/Portfile | 8 ++-
.../{patch-apple.diff => patch-apple-screen.diff} | 59 ++--------------------
.../{patch-apple.diff => patch-apple-window.diff} | 49 +-----------------
3 files changed, 13 insertions(+), 103 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/screen/Portfile b/sysutils/screen/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1ff90e11c00..80467f6c4da 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/screen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/screen/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,7 +41,8 @@ checksums ${distname}${extract.suffix} \
</span> sha256 dcd2786d82865fb10542c20e97d7052110f7ca9a551f2ab5628c607f20e2bb2f \
size 4883
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-apple.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-apple-screen.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-apple-window.diff \
</span> patch-acconfig.h.diff \
patch-configure_no_implicit_defs.diff \
patch-xcode-12-implicit-function-fixes.diff
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -77,6 +78,11 @@ platform darwin {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin 8 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Tiger lacks vproc.h and _CS_DARWIN_USER_TEMP_DIR, just nix the screen.c patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-delete patch-apple-screen.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> notes "
Any screens running before upgrading, will not be available, post-install.
"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/screen/files/patch-apple.diff b/sysutils/screen/files/patch-apple-screen.diff
</span>similarity index 57%
copy from sysutils/screen/files/patch-apple.diff
copy to sysutils/screen/files/patch-apple-screen.diff
<span style='display:block; white-space:pre;color:#808080;'>index 10918744ebe..4bf1366fd7a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/screen/files/patch-apple.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/screen/files/patch-apple-screen.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,4 +1,4 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Apple's changes between upstream screen-4.0.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Apple's screen.c changes between upstream screen-4.0.3
</span> and their release of screen, called screen-24.
You can view the screen-24 source at
https://opensource.apple.com/tarballs/screen/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,6 +11,10 @@ This patch was then rebased against the latest upstream
</span> GNU Screen, which was version 4.6.2 and no longer required
many of Apple's changes. This was done by David Gilman
for MacPorts.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This patch is maintained separately from the window.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+changes since vproc.h and _CS_DARWIN_USER_TEMP_DIR require
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+macOS 10.5 or later.
</span> --- screen.c 2021-05-08 19:39:20.092413588 -0400
+++ screen.c 2021-05-08 19:48:03.152597182 -0400
@@ -118,6 +118,15 @@
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,56 +62,3 @@ for MacPorts.
</span> /* This guarantees that the session owner is listed, even when we
* start detached. From now on we should not refer to 'LoginName'
* any more, use users->u_name instead.
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- window.c 2021-05-08 19:39:20.102441294 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ window.c 2021-05-08 19:40:40.447225064 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -33,6 +33,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <sys/stat.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <signal.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <fcntl.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <unistd.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifndef sun
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # include <sys/ioctl.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1682,6 +1685,40 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return r;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef RUN_LOGIN
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+/*
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * All of the logic to maintain utmpx is now built into /usr/bin/login, so
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ * all we need to do is call it, and pass the shell command to it.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+extern char *LoginName;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+static int
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+run_login(const char *path, char *const argv[], char *const envp[])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+{
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ const char *shargs[MAXARGS + 1 + 3];
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ const char **fp, **tp;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (access(path, X_OK) < 0)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ shargs[0] = "login";
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ shargs[1] = (*argv[0] == '-') ? "-pfq" : "-pflq";
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ shargs[2] = LoginName;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ shargs[3] = path;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fp = (const char **)argv + 1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ tp = shargs + 4;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* argv has already been check for length */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ while ((*tp++ = *fp++) != NULL) {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ /* shouldn't return unless there was an error */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return (execve("/usr/bin/login", (char *const*)shargs, envp));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+/* replace the following occurrences of execve() with run_login() */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#define execve run_login
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif /* RUN_LOGIN */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif /* __APPLE__ */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- void
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- FreePseudowin(w)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- struct win *w;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/screen/files/patch-apple.diff b/sysutils/screen/files/patch-apple-window.diff
</span>similarity index 55%
rename from sysutils/screen/files/patch-apple.diff
rename to sysutils/screen/files/patch-apple-window.diff
<span style='display:block; white-space:pre;color:#808080;'>index 10918744ebe..3d9d9fb0bbb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/screen/files/patch-apple.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/screen/files/patch-apple-window.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,4 +1,4 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Apple's changes between upstream screen-4.0.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Apple's window.c changes between upstream screen-4.0.3
</span> and their release of screen, called screen-24.
You can view the screen-24 source at
https://opensource.apple.com/tarballs/screen/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,53 +11,6 @@ This patch was then rebased against the latest upstream
</span> GNU Screen, which was version 4.6.2 and no longer required
many of Apple's changes. This was done by David Gilman
for MacPorts.
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- screen.c 2021-05-08 19:39:20.092413588 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ screen.c 2021-05-08 19:48:03.152597182 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -118,6 +118,15 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "logfile.h" /* islogfile, logfflush, logfopen/logfclose */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <TargetConditionals.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <vproc.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <vproc_priv.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <err.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef DEBUG
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- FILE *dfp;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1206,6 +1215,16 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Attacher();
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* NOTREACHED */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else if (!multi && real_uid == eff_uid) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ static char DarwinSockDir[PATH_MAX];
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (confstr(_CS_DARWIN_USER_TEMP_DIR, DarwinSockDir, sizeof(DarwinSockDir))) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ strlcat(DarwinSockDir, ".screen", sizeof(DarwinSockDir));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ SockDir = DarwinSockDir;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif /* __APPLE__ */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef MULTIUSER
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (multiattach)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Panic(0, "Can't create sessions of other users.");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1314,6 +1333,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- freopen("/dev/null", "w", stderr);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- debug("-- screen.back debug started\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if defined(__APPLE__) && !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (_vprocmgr_detach_from_console(0) != NULL)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ errx(1, "can't detach from console");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* This guarantees that the session owner is listed, even when we
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * start detached. From now on we should not refer to 'LoginName'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * any more, use users->u_name instead.
</span> --- window.c 2021-05-08 19:39:20.102441294 -0400
+++ window.c 2021-05-08 19:40:40.447225064 -0400
@@ -33,6 +33,9 @@
</pre><pre style='margin:0'>
</pre>