summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjmmv <jmmv>2006-01-01 17:31:53 +0000
committerjmmv <jmmv>2006-01-01 17:31:53 +0000
commit55bab2be06ebe28817ee96b1a87287d527d39b08 (patch)
tree865e26012086a64835215f13d61ef6bb5d449cd7 /sysutils
parentb2320f5f5a7143bae7d3af187aef32e2e0e2daa2 (diff)
downloadpkgsrc-55bab2be06ebe28817ee96b1a87287d527d39b08.tar.gz
Properly detect statvfs(2) under NetBSD so that gnome-vfs can determine the
file system type in which a given file lives. This is just a hack to work-around a somewhat serious portability problem in the configure script and the code, which is currently so clumsy that it is difficult to fix it properly through patches. This solves, among other possible problems, the generation of image previews in Nautilus because gnome-vfs thought the files were not local (as it could not determine where they lived). Bump PKGREVISION to 2.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/gnome-vfs2/Makefile.common12
-rw-r--r--sysutils/gnome-vfs2/distinfo3
-rw-r--r--sysutils/gnome-vfs2/patches/patch-ai17
3 files changed, 30 insertions, 2 deletions
diff --git a/sysutils/gnome-vfs2/Makefile.common b/sysutils/gnome-vfs2/Makefile.common
index ab3a38d9026..9f159b40997 100644
--- a/sysutils/gnome-vfs2/Makefile.common
+++ b/sysutils/gnome-vfs2/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.26 2005/12/29 06:22:18 jlam Exp $
+# $NetBSD: Makefile.common,v 1.27 2006/01/01 17:31:53 jmmv Exp $
#
DISTNAME= gnome-vfs-2.12.1.1
@@ -44,6 +44,16 @@ EGDIR= ${PREFIX}/share/examples/gnome-vfs-2.0
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
+# XXX Work-around for a problem in the configure script which checks for
+# statvfs(2) having SVR4 in mind. Solving this in the script itself could
+# be the right way to go, but it is out of the scope of a local patch; it
+# could require changing the code a lot, which is already very... complex.
+.if !exists(/usr/include/fstyp.h)
+post-wrapper:
+ ${MKDIR} -p ${BUILDLINK_DIR}/include/sys
+ ${TOUCH} ${BUILDLINK_DIR}/include/sys/fstyp.h
+.endif
+
#
# The following stuff is to allow easy building of modules distributed within
# gnome-vfs2 as independent packages.
diff --git a/sysutils/gnome-vfs2/distinfo b/sysutils/gnome-vfs2/distinfo
index 65ac94c2b37..6718d3e1760 100644
--- a/sysutils/gnome-vfs2/distinfo
+++ b/sysutils/gnome-vfs2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.44 2005/12/05 07:52:49 rillig Exp $
+$NetBSD: distinfo,v 1.45 2006/01/01 17:31:53 jmmv Exp $
SHA1 (gnome-vfs-2.12.1.1.tar.bz2) = 48e484663f0d0f5e2a858d2f6e6a5a702e831734
RMD160 (gnome-vfs-2.12.1.1.tar.bz2) = b96cd620ce60131c0ff467fd277d89ac76419e09
@@ -11,6 +11,7 @@ SHA1 (patch-ae) = 572b40dfa035dab5ef374aa73d2acacfcb72d641
SHA1 (patch-af) = 6724c4a43d0d9525f5361ba7380c91adbf656e56
SHA1 (patch-ag) = 78f7d50beaeab8b33c554e6cfaf510cdba3b00ba
SHA1 (patch-ah) = 4bd07f6c3d356505babba2a14e250c5f480296c0
+SHA1 (patch-ai) = 6afefb35bfe3fc37e84048b95ccc272a01542ec2
SHA1 (patch-am) = 4e037da71db0d3aae236475a0f2ead12738f35f9
SHA1 (patch-ao) = 0cc64574f6d430ca385f22d28690b9cea9181390
SHA1 (patch-ap) = 98ad7700d01007510467e2ae4ee8554f54f15320
diff --git a/sysutils/gnome-vfs2/patches/patch-ai b/sysutils/gnome-vfs2/patches/patch-ai
new file mode 100644
index 00000000000..e11d255a623
--- /dev/null
+++ b/sysutils/gnome-vfs2/patches/patch-ai
@@ -0,0 +1,17 @@
+$NetBSD: patch-ai,v 1.11 2006/01/01 17:31:53 jmmv Exp $
+
+--- modules/fstype.c.orig 2004-08-12 11:08:56.000000000 +0200
++++ modules/fstype.c
+@@ -349,8 +349,12 @@ filesystem_type_uncached (char *path, ch
+ fstype_internal_error (1, errno, "%s", path);
+ }
+ else
++#if defined(__NetBSD__)
++ type = fss.f_fstypename;
++#else
+ type = fss.f_basetype;
+ #endif
++#endif
+
+ #ifdef FSTYPE_STATFS /* 4.4BSD. */
+ struct statfs fss;