[113418] trunk/dports/gnome/gnome-terminal

jeremyhu at macports.org jeremyhu at macports.org
Fri Nov 15 13:33:43 PST 2013


Revision: 113418
          https://trac.macports.org/changeset/113418
Author:   jeremyhu at macports.org
Date:     2013-11-15 13:33:42 -0800 (Fri, 15 Nov 2013)
Log Message:
-----------
gnome-terminal: Build fix for systems without F_DUPFD_CLOEXEC

Modified Paths:
--------------
    trunk/dports/gnome/gnome-terminal/Portfile

Added Paths:
-----------
    trunk/dports/gnome/gnome-terminal/files/no-dupfd_cloexec.patch

Modified: trunk/dports/gnome/gnome-terminal/Portfile
===================================================================
--- trunk/dports/gnome/gnome-terminal/Portfile	2013-11-15 21:31:04 UTC (rev 113417)
+++ trunk/dports/gnome/gnome-terminal/Portfile	2013-11-15 21:33:42 UTC (rev 113418)
@@ -41,7 +41,8 @@
 
 patchfiles      patch-getcwd.diff \
                 patch-uuid.diff \
-                patch-gschema.xml.in.diff
+                patch-gschema.xml.in.diff \
+                no-dupfd_cloexec.patch
 
 configure.args  --with-gtk=3.0 \
                 --disable-migration \

Added: trunk/dports/gnome/gnome-terminal/files/no-dupfd_cloexec.patch
===================================================================
--- trunk/dports/gnome/gnome-terminal/files/no-dupfd_cloexec.patch	                        (rev 0)
+++ trunk/dports/gnome/gnome-terminal/files/no-dupfd_cloexec.patch	2013-11-15 21:33:42 UTC (rev 113418)
@@ -0,0 +1,15 @@
+--- src/terminal-screen.c.orig	2013-11-15 13:28:52.000000000 -0800
++++ src/terminal-screen.c	2013-11-15 13:31:21.000000000 -0800
+@@ -1335,7 +1335,12 @@ terminal_screen_child_setup (FDSetupData
+       for (j = 0; j < n_fds; j++) {
+         if (fds[j] == target_fd) {
+           do {
++#ifdef F_DUPFD_CLOEXEC
+             fd = fcntl (fds[j], F_DUPFD_CLOEXEC, 10);
++#else
++            fd = fcntl (fds[j], F_DUPFD, 10);
++            fcntl(fd, F_SETFD, FD_CLOEXEC);
++#endif
+           } while (fd == -1 && errno == EINTR);
+           if (fd == -1)
+             _exit (127);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131115/9f2ddfdb/attachment-0001.html>


More information about the macports-changes mailing list