Date: Sat, 15 Jun 2013 13:39:40 +0000 (UTC) From: William Grzybowski <wg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320997 - in head/sysutils/fusefs-curlftpfs: . files Message-ID: <201306151339.r5FDdeD8089205@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wg Date: Sat Jun 15 13:39:39 2013 New Revision: 320997 URL: http://svnweb.freebsd.org/changeset/ports/320997 Log: sysutils/fusefs-curlftpfs: unbreak build - Unbreak build for FreeBSD >= 9 [1] - Add LICENSE (GPLv2) PR: ports/174606 [1] Submitted by: ARAI Toshihiko <arai.toshihiko@gmail.com> Approved by: culot / jpaetzel (mentors, implicit), maintainer (timeout) Added: head/sysutils/fusefs-curlftpfs/files/extra-32-ftpfs.h (contents, props changed) head/sysutils/fusefs-curlftpfs/files/extra-64-ftpfs.h (contents, props changed) head/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c (contents, props changed) Deleted: head/sysutils/fusefs-curlftpfs/files/patch-ftpfs.c Modified: head/sysutils/fusefs-curlftpfs/Makefile Modified: head/sysutils/fusefs-curlftpfs/Makefile ============================================================================== --- head/sysutils/fusefs-curlftpfs/Makefile Sat Jun 15 13:30:13 2013 (r320996) +++ head/sysutils/fusefs-curlftpfs/Makefile Sat Jun 15 13:39:39 2013 (r320997) @@ -11,6 +11,8 @@ PKGNAMEPREFIX= fusefs- MAINTAINER= dhn@FreeBSD.org COMMENT= Mount remote ftp directories +LICENSE= GPLv2 + LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl GNU_CONFIGURE= yes @@ -21,8 +23,13 @@ PLIST_FILES= bin/curlftpfs .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 900000 -BROKEN= does not build +.if ${OSVERSION} >= 1000000 +EXTRA_PATCHES+= ${FILESDIR}/extra-64-ftpfs.h +.else +EXTRA_PATCHES+= ${FILESDIR}/extra-32-ftpfs.h +.endif +.if ${OSVERSION} < 900000 +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ftpfs.c .endif -.include <bsd.port.post.mk> +.include <bsd.port.post.mk> Added: head/sysutils/fusefs-curlftpfs/files/extra-32-ftpfs.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-curlftpfs/files/extra-32-ftpfs.h Sat Jun 15 13:39:39 2013 (r320997) @@ -0,0 +1,11 @@ +--- ftpfs.h.orig 2008-04-25 19:32:30.000000000 +0900 ++++ ftpfs.h 2012-12-21 18:18:20.000000000 +0900 +@@ -75,7 +75,7 @@ + do { if (level <= ftpfs.debug) {\ + int i = 0; \ + while (++i < level) fprintf(stderr, " "); \ +- fprintf(stderr, "%ld ", time(NULL));\ ++ fprintf(stderr, "%d ", time(NULL));\ + fprintf(stderr, __FILE__ ":%d ", __LINE__);\ + fprintf(stderr, args);\ + }\ Added: head/sysutils/fusefs-curlftpfs/files/extra-64-ftpfs.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-curlftpfs/files/extra-64-ftpfs.h Sat Jun 15 13:39:39 2013 (r320997) @@ -0,0 +1,11 @@ +--- ftpfs.h.orig 2008-04-25 19:32:30.000000000 +0900 ++++ ftpfs.h 2012-12-21 18:18:20.000000000 +0900 +@@ -75,7 +75,7 @@ + do { if (level <= ftpfs.debug) {\ + int i = 0; \ + while (++i < level) fprintf(stderr, " "); \ +- fprintf(stderr, "%ld ", time(NULL));\ ++ fprintf(stderr, "%lld ", time(NULL));\ + fprintf(stderr, __FILE__ ":%d ", __LINE__);\ + fprintf(stderr, args);\ + }\ Added: head/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-curlftpfs/files/extra-patch-ftpfs.c Sat Jun 15 13:39:39 2013 (r320997) @@ -0,0 +1,19 @@ +--- ./ftpfs.c.orig 2008-04-30 01:05:47.000000000 +0200 ++++ ./ftpfs.c 2010-01-08 19:14:39.000000000 +0100 +@@ -611,10 +611,12 @@ + curl_easy_cleanup(fh->write_conn); + g_free(fh->full_path); + g_free(fh->open_path); +- sem_destroy(&fh->data_avail); +- sem_destroy(&fh->data_need); +- sem_destroy(&fh->data_written); +- sem_destroy(&fh->ready); ++ if (fh->data_avail) { ++ sem_destroy(&fh->data_avail); ++ sem_destroy(&fh->data_need); ++ sem_destroy(&fh->data_written); ++ sem_destroy(&fh->ready); ++ } + free(fh); + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306151339.r5FDdeD8089205>