[62355] trunk/dports/sysutils/screen
ryandesign at macports.org
ryandesign at macports.org
Mon Jan 4 17:07:53 PST 2010
Revision: 62355
http://trac.macports.org/changeset/62355
Author: ryandesign at macports.org
Date: 2010-01-04 17:07:52 -0800 (Mon, 04 Jan 2010)
Log Message:
-----------
screen: unbreak the build on leopard by bringing back the prior version of patch-screen.c; see #20862
Modified Paths:
--------------
trunk/dports/sysutils/screen/Portfile
Added Paths:
-----------
trunk/dports/sysutils/screen/files/patch-screen.c-leopard
Modified: trunk/dports/sysutils/screen/Portfile
===================================================================
--- trunk/dports/sysutils/screen/Portfile 2010-01-05 00:55:47 UTC (rev 62354)
+++ trunk/dports/sysutils/screen/Portfile 2010-01-05 01:07:52 UTC (rev 62355)
@@ -60,7 +60,7 @@
# We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
distfiles-append vproc_priv.h:launchd_priv_header
post-extract { file copy ${distpath}/vproc_priv.h ${worksrcpath} }
- patchfiles-append patch-config.h.in patch-configure patch-pty.c patch-window.c patch-screen.c
+ patchfiles-append patch-config.h.in patch-configure patch-pty.c patch-window.c patch-screen.c-leopard
}
platform darwin 10 {
Copied: trunk/dports/sysutils/screen/files/patch-screen.c-leopard (from rev 62348, trunk/dports/sysutils/screen/files/patch-screen.c)
===================================================================
--- trunk/dports/sysutils/screen/files/patch-screen.c-leopard (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-screen.c-leopard 2010-01-05 01:07:52 UTC (rev 62355)
@@ -0,0 +1,26 @@
+--- screen.c.orig 2009-01-21 12:06:11.000000000 +0800
++++ screen.c 2009-01-21 12:08:27.000000000 +0800
+@@ -101,6 +101,11 @@
+
+ #include "logfile.h" /* islogfile, logfflush */
+
++#ifdef __APPLE__
++#include <vproc.h>
++#include "vproc_priv.h"
++#endif
++
+ #ifdef DEBUG
+ FILE *dfp;
+ #endif
+@@ -1211,6 +1216,11 @@
+ freopen("/dev/null", "w", stderr);
+ debug("-- screen.back debug started\n");
+
++#ifdef __APPLE__
++ if (_vprocmgr_move_subset_to_user(real_uid, "Background") != NULL)
++ errx(1, "can't migrate to background session");
++#endif
++
+ /*
+ * This guarantees that the session owner is listed, even when we
+ * start detached. From now on we should not refer to 'LoginName'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100104/6d604465/attachment.html>
More information about the macports-changes
mailing list