[150554] trunk/dports/devel/glib2-devel

ryandesign at macports.org ryandesign at macports.org
Thu Jul 21 09:00:21 PDT 2016


Revision: 150554
          https://trac.macports.org/changeset/150554
Author:   ryandesign at macports.org
Date:     2016-07-21 09:00:21 -0700 (Thu, 21 Jul 2016)
Log Message:
-----------
glib2-devel: add upstream patch for systems that lack O_CLOEXEC

Modified Paths:
--------------
    trunk/dports/devel/glib2-devel/Portfile

Added Paths:
-----------
    trunk/dports/devel/glib2-devel/files/patch-gio-gdocumentportal.c.diff

Modified: trunk/dports/devel/glib2-devel/Portfile
===================================================================
--- trunk/dports/devel/glib2-devel/Portfile	2016-07-21 15:10:04 UTC (rev 150553)
+++ trunk/dports/devel/glib2-devel/Portfile	2016-07-21 16:00:21 UTC (rev 150554)
@@ -41,6 +41,7 @@
                             patch-gi18n.h.diff \
                             patch-gio_xdgmime_xdgmime.c.diff \
                             patch-gio_gdbusprivate.c.diff \
+                            patch-gio-gdocumentportal.c.diff \
                             patch-get-launchd-dbus-session-address.diff \
                             patch-gmodule-gmodule-dl.c.diff
 

Added: trunk/dports/devel/glib2-devel/files/patch-gio-gdocumentportal.c.diff
===================================================================
--- trunk/dports/devel/glib2-devel/files/patch-gio-gdocumentportal.c.diff	                        (rev 0)
+++ trunk/dports/devel/glib2-devel/files/patch-gio-gdocumentportal.c.diff	2016-07-21 16:00:21 UTC (rev 150554)
@@ -0,0 +1,27 @@
+https://bugzilla.gnome.org/show_bug.cgi?id=769042
+https://git.gnome.org/browse/glib/commit/?id=d5efa64539f71dc705826e2c0dc4ecb8354b9a77
+--- gio/gdocumentportal.c.orig
++++ gio/gdocumentportal.c
+@@ -33,6 +33,11 @@
+ #ifndef O_PATH
+ #define O_PATH 0
+ #endif
++#ifndef O_CLOEXEC
++#define O_CLOEXEC 0
++#else
++#define HAVE_O_CLOEXEC 1
++#endif
+ 
+ static GXdpDocuments *documents;
+ static char *documents_mountpoint;
+@@ -115,6 +120,10 @@ g_document_portal_add_document (GFile   *file,
+       goto out;
+     }
+ 
++#ifndef HAVE_O_CLOEXEC
++  fcntl (fd, F_SETFD, FD_CLOEXEC);
++#endif
++
+   fd_list = g_unix_fd_list_new ();
+   fd_in = g_unix_fd_list_append (fd_list, fd, error);
+   g_close (fd, NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160721/2432b005/attachment.html>


More information about the macports-changes mailing list