ports/158825: [PATCH] fusefs-kmod fix for Debian GNU/kFreeBSD
Robert Millan
rmh at debian.org
Tue Jul 12 07:20:02 UTC 2011
>Number: 158825
>Category: ports
>Synopsis: [PATCH] fusefs-kmod fix for Debian GNU/kFreeBSD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 12 07:20:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Robert Millan
>Release: Debian GNU/kFreeBSD "sid"
>Organization:
>Environment:
>Description:
Please consider this one-line patch to use __FreeBSD_version instead
of __FreeBSD__ in fusefs-kmod. This makes it possible to build fuse
module on Debian GNU/kFreeBSD (the compiler on this system doesn't define __FreeBSD__, however __FreeBSD_version is defined by kernel headers and therefore is always available to kernel modules).
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: fusefs-kmod/files/patch-fuse_module__fuse_io.c
===================================================================
RCS file: /home/ncvs/ports/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_io.c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-fuse_module__fuse_io.c
--- fusefs-kmod/files/patch-fuse_module__fuse_io.c 13 Jul 2009 13:52:30 -0000 1.2
+++ fusefs-kmod/files/patch-fuse_module__fuse_io.c 10 Jul 2011 22:04:04 -0000
@@ -4,7 +4,7 @@
#include <vm/vnode_pager.h>
#include <vm/vm_object.h>
-+#if (__FreeBSD__ >= 8)
++#if (__FreeBSD_version >= 800000)
+#define vfs_bio_set_validclean vfs_bio_set_valid
+#endif
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list