pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/glib2



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat May 26 13:25:55 UTC 2018

Modified Files:
        pkgsrc/devel/glib2: distinfo
Added Files:
        pkgsrc/devel/glib2/patches: patch-gio_gfile.c

Log Message:
Fix build on CentOS 6 (at least) with upstream patch for bug 795133.


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 pkgsrc/devel/glib2/distinfo
cvs rdiff -u -r0 -r1.4 pkgsrc/devel/glib2/patches/patch-gio_gfile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/glib2/distinfo
diff -u pkgsrc/devel/glib2/distinfo:1.232 pkgsrc/devel/glib2/distinfo:1.233
--- pkgsrc/devel/glib2/distinfo:1.232   Mon May 21 08:39:38 2018
+++ pkgsrc/devel/glib2/distinfo Sat May 26 13:25:55 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.232 2018/05/21 08:39:38 jperkin Exp $
+$NetBSD: distinfo,v 1.233 2018/05/26 13:25:55 schmonz Exp $
 
 SHA1 (glib-2.56.1.tar.xz) = 4db098c15b9d57c37bb504a6f58ebe717994e6f2
 RMD160 (glib-2.56.1.tar.xz) = da4e45bf52d28b610a71bed8b4331bfb0b5c8d56
@@ -21,6 +21,7 @@ SHA1 (patch-cd) = a8a90eca84a687400a92b0
 SHA1 (patch-cl) = abe77225b2013b40d48a419b58ef4970165d0398
 SHA1 (patch-cm) = 534af37ae8f2bd667f630142058d4de5ea91be93
 SHA1 (patch-gio_gdbus-2.0_codegen_gdbus-codegen.in) = ccbb10335fb477e347993444d68d5e88d9e93050
+SHA1 (patch-gio_gfile.c) = 70ab8e438358c917958ef81c18f9f1d0c0ce37ff
 SHA1 (patch-gio_giomodule.c) = 08181ad8d46dde1a028faa246a4852e474610eaa
 SHA1 (patch-gio_glocalfileinfo.c) = 8e0b7e9543ce3c702c468f56e7ecf418d70b049f
 SHA1 (patch-gio_gresource-tool.c) = 4eb7c9df25e9ac3e977edf3be8fb977a6fb39182

Added files:

Index: pkgsrc/devel/glib2/patches/patch-gio_gfile.c
diff -u /dev/null pkgsrc/devel/glib2/patches/patch-gio_gfile.c:1.4
--- /dev/null   Sat May 26 13:25:55 2018
+++ pkgsrc/devel/glib2/patches/patch-gio_gfile.c        Sat May 26 13:25:55 2018
@@ -0,0 +1,28 @@
+$NetBSD: patch-gio_gfile.c,v 1.4 2018/05/26 13:25:55 schmonz Exp $
+
+Fix build on CentOS 6 (at least) with upstream patch for bug 795133.
+
+--- gio/gfile.c.orig   2018-03-12 16:23:37.000000000 +0000
++++ gio/gfile.c
+@@ -3012,6 +3012,7 @@ splice_stream_with_progress (GInputStrea
+   if (!g_unix_open_pipe (buffer, FD_CLOEXEC, error))
+     return FALSE;
+ 
++#if defined(F_SETPIPE_SZ) && defined(F_GETPIPE_SZ)
+   /* Try a 1MiB buffer for improved throughput. If that fails, use the default
+    * pipe size. See: https://bugzilla.gnome.org/791457 */
+   buffer_size = fcntl (buffer[1], F_SETPIPE_SZ, 1024 * 1024);
+@@ -3029,6 +3030,13 @@ splice_stream_with_progress (GInputStrea
+           goto out;
+         }
+     }
++#else
++  /* If #F_GETPIPE_SZ isn’t available, assume we’re on Linux < 2.6.35,
++   * but ≥ 2.6.11, meaning the pipe capacity is 64KiB. Ignore the possibility of
++   * running on Linux < 2.6.11 (where the capacity was the system page size,
++   * typically 4KiB) because it’s ancient. See pipe(7). */
++  buffer_size = 1024 * 64;
++#endif
+ 
+   g_assert (buffer_size > 0);
+ 



Home | Main Index | Thread Index | Old Index