Fix build in OS X.diff -r1.2 -r1.3 pkgsrc/filesystems/fuse-unionfs/Makefile
(jmmv)
@@ -1,25 +1,26 @@ | @@ -1,25 +1,26 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2008/03/03 19:31:31 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2010/02/02 10:45:17 jmmv Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= unionfs-fuse-0.17 | 4 | DISTNAME= unionfs-fuse-0.17 | |
5 | PKGNAME= fuse-unionfs-0.17 | 5 | PKGNAME= fuse-unionfs-0.17 | |
6 | CATEGORIES= filesystems | 6 | CATEGORIES= filesystems | |
7 | MASTER_SITES= http://podgorny.cz/unionfs-fuse/releases/ | 7 | MASTER_SITES= http://podgorny.cz/unionfs-fuse/releases/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://podgorny.cz/unionfs-fuse/ | 11 | HOMEPAGE= http://podgorny.cz/unionfs-fuse/ | |
12 | COMMENT= FUSE-based union filesystem | 12 | COMMENT= FUSE-based union filesystem | |
13 | 13 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 14 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 15 | |||
16 | BUILD_TARGET= unionfs | 16 | BUILD_TARGET= unionfs | |
17 | USE_TOOLS+= pkg-config | |||
17 | 18 | |||
18 | INSTALLATION_DIRS= bin | 19 | INSTALLATION_DIRS= bin | |
19 | 20 | |||
20 | do-install: | 21 | do-install: | |
21 | ${INSTALL_PROGRAM} ${WRKSRC}/unionfs \ | 22 | ${INSTALL_PROGRAM} ${WRKSRC}/unionfs \ | |
22 | ${DESTDIR}${PREFIX}/bin/fuse-unionfs | 23 | ${DESTDIR}${PREFIX}/bin/fuse-unionfs | |
23 | 24 | |||
24 | .include "../../mk/fuse.buildlink3.mk" | 25 | .include "../../mk/fuse.buildlink3.mk" | |
25 | .include "../../mk/bsd.pkg.mk" | 26 | .include "../../mk/bsd.pkg.mk" |
@@ -1,7 +1,8 @@ | @@ -1,7 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.2 2009/08/03 13:57:14 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.3 2010/02/02 10:45:17 jmmv Exp $ | |
2 | 2 | |||
3 | SHA1 (unionfs-fuse-0.17.tar.bz2) = 791877d7e127c28345f3884f30b9a65032e9ca80 | 3 | SHA1 (unionfs-fuse-0.17.tar.bz2) = 791877d7e127c28345f3884f30b9a65032e9ca80 | |
4 | RMD160 (unionfs-fuse-0.17.tar.bz2) = 020662308ea3930ed26685bcb2cdcaf08f3082f3 | 4 | RMD160 (unionfs-fuse-0.17.tar.bz2) = 020662308ea3930ed26685bcb2cdcaf08f3082f3 | |
5 | Size (unionfs-fuse-0.17.tar.bz2) = 6447 bytes | 5 | Size (unionfs-fuse-0.17.tar.bz2) = 6447 bytes | |
6 | SHA1 (patch-aa) = 855c6d72e5963077ea08c5b296e9423a2c652452 | 6 | SHA1 (patch-aa) = 917a9997c5ceef0edf632b4738dd0e397c3d6705 | |
7 | SHA1 (patch-ab) = fcb7ebe83f25488653ee42548c84d7709ce952d8 | 7 | SHA1 (patch-ab) = fcb7ebe83f25488653ee42548c84d7709ce952d8 | |
8 | SHA1 (patch-ac) = 0ce1100986d2a6e1941ebe6fb3ccca7fe54e7fee |
@@ -1,12 +1,21 @@ | @@ -1,12 +1,21 @@ | |||
1 | $NetBSD: patch-aa,v 1.2 2009/08/03 13:57:14 joerg Exp $ | 1 | $NetBSD: patch-aa,v 1.3 2010/02/02 10:45:17 jmmv Exp $ | |
2 | 2 | |||
3 | --- unionfs.c 2007/03/10 00:31:50 1.1 | 3 | --- unionfs.c.orig 2007-02-09 16:17:37.000000000 +0000 | |
4 | +++ unionfs.c 2007/03/10 00:33:02 | 4 | +++ unionfs.c | |
5 | @@ -10,6 +10,7 @@ | 5 | @@ -10,6 +10,7 @@ This is offered under a BSD-style licens | |
6 | #endif | 6 | #endif | |
7 | 7 | |||
8 | #include <fuse.h> | 8 | #include <fuse.h> | |
9 | +#include <fuse_opt.h> | 9 | +#include <fuse_opt.h> | |
10 | #include <stdio.h> | 10 | #include <stdio.h> | |
11 | #include <stdlib.h> | 11 | #include <stdlib.h> | |
12 | #include <string.h> | 12 | #include <string.h> | |
13 | @@ -192,7 +193,7 @@ static int unionfs_fsync(const char *pat | |||
14 | ||||
15 | int res; | |||
16 | if (isdatasync) { | |||
17 | -#ifdef _POSIX_SYNCHRONIZED_IO | |||
18 | +#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO != -1 | |||
19 | res = fdatasync(fi->fh); | |||
20 | #else | |||
21 | res = fsync(fi->fh); |
$NetBSD: patch-ac,v 1.1 2010/02/02 10:45:18 jmmv Exp $
--- Makefile.orig 2007-02-09 16:17:37.000000000 +0000
+++ Makefile
@@ -1,6 +1,6 @@
-CFLAGS += -Wall
+CFLAGS += -Wall $$(pkg-config --cflags fuse)
CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26
-LDFLAGS += -lfuse
+LDFLAGS += -lfuse $$(pkg-config --libs fuse)
UNIONFS_OBJ = unionfs.o stats.o opts.o debug.o cache.o