summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-14 07:58:50 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-14 07:58:50 +0800
commit8dca7dd525085c833d5d4b7bcbd17e1804017227 (patch)
treed6dd26cfaed6d5d8c33e876e9e43223a676057ba /devel
parent9ff8fd79dce5624ca23d315cfb9ba58dee612598 (diff)
downloadmarcuscom-ports-8dca7dd525085c833d5d4b7bcbd17e1804017227.tar
marcuscom-ports-8dca7dd525085c833d5d4b7bcbd17e1804017227.tar.gz
marcuscom-ports-8dca7dd525085c833d5d4b7bcbd17e1804017227.tar.bz2
marcuscom-ports-8dca7dd525085c833d5d4b7bcbd17e1804017227.tar.lz
marcuscom-ports-8dca7dd525085c833d5d4b7bcbd17e1804017227.tar.xz
marcuscom-ports-8dca7dd525085c833d5d4b7bcbd17e1804017227.tar.zst
marcuscom-ports-8dca7dd525085c833d5d4b7bcbd17e1804017227.zip
Fix free space calculation on -CURRENT.
Reported by: Franz Klammer <klammer@webonaut.com> git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2052 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r--devel/gnome-vfs/Makefile2
-rw-r--r--devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c26
-rw-r--r--devel/gnomevfs2/Makefile2
-rw-r--r--devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-utils.c26
4 files changed, 48 insertions, 8 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile
index acdf1ebac..d05de487d 100644
--- a/devel/gnome-vfs/Makefile
+++ b/devel/gnome-vfs/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.5.90
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.5
diff --git a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c
index 69c10480d..db2eac99a 100644
--- a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c
+++ b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c
@@ -1,6 +1,26 @@
---- libgnomevfs/gnome-vfs-utils.c.orig Mon Nov 24 15:43:38 2003
-+++ libgnomevfs/gnome-vfs-utils.c Mon Nov 24 15:44:01 2003
-@@ -852,7 +852,7 @@
+--- gnome-vfs-utils.c.orig Sat Mar 13 18:57:02 2004
++++ gnome-vfs-utils.c Sat Mar 13 18:51:21 2004
+@@ -797,8 +797,10 @@
+
+ #if HAVE_STATVFS
+ statfs_result = statvfs (unescaped_path, &statfs_buffer);
++#define statfs_bsize f_frsize
+ #else
+ statfs_result = statfs (unescaped_path, &statfs_buffer);
++#define statfs_bsize f_bsize
+ #endif
+
+ if (statfs_result != 0) {
+@@ -831,7 +833,7 @@
+ }
+ }
+
+- block_size = statfs_buffer.f_bsize;
++ block_size = statfs_buffer.statfs_bsize;
+ free_blocks = statfs_buffer.f_bavail;
+
+ *size = block_size * free_blocks;
+@@ -859,7 +861,7 @@
paths = g_strsplit (gnome_var, ":", 0);
for (temp_paths = paths; *temp_paths != NULL; temp_paths++) {
diff --git a/devel/gnomevfs2/Makefile b/devel/gnomevfs2/Makefile
index acdf1ebac..d05de487d 100644
--- a/devel/gnomevfs2/Makefile
+++ b/devel/gnomevfs2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.5.90
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.5
diff --git a/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-utils.c b/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-utils.c
index 69c10480d..db2eac99a 100644
--- a/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-utils.c
+++ b/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-utils.c
@@ -1,6 +1,26 @@
---- libgnomevfs/gnome-vfs-utils.c.orig Mon Nov 24 15:43:38 2003
-+++ libgnomevfs/gnome-vfs-utils.c Mon Nov 24 15:44:01 2003
-@@ -852,7 +852,7 @@
+--- gnome-vfs-utils.c.orig Sat Mar 13 18:57:02 2004
++++ gnome-vfs-utils.c Sat Mar 13 18:51:21 2004
+@@ -797,8 +797,10 @@
+
+ #if HAVE_STATVFS
+ statfs_result = statvfs (unescaped_path, &statfs_buffer);
++#define statfs_bsize f_frsize
+ #else
+ statfs_result = statfs (unescaped_path, &statfs_buffer);
++#define statfs_bsize f_bsize
+ #endif
+
+ if (statfs_result != 0) {
+@@ -831,7 +833,7 @@
+ }
+ }
+
+- block_size = statfs_buffer.f_bsize;
++ block_size = statfs_buffer.statfs_bsize;
+ free_blocks = statfs_buffer.f_bavail;
+
+ *size = block_size * free_blocks;
+@@ -859,7 +861,7 @@
paths = g_strsplit (gnome_var, ":", 0);
for (temp_paths = paths; *temp_paths != NULL; temp_paths++) {