aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2011-11-09 17:24:57 +0800
committermarcus <marcus@FreeBSD.org>2011-11-09 17:24:57 +0800
commitea2980fcff27c0451d120ee37c0079c5ae8fae5c (patch)
treee0f6741c5d707207eba2f21f7298a57feddef89d /devel
parentc560d39f0fe5c8b001326013be213083a2471034 (diff)
downloadfreebsd-ports-gnome-ea2980fcff27c0451d120ee37c0079c5ae8fae5c.tar.gz
freebsd-ports-gnome-ea2980fcff27c0451d120ee37c0079c5ae8fae5c.tar.zst
freebsd-ports-gnome-ea2980fcff27c0451d120ee37c0079c5ae8fae5c.zip
Ignore the fdescfs when calculating FS capacity.
Reported by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/glib20/Makefile2
-rw-r--r--devel/glib20/files/patch-gio_gunixmounts.c32
2 files changed, 21 insertions, 13 deletions
diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile
index 0a0846e8c659..5ef169138930 100644
--- a/devel/glib20/Makefile
+++ b/devel/glib20/Makefile
@@ -9,7 +9,7 @@
PORTNAME= glib
PORTVERSION= 2.28.8
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/glib/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/},} \
ftp://ftp.gtk.org/pub/glib/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/ \
diff --git a/devel/glib20/files/patch-gio_gunixmounts.c b/devel/glib20/files/patch-gio_gunixmounts.c
index 9b6fa2df36f0..f99358ddf2ec 100644
--- a/devel/glib20/files/patch-gio_gunixmounts.c
+++ b/devel/glib20/files/patch-gio_gunixmounts.c
@@ -1,6 +1,6 @@
---- ggio/unixmounts.c.orig 2008-03-10 20:31:58.000000000 -0400
-+++ gio/gunixmounts.c 2008-03-19 22:31:23.000000000 -0400
-@@ -128,6 +128,9 @@ struct _GUnixMountMonitor {
+--- gio/gunixmounts.c.orig 2011-06-05 19:18:49.000000000 -0400
++++ gio/gunixmounts.c 2011-11-09 04:20:49.000000000 -0500
+@@ -135,6 +135,9 @@ struct _GUnixMountMonitor {
GFileMonitor *fstab_monitor;
GFileMonitor *mtab_monitor;
@@ -10,7 +10,7 @@
};
struct _GUnixMountMonitorClass {
-@@ -139,6 +142,8 @@ static GUnixMountMonitor *the_mount_moni
+@@ -146,6 +149,8 @@ static GUnixMountMonitor *the_mount_moni
static GList *_g_get_unix_mounts (void);
static GList *_g_get_unix_mount_points (void);
@@ -19,7 +19,7 @@
G_DEFINE_TYPE (GUnixMountMonitor, g_unix_mount_monitor, G_TYPE_OBJECT);
#define MOUNT_POLL_INTERVAL 4000
-@@ -165,6 +170,7 @@ G_DEFINE_TYPE (GUnixMountMonitor, g_unix
+@@ -172,6 +177,7 @@ G_DEFINE_TYPE (GUnixMountMonitor, g_unix
#endif
#if defined(HAVE_GETMNTINFO) && defined(HAVE_FSTAB_H) && defined(HAVE_SYS_MOUNT_H)
@@ -27,7 +27,7 @@
#include <sys/ucred.h>
#include <sys/mount.h>
#include <fstab.h>
-@@ -215,20 +221,28 @@ g_unix_is_mount_path_system_internal (co
+@@ -222,20 +228,28 @@ g_unix_is_mount_path_system_internal (co
"/", /* we already have "Filesystem root" in Nautilus */
"/bin",
"/boot",
@@ -56,7 +56,15 @@
"/var",
"/var/log/audit", /* https://bugzilla.redhat.com/show_bug.cgi?id=333041 */
"/var/tmp", /* https://bugzilla.redhat.com/show_bug.cgi?id=335241 */
-@@ -988,6 +1002,10 @@ get_mounts_timestamp (void)
+@@ -271,6 +285,7 @@ guess_system_internal (const char *mount
+ "devfs",
+ "devpts",
+ "ecryptfs",
++ "fdescfs",
+ "kernfs",
+ "linprocfs",
+ "proc",
+@@ -1056,6 +1071,10 @@ get_mounts_timestamp (void)
if (stat (monitor_file, &buf) == 0)
return (guint64)buf.st_mtime;
}
@@ -67,7 +75,7 @@
return 0;
}
-@@ -1129,6 +1147,13 @@ g_unix_mount_monitor_finalize (GObject *
+@@ -1198,6 +1217,13 @@ g_unix_mount_monitor_finalize (GObject *
g_object_unref (monitor->mtab_monitor);
}
@@ -79,9 +87,9 @@
+ }
+
the_mount_monitor = NULL;
-
- if (G_OBJECT_CLASS (g_unix_mount_monitor_parent_class)->finalize)
-@@ -1206,6 +1231,51 @@ mtab_file_changed (GFileMonitor *mo
+
+ G_OBJECT_CLASS (g_unix_mount_monitor_parent_class)->finalize (object);
+@@ -1278,6 +1304,51 @@ mtab_file_changed (GFileMonitor *mo
g_signal_emit (mount_monitor, signals[MOUNTS_CHANGED], 0);
}
@@ -133,7 +141,7 @@
static void
g_unix_mount_monitor_init (GUnixMountMonitor *monitor)
{
-@@ -1228,6 +1298,12 @@ g_unix_mount_monitor_init (GUnixMountMon
+@@ -1300,6 +1371,12 @@ g_unix_mount_monitor_init (GUnixMountMon
g_signal_connect (monitor->mtab_monitor, "changed", (GCallback)mtab_file_changed, monitor);
}